Skip to content

Commit

Permalink
Restrict Keras to <v2.3.0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
felker committed Jan 2, 2020
1 parent 92a76fb commit 458a765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion envs/requirements-linux-64-gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- pyyaml
- tensorflow-gpu>=1.3,<2.0.0
- pip:
- keras>=2.0.5
- keras>=2.0.5,<2.3.0
- pathos
- matplotlib>=2.0.2
- hyperopt # TODO(KGF): remove
Expand Down
2 changes: 1 addition & 1 deletion envs/requirements-traverse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
- pyyaml
- tensorflow-gpu>=1.3,<2.0.0
- pip:
- keras>=2.0.5
- keras>=2.0.5,<2.3.0
- pathos
- matplotlib>=2.0.2
- hyperopt # TODO(KGF): remove
Expand Down

0 comments on commit 458a765

Please sign in to comment.