We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tf.train.init_from_checkpoint
model_fn
In function model_fn:
if init_checkpoint: (assignment_map, initialized_variable_names) = modeling.get_assignment_map_from_checkpoint(tvars,init_checkpoint) tf.train.init_from_checkpoint(init_checkpoint, assignment_map) if use_tpu: def tpu_scaffold(): tf.train.init_from_checkpoint(init_checkpoint, assignment_map) return tf.train.Scaffold() scaffold_fn = tpu_scaffold else: tf.train.init_from_checkpoint(init_checkpoint, assignment_map)
why tf.train.init_from_checkpoint should run twice?
The text was updated successfully, but these errors were encountered:
The first init op can be omitted. I think the author leave it incautiously.
Sorry, something went wrong.
No branches or pull requests
In function
model_fn
:why
tf.train.init_from_checkpoint
should run twice?The text was updated successfully, but these errors were encountered: