Skip to content

Commit

Permalink
Fix tf.keras.estimator.model_to_estimator in tf_nightly.
Browse files Browse the repository at this point in the history
With the keras implementation moved the and the old estimator version here, model_to_estimator was reading the class definitions from the tensorflow source instead of the keras source, so some `isinstance()` checks were comparing two different implementations of the same class and returning False when it should have been True.

PiperOrigin-RevId: 380254729
Change-Id: If506ccdac39e9aacd9bc38b14608aaaf287e98a4
  • Loading branch information
MarkDaoust authored and tensorflower-gardener committed Jun 18, 2021
1 parent 7418288 commit 1909ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/tools/pip_package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
if 'tensorboard' in pkg:
REQUIRED_PACKAGES[i] = 'tb-nightly ~= 2.6.0.a'
elif 'tensorflow_estimator' in pkg:
REQUIRED_PACKAGES[i] = 'tf-estimator-nightly ~= 2.5.0.dev'
REQUIRED_PACKAGES[i] = 'tf-estimator-nightly ~= 2.6.0.dev'
elif 'keras' in pkg and 'keras_preprocessing' not in pkg:
REQUIRED_PACKAGES[i] = 'keras-nightly ~= 2.6.0.dev'

Expand Down

0 comments on commit 1909ac9

Please sign in to comment.