677e510defc66f33a7e6cfd3c4289c745ebe1964,tests/links_tests/update_tests/test_ggnn_update.py,,check_backward,#Any#Any#Any#Any#,88
Before Change
adj_data (numpy.ndarray):
y_grad (numpy.ndarray):
atom = chainer.Variable(atom_data)
update.reset_state()
y = update(atom, adj_data)
y.grad = y_grad
y.backward()
def f():
update.reset_state()
return update(atom_data, adj_data).data,
gx, = gradient_check.numerical_grad(f, (atom.data, ), (y.grad, ))
numpy.testing.assert_allclose(
cuda.to_cpu(gx), cuda.to_cpu(atom.grad), atol=1e-3, rtol=1e-3)
return gx
After Change
update.reset_state()
return update(atom_data, adj_data)
gradient_check.check_backward(
f, (atom_data), y_grad, atol=1e-1, rtol=1e-1)
def test_backward_cpu(update, data):
atom_data, adj_data, y_grad = data
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 18
Instances
Project Name: pfnet-research/chainer-chemistry
Commit Name: 677e510defc66f33a7e6cfd3c4289c745ebe1964
Time: 2019-08-14
Author: acc1ssnn9terias@gmail.com
File Name: tests/links_tests/update_tests/test_ggnn_update.py
Class Name:
Method Name: check_backward
Project Name: pfnet-research/chainer-chemistry
Commit Name: 677e510defc66f33a7e6cfd3c4289c745ebe1964
Time: 2019-08-14
Author: acc1ssnn9terias@gmail.com
File Name: tests/links_tests/update_tests/test_ggnn_update.py
Class Name:
Method Name: check_backward
Project Name: pfnet-research/chainer-chemistry
Commit Name: 677e510defc66f33a7e6cfd3c4289c745ebe1964
Time: 2019-08-14
Author: acc1ssnn9terias@gmail.com
File Name: tests/links_tests/update_tests/test_mpnn_update.py
Class Name:
Method Name: check_backward
Project Name: pfnet-research/chainer-chemistry
Commit Name: 7038ae40ddcb5b6f50097e4b0c33a39d2b6d3a72
Time: 2019-08-14
Author: acc1ssnn9terias@gmail.com
File Name: tests/links_tests/update_tests/test_mpnn_update.py
Class Name:
Method Name: check_backward
Project Name: pfnet-research/chainer-chemistry
Commit Name: 7038ae40ddcb5b6f50097e4b0c33a39d2b6d3a72
Time: 2019-08-14
Author: acc1ssnn9terias@gmail.com
File Name: tests/links_tests/update_tests/test_ggnn_update.py
Class Name:
Method Name: check_backward