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

Fix the naming of _any_variable_initialized #19357

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow/python/estimator/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _convert_tensor(x):
return x


def _any_variable_initalized():
def _any_variable_initialized():
"""Check if any variable has been initialized in the Keras model.

Returns:
Expand Down Expand Up @@ -493,7 +493,7 @@ def model_to_estimator(keras_model=None,
keras_model_fn, model_dir=model_dir, config=config)

# Check if we need to call get_weights:
if _any_variable_initalized():
if _any_variable_initialized():
keras_weights = keras_model.get_weights()
# Warn if config passed to estimator tries to update GPUOptions. If a
# session has already been created, the GPUOptions passed to the first
Expand Down