Skip to content
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

tensorflow has no attribute 'mul' #1

Open
sid-devic opened this issue Jun 25, 2018 · 0 comments
Open

tensorflow has no attribute 'mul' #1

sid-devic opened this issue Jun 25, 2018 · 0 comments

Comments

@sid-devic
Copy link

sid-devic commented Jun 25, 2018

tf.mul is now deprecated, and needs to be replaced with tf.multiply.
Use tf.initializers.variance_scaling instead with distribution=uniform to get equivalent behavior. Traceback (most recent call last): File "icnn.back.py", line 421, in <module> main() File "icnn.back.py", line 104, in main model = Model(inputSz, outputSz, sess, args.nGdIter) File "icnn.back.py", line 131, in __init__ E0_ = self.f(self.x_, self.y0_) File "icnn.back.py", line 330, in f z_yu = conv(tf.mul(y_red, yu_u), nFilter, kSz, strides=strides, AttributeError: module 'tensorflow' has no attribute 'mul'

Edit: Here is a list of deprecated functions and their updated variants (for tf >= 1.0 users):

  • tf.merger_all_summaries => tf.summary.merge_all
  • tf.histogram_summary => tf.summary.histogram
  • tf.scalar_summary => tf.summary.scalar
  • tf.mul => tf.multiply
  • tf.train.SummaryWriter => tf.summary.FileWriter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant