Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame committed Feb 22, 2019
1 parent 101f2b7 commit c8233e6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/python/relay/test_pass_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,6 @@ def test_broadcast_subtract():
-np.ones_like(expected_forward).sum(axis=(0, 1), keepdims=True).squeeze(axis=0))


def test_sub():
pass
#ex = create_executor()
#x = rand(dtype, *shape)
#forward, (grad,) = ex.evaluate(back_func)(x)
#np.testing.assert_allclose(forward.asnumpy(), np.zeros_like(x.asnumpy()))
#np.testing.assert_allclose(grad.asnumpy(), np.zeros_like(x.asnumpy()))

def test_tuple():
shape = (10, 10)
dtype = 'float32'
Expand Down Expand Up @@ -159,6 +151,7 @@ def test_tuple():
np.testing.assert_allclose(grad_y.asnumpy(), np.ones_like(grad_y.asnumpy()))
np.testing.assert_allclose(grad_z.asnumpy(), -1 * np.ones_like(grad_z.asnumpy()))


if __name__ == "__main__":
test_id()
test_add()
Expand Down

0 comments on commit c8233e6

Please sign in to comment.