cbbb77338758d7cb20c5c29982f5aaac130f10d1,tests/application_driver_test.py,ApplicationDriverTest,test_multi_device_gradients,#ApplicationDriverTest#,148
Before Change
"worker_2/ComputeGradients/gradients/AddN_5:0"),
test_driver.graph.get_tensor_by_name(
"worker_3/ComputeGradients/gradients/AddN_5:0"),
test_driver.graph.get_tensor_by_name(
"ApplyGradients/Mean:0")
])
msg = "same gradients for different devices"
self.assertGreater(np.sum(np.abs(g_0 - g_1)), 0.0, msg)
self.assertGreater(np.sum(np.abs(g_0 - g_2)), 0.0, msg)
After Change
SESS_STARTED.send(test_driver.app, iter_msg=None)
for i in range(2):
sess.run(test_driver.app.gradient_op)
g_0, g_1, g_2, g_3, g_ave = sess.run([
tf.get_default_graph().get_tensor_by_name(
"worker_0/ComputeGradients/gradients/AddN_5:0"),
tf.get_default_graph().get_tensor_by_name(
"worker_1/ComputeGradients/gradients/AddN_5:0"),
tf.get_default_graph().get_tensor_by_name(
"worker_2/ComputeGradients/gradients/AddN_5:0"),
tf.get_default_graph().get_tensor_by_name(
"worker_3/ComputeGradients/gradients/AddN_5:0"),
tf.get_default_graph().get_tensor_by_name(
"ApplyGradients/Mean:0")
])
msg = "same gradients for different devices"
self.assertGreater(np.sum(np.abs(g_0 - g_1)), 0.0, msg)
self.assertGreater(np.sum(np.abs(g_0 - g_2)), 0.0, msg)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: NifTK/NiftyNet
Commit Name: cbbb77338758d7cb20c5c29982f5aaac130f10d1
Time: 2018-04-27
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_multi_device_gradients
Project Name: NifTK/NiftyNet
Commit Name: cbbb77338758d7cb20c5c29982f5aaac130f10d1
Time: 2018-04-27
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_multi_device_inputs
Project Name: opencv/opencv_extra
Commit Name: 537fa61786b167655298cbd91717496c6588c3e3
Time: 2019-06-11
Author: dmitry.kurtaev+github@gmail.com
File Name: testdata/dnn/tensorflow/generate_tf_models.py
Class Name:
Method Name: