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

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Aug 7, 2019
1 parent f4d2af0 commit 4234412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/unittest/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4793,7 +4793,7 @@ def test_normal_case():

def test_empty_tensor():
shape = (2, 3, 0, 4)
with mx.np_compat():
with mx.np_shape():
a = np.array([], dtype=np.int32).reshape(shape)
b = mx.nd.array(a, ctx=default_context(), dtype=a.dtype)

Expand Down Expand Up @@ -4890,7 +4890,7 @@ def test_normal_case(index_type=np.int32):

def test_empty_indices():
shape = (2, 0, 9, 3)
with mx.np_compat():
with mx.np_shape():
indices = np.array([]).reshape(shape)
depth = 10
mx_one_hot_array = mx.nd.one_hot(
Expand Down

0 comments on commit 4234412

Please sign in to comment.