-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: tf 'module' object has no attribute 'sub' #2
Comments
Q1 looks to be a TF version problem. The codes were run on TF 0.10. You may
need to adjust some APIs to make them runable on higher versions of TF.
Q2 Thanks for pointing it out. I did not know that before.
…On Sat, Oct 21, 2017 at 5:03 PM, Wenrui.J ***@***.***> wrote:
Q1:
It seems there's a deprecated API tf.sub in your implementation, which
will throw exception like
AttributeError: 'module' object has no attribute 'sub'
in tensorflow 1.3.0+.
Change that to tf.subtract will fix it.
Q2:
Furthermore, have you ever consider using the tf.estimator.Estimator to
replace sklearn.base.BaseEstimator ?
A tf.estimator.Estimator model with model.export_model will enable you to
deploy a trained model with tensorflow Serving for a product env, while it
can also make your training parallelized with high level api
tf.contrib.learn.Experiment.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABGxjtGhC9G14bkbzOJ5lRWTKJHw7RRYks5subNqgaJpZM4QBfr7>
.
--
Best Regards,
Xiangnan He
|
@hexiangnan
At last, if you consider using the |
Q1:
It seems there's a deprecated API
tf.sub
in your implementation, which will throw exception likeAttributeError: 'module' object has no attribute 'sub'
in tensorflow 1.3.0+.
Change that to
tf.subtract
will fix it.Q2:
Furthermore, have you ever consider using the
tf.estimator.Estimator
to replacesklearn.base.BaseEstimator
?A
tf.estimator.Estimator
model withmodel.export_model
will enable you to deploy a trained model with tensorflow Serving for a product env, while it can also make your training parallelized with high level apitf.contrib.learn.Experiment
.The text was updated successfully, but these errors were encountered: