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

Commit

Permalink
degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
hgt312 committed Oct 10, 2019
1 parent 012274b commit 7fc7c6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/mxnet/numpy_dispatch_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def _register_array_function():
'add',
'arctan2',
'copysign',
'degrees',
'subtract',
'multiply',
# Uncomment divide when mxnet.numpy.true_divide is added
Expand Down
2 changes: 2 additions & 0 deletions tests/python/unittest/test_numpy_interoperability.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def _prepare_workloads():
OpArgMngr.add_workload('arctan2', np.array([np.inf, -np.inf]), np.array([np.inf, np.inf]))
OpArgMngr.add_workload('copysign', np.array([1, 0, 0]), np.array([-1, -1, 1]))
OpArgMngr.add_workload('copysign', np.array([-2, 5, 1, 4, 3], dtype=np.float16), np.array([0, 1, 2, 4, 2], dtype=np.float16))
OpArgMngr.add_workload('degrees', np.array(np.pi))
OpArgMngr.add_workload('degrees', np.array(-0.5*np.pi))
OpArgMngr.add_workload('subtract', array_pool['4x1'], array_pool['1x2'])
OpArgMngr.add_workload('subtract', array_pool['4x1'], 2)
OpArgMngr.add_workload('subtract', 2, array_pool['4x1'])
Expand Down

0 comments on commit 7fc7c6f

Please sign in to comment.