1f5bd7028636e6320079fc785c4aca9eda51defa,tests/application_driver_test.py,ApplicationDriverTest,test_multi_device_multi_optimiser_gradients,#ApplicationDriverTest#,181
Before Change
for i in range(2):
sess.run(test_driver.app.gradient_op)
// query generator gradient sample to check
dis_0, dis_1, dis_2, dis_3, dis_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/AveOverDevices_10:0")
])
// query discriminator gradient sample to check
gen_0, gen_1, gen_2, gen_3, gen_ave = sess.run([
After Change
for i in range(2):
sess.run(test_driver.app.gradient_op)
// query generator gradient sample to check
dis_0, dis_1, dis_2, dis_3, dis_ave = sess.run([
graph.get_tensor_by_name(
"worker_0/ComputeGradientsD/gradients/AddN_5:0"),
graph.get_tensor_by_name(
"worker_1/ComputeGradientsD/gradients/AddN_5:0"),
graph.get_tensor_by_name(
"worker_2/ComputeGradientsD/gradients/AddN_5:0"),
graph.get_tensor_by_name(
"worker_3/ComputeGradientsD/gradients/AddN_5:0"),
graph.get_tensor_by_name(
"ApplyGradients/AveOverDevices:0")
])
// query discriminator gradient sample to check
gen_0, gen_1, gen_2, gen_3, gen_ave = sess.run([
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: NifTK/NiftyNet
Commit Name: 1f5bd7028636e6320079fc785c4aca9eda51defa
Time: 2019-01-31
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_multi_device_multi_optimiser_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_gradients
Project Name: NifTK/NiftyNet
Commit Name: 1f5bd7028636e6320079fc785c4aca9eda51defa
Time: 2019-01-31
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_multi_device_multi_optimiser_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