f7b10102a3a0b08272634347ff3a65efd3df18ce,test/functions/test_root_decomposition.py,TestRootDecomposition,test_root_decomposition,#TestRootDecomposition#,31
Before Change
// Backward
res.trace().backward()
self.mat_clone.trace().backward()
self.assertTrue(approx_equal(self.mat.grad, self.mat_clone.grad))
def test_root_inv_decomposition(self):
// Forward
After Change
self.assertAllClose(res, mat)
// Backward
sum([mat.trace() for mat in res.view(-1, mat.size(-2), mat.size(-1))]).backward()
sum([mat.trace() for mat in mat_clone.view(-1, mat.size(-2), mat.size(-1))]).backward()
self.assertAllClose(mat.grad, mat_clone.grad)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: cornellius-gp/gpytorch
Commit Name: f7b10102a3a0b08272634347ff3a65efd3df18ce
Time: 2019-04-04
Author: gpleiss@gmail.com
File Name: test/functions/test_root_decomposition.py
Class Name: TestRootDecomposition
Method Name: test_root_decomposition
Project Name: HyperGAN/HyperGAN
Commit Name: 6e7bc01007c8d762096a61ec39cd5334feabe0e5
Time: 2020-02-14
Author: mikkel@255bits.com
File Name: hypergan/trainers/simultaneous_trainer.py
Class Name: SimultaneousTrainer
Method Name: _step
Project Name: chainer/chainer
Commit Name: 36ca673cdef48744645d6295407737af3ab2c7f5
Time: 2019-10-15
Author: shinichiro.hamaji@gmail.com
File Name: onnx_chainer/replace_func.py
Class Name: WrappedFunctionNode
Method Name: backward