File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
ivy_tests/test_ivy/test_frontends/test_torch Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -7472,20 +7472,6 @@ def test_torch_grad(backend_fw):
74727472 ivy .previous_backend ()
74737473
74747474
7475- def test_torch_grad_fn (backend_fw ):
7476- ivy .set_backend (backend_fw )
7477- x = Tensor (ivy .array ([3.0 ]), requires_grad = True )
7478- ivy .utils .assertions .check_equal (x .grad_fn , None , as_array = False )
7479- y = x .pow (2 )
7480- ivy .utils .assertions .check_equal (y .grad_fn , "PowBackward" , as_array = False )
7481- ivy .utils .assertions .check_equal (
7482- y .grad_fn .next_functions [0 ], "AccumulateGrad" , as_array = False
7483- )
7484- z = y .detach ()
7485- ivy .utils .assertions .check_equal (z .grad_fn , None , as_array = False )
7486- ivy .previous_backend ()
7487-
7488-
74897475# greater
74907476@handle_frontend_method (
74917477 class_tree = CLASS_TREE ,
You can’t perform that action at this time.
0 commit comments