23972bbfefa9c4cd3d15fec3e63163298bea7036,sonnet/python/modules/basic_test.py,LinearTest,testClone,#LinearTest#,297
Before Change
all_vars = tf.trainable_variables()
linear_vars = linear.variable_scope.trainable_variables()
clone1_vars = clone1.variable_scope.trainable_variables()
clone2_vars = clone2.variable_scope.trainable_variables()
self.assertEqual(linear.output_size, clone1.output_size)
self.assertEqual(linear.module_name + "_clone", clone1.module_name)
After Change
clone2(inputs)
all_vars = tf.trainable_variables()
linear_vars = tf.get_collection(
tf.GraphKeys.TRAINABLE_VARIABLES,
scope=linear.variable_scope.name + "/")
clone1_vars = tf.get_collection(
tf.GraphKeys.TRAINABLE_VARIABLES,
scope=clone1.variable_scope.name + "/")
clone2_vars = tf.get_collection(
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: deepmind/sonnet
Commit Name: 23972bbfefa9c4cd3d15fec3e63163298bea7036
Time: 2017-04-28
Author: adriap@google.com
File Name: sonnet/python/modules/basic_test.py
Class Name: LinearTest
Method Name: testClone
Project Name: deepmind/sonnet
Commit Name: 23972bbfefa9c4cd3d15fec3e63163298bea7036
Time: 2017-04-28
Author: adriap@google.com
File Name: sonnet/python/modules/conv_test.py
Class Name: Conv2DTest
Method Name: testClone
Project Name: openai/baselines
Commit Name: 6c44fb28fecdb666182e2951b7b1cbe9cf198ff1
Time: 2018-12-19
Author: peterzhokhoff@gmail.com
File Name: baselines/common/tf_util.py
Class Name:
Method Name: save_variables
Project Name: deepmind/sonnet
Commit Name: 23972bbfefa9c4cd3d15fec3e63163298bea7036
Time: 2017-04-28
Author: adriap@google.com
File Name: sonnet/python/modules/basic_test.py
Class Name: LinearTest
Method Name: testClone
Project Name: openai/baselines
Commit Name: 6c44fb28fecdb666182e2951b7b1cbe9cf198ff1
Time: 2018-12-19
Author: peterzhokhoff@gmail.com
File Name: baselines/common/tf_util.py
Class Name:
Method Name: load_variables