Commit 421d1c07 authored by Yifei Feng's avatar Yifei Feng
Browse files

In model_to_estimator, only run get_weights when there are initialized Keras...

In model_to_estimator, only run get_weights when there are initialized Keras variables(which assumes there exists a session). Otherwise create a session so that we can run get_config().
Actually fix #18193.

PiperOrigin-RevId: 192541442
parent 68e26412
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment