Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Num body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Return Call AttributeLoad NameLoad attr BinOpMult ListLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Num keyword Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Num keyword Num decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str ListLoad TupleLoad Num Num TupleLoad Num Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Num keyword Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Num keyword Num decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str ListLoad TupleLoad Num Num Num TupleLoad Num Num Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad
N/A N/A unittest N/A numpy N/A chainer chainer cuda chainer functions chainer gradient_check chainer testing chainer.testing attr chainer.testing condition _inv N/A N/A x N/A N/A N/A N/A N/A x ndim 2 N/A N/A N/A N/A N/A numpy linalg inv x N/A N/A N/A numpy array N/A N/A N/A N/A numpy linalg inv ix N/A ix x N/A _make_eye N/A N/A shape N/A N/A N/A N/A N/A len shape 2 N/A N/A n N/A shape N/A 0 N/A N/A N/A numpy eye n dtype N/A numpy float32 N/A m N/A shape N/A 0 N/A n N/A shape N/A 1 N/A N/A N/A numpy array N/A N/A N/A N/A numpy eye n dtype N/A numpy float32 m N/A InvFunctionTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self x N/A N/A N/A N/A N/A numpy eye N/A N/A self shape N/A -1 N/A N/A N/A numpy random uniform -0.01 0.01 N/A self shape astype N/A numpy float32 N/A N/A self gy N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A self shape astype N/A numpy float32 N/A check_forward N/A N/A self x_data atol rtol N/A 1e-07 1e-07 N/A N/A x N/A N/A chainer Variable x_data N/A y N/A N/A functions inv x N/A N/A N/A gradient_check assert_allclose N/A _inv N/A self x N/A y data atol atol rtol rtol N/A check_backward N/A N/A self x_data y_grad N/A kwargs N/A N/A N/A N/A gradient_check check_backward N/A N/A functions Inv x_data y_grad kwargs N/A test_identity_cpu N/A N/A self N/A N/A N/A eye N/A _make_eye N/A N/A self x shape N/A x N/A N/A chainer Variable N/A self x N/A y N/A N/A functions matmul x N/A N/A functions inv x N/A N/A N/A gradient_check assert_allclose N/A y data eye rtol 0.0001 atol 0.0001 N/A N/A N/A condition retry 3 test_identity_gpu N/A N/A self N/A N/A N/A eye N/A N/A cuda to_gpu N/A _make_eye N/A N/A self x shape N/A x N/A N/A chainer Variable N/A N/A cuda to_gpu N/A self x N/A y N/A N/A functions matmul x N/A N/A functions inv x N/A N/A N/A gradient_check assert_allclose N/A y data eye rtol 0.0001 atol 0.0001 N/A N/A attr gpu N/A N/A condition retry 3 test_forward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A self x atol 1e-05 rtol 1e-05 N/A N/A N/A condition retry 3 test_forward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A N/A cuda to_gpu N/A self x atol 0.0001 rtol 0.0001 N/A N/A attr gpu N/A N/A condition retry 3 test_backward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A self x N/A self gy atol 0.0001 rtol 0.0001 N/A N/A N/A condition retry 3 test_backward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A N/A cuda to_gpu N/A self x N/A N/A cuda to_gpu N/A self gy atol 0.0001 rtol 0.0001 N/A N/A attr gpu N/A N/A condition retry 3 N/A N/A N/A testing parameterize N/A N/A testing product N/A shape N/A N/A 1 1 N/A 5 5 BatchInvFunctionTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self x N/A N/A N/A N/A N/A numpy eye N/A N/A self shape N/A -1 N/A N/A N/A numpy random uniform -0.01 0.01 N/A self shape astype N/A numpy float32 N/A N/A self gy N/A N/A N/A N/A N/A numpy random uniform -1 1 N/A self shape astype N/A numpy float32 N/A check_forward N/A N/A self x_data atol rtol N/A 1e-07 1e-07 N/A N/A x N/A N/A chainer Variable x_data N/A y N/A N/A functions batch_inv x N/A N/A N/A gradient_check assert_allclose N/A _inv N/A self x N/A y data atol atol rtol rtol N/A check_backward N/A N/A self x_data y_grad N/A kwargs N/A N/A N/A N/A gradient_check check_backward N/A N/A functions BatchInv x_data y_grad kwargs N/A test_identity_cpu N/A N/A self N/A N/A N/A eye N/A _make_eye N/A N/A self x shape N/A x N/A N/A chainer Variable N/A self x N/A y N/A N/A functions batch_matmul x N/A N/A functions batch_inv x N/A N/A N/A gradient_check assert_allclose N/A y data eye rtol 0.0001 atol 0.0001 N/A N/A N/A condition retry 3 test_identity_gpu N/A N/A self N/A N/A N/A eye N/A N/A cuda to_gpu N/A _make_eye N/A N/A self x shape N/A x N/A N/A chainer Variable N/A N/A cuda to_gpu N/A self x N/A y N/A N/A functions batch_matmul x N/A N/A functions batch_inv x N/A N/A N/A gradient_check assert_allclose N/A y data eye rtol 0.0001 atol 0.0001 N/A N/A attr gpu N/A N/A condition retry 3 test_forward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A self x atol 1e-05 rtol 1e-05 N/A N/A N/A condition retry 3 test_forward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_forward N/A N/A cuda to_gpu N/A self x atol 1e-05 rtol 1e-05 N/A N/A attr gpu N/A N/A condition retry 3 test_backward_cpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A self x N/A self gy atol 0.0001 rtol 0.0001 N/A N/A N/A condition retry 3 test_backward_gpu N/A N/A self N/A N/A N/A N/A N/A self check_backward N/A N/A cuda to_gpu N/A self x N/A N/A cuda to_gpu N/A self gy atol 0.0001 rtol 0.0001 N/A N/A attr gpu N/A N/A condition retry 3 N/A N/A N/A testing parameterize N/A N/A testing product N/A shape N/A N/A 5 1 1 N/A 3 5 5 InvFunctionRaiseTest N/A N/A unittest TestCase N/A test_invalid_ndim N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A functions inv N/A N/A chainer Variable N/A N/A numpy zeros 1 2 2 N/A test_invalid_shape N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A functions inv N/A N/A chainer Variable N/A N/A numpy zeros 1 2 N/A N/A BatchInvFunctionRaiseTest N/A N/A unittest TestCase N/A test_invalid_ndim N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A functions batch_inv N/A N/A chainer Variable N/A N/A numpy zeros 2 2 N/A test_invalid_shape N/A N/A self N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A functions batch_inv N/A N/A chainer Variable N/A N/A numpy zeros 1 2 1 N/A N/A N/A N/A N/A testing run_module __name__ __file__