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

Migrate external Keras to tf.keras (pre-v2.x TensorFlow eager execution) #43

Open
felker opened this issue Dec 5, 2019 · 0 comments
Open

Comments

@felker
Copy link
Member

felker commented Dec 5, 2019

Related #42 (remove Theano).

felker added a commit that referenced this issue Jan 2, 2020
Both Keras v2.3.0 and v2.3.1 on Traverse (and at least the latter on
TigerGPU) die with:

WARNING:tensorflow:From
/home/kfelker/.conda/envs/frnn/lib/python3.6/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1630:
calling BaseReso\
urceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops)
with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
Printing out pre_rnn model...
Traceback (most recent call last):
  File "mpi_learn.py", line 111, in <module>
      shot_list_test=shot_list_test)

  File
  "/home/kfelker/.conda/envs/frnn/lib/python3.6/site-packages/tensorflow_core/python/ops/resource_variable_ops.py",
  line 1229, in __imul__
      raise RuntimeError("Variable *= value not supported. Use "
      RuntimeError: Variable *= value not supported. Use
      `var.assign(var * value)` to modify the variable or `var = var *
      value` to get a new Tensor object.

Incompatibility likely fixed in TF >= v2.0 and/or TF's internal Keras
tensorflow/tensorflow#27829

Re-check this after moving to TensorFlow's internal Keras in #43
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