Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Rename np_compat to np_shape in test_operatory.py
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed May 25, 2019
1 parent 7b2a500 commit ba992c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/python/unittest/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8457,7 +8457,7 @@ def test_index_array_default():
check_symbolic_forward(index_array, [input_array], [expected])
check_symbolic_backward(index_array, [input_array], [np.ones(expected.shape)], [np.zeros_like(input_array)])

@mx.use_np_compat
@mx.use_np_shape
def test_index_array_default_zero_dim():
data = mx.symbol.Variable("data")
index_array = mx.sym.contrib.index_array(data)
Expand All @@ -8468,7 +8468,7 @@ def test_index_array_default_zero_dim():
check_symbolic_forward(index_array, [input_array], [expected])
check_symbolic_backward(index_array, [input_array], [np.ones(expected.shape)], [np.zeros_like(input_array)])

@mx.use_np_compat
@mx.use_np_shape
def test_index_array_default_zero_size():
data = mx.symbol.Variable("data")
index_array = mx.sym.contrib.index_array(data)
Expand All @@ -8492,7 +8492,7 @@ def test_index_array_select_axes():
check_symbolic_forward(index_array, [input_array], [expected])
check_symbolic_backward(index_array, [input_array], [np.ones(expected.shape)], [np.zeros_like(input_array)])

@mx.use_np_compat
@mx.use_np_shape
def test_index_array_select_axes_zero_size():
data = mx.symbol.Variable("data")
index_array = mx.sym.contrib.index_array(data, axes=(2, 1))
Expand All @@ -8502,7 +8502,7 @@ def test_index_array_select_axes_zero_size():

check_symbolic_forward(index_array, [input_array], [expected])
check_symbolic_backward(index_array, [input_array], [np.ones(expected.shape)], [np.zeros_like(input_array)])

test_index_array_default()
test_index_array_default_zero_dim()
test_index_array_default_zero_size()
Expand Down

0 comments on commit ba992c2

Please sign in to comment.