2399bacca070189e2f89c6a6e1dbf72239d8129f,tf_agents/policies/policy_saver_test.py,PolicySaverTest,testTrainStepSaved,#PolicySaverTest#,429
Before Change
saver = policy_saver.PolicySaver(
policy, batch_size=None, train_step=train_step)
self.assertEqual(7, saver.get_train_step())
path = os.path.join(self.get_temp_dir(), "save_model")
saver.save(path)
reloaded = tf.compat.v2.saved_model.load(path)
After Change
saver = policy_saver.PolicySaver(
policy, batch_size=None, train_step=train_step)
if tf.executing_eagerly():
step = saver.get_train_step()
else:
step = self.evaluate(saver.get_train_step())
self.assertEqual(7, step)
path = os.path.join(self.get_temp_dir(), "save_model")
saver.save(path)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: tensorflow/agents
Commit Name: 2399bacca070189e2f89c6a6e1dbf72239d8129f
Time: 2020-04-13
Author: oars@google.com
File Name: tf_agents/policies/policy_saver_test.py
Class Name: PolicySaverTest
Method Name: testTrainStepSaved
Project Name: bethgelab/foolbox
Commit Name: 059f6b34a14367a49228cecb46c5e3d38ba68176
Time: 2020-02-07
Author: git@jonasrauber.de
File Name: foolbox/models/tensorflow_eager.py
Class Name: TensorFlowEagerModel
Method Name: __init__
Project Name: bethgelab/foolbox
Commit Name: 35ca30d2fef1c82472e6026fda762703af6c09b3
Time: 2020-01-29
Author: git@jonasrauber.de
File Name: foolbox/ext/native/models/tensorflow.py
Class Name: TensorFlowModel
Method Name: __init__
Project Name: tensorflow/hub
Commit Name: 66c202e4269b72f317f2a0632e2e51fac1e17517
Time: 2019-02-26
Author: no-reply@google.com
File Name: tensorflow_hub/e2e_test.py
Class Name: End2EndTest
Method Name: test_load