提交 16608a98 编写于 作者: S Scott Zhu 提交者: TensorFlower Gardener

Fix model to estimator breakage caused by recent change.

PiperOrigin-RevId: 380894633
上级 48141423
......@@ -160,7 +160,7 @@ def model_to_estimator(
"""
try:
from tensorflow_estimator.python.estimator import keras as keras_lib # pylint: disable=g-import-not-at-top
from tensorflow_estimator.python.estimator import keras_lib # pylint: disable=g-import-not-at-top
except ImportError:
raise NotImplementedError(
'tf.keras.estimator.model_to_estimator function not available in your '
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册