You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/01/21 23:16:37 UTC
[GitHub] [incubator-mxnet] waytrue17 commented on a change in pull request #19767: [v1.x] Onnx export support for gather_nd
waytrue17 commented on a change in pull request #19767:
URL: https://github.com/apache/incubator-mxnet/pull/19767#discussion_r562260088
##########
File path: tests/python-pytest/onnx/test_operators.py
##########
@@ -452,3 +452,15 @@ def test_onnx_export_reshape_like(tmp_path, dtype):
op_export_test('reshape_like3', M3, [x, y], tmp_path)
M4 = def_model('reshape_like', lhs_begin=0, lhs_end=None, rhs_begin=1, rhs_end=None)
op_export_test('reshape_like4', M4, [x, y], tmp_path)
+
+
+@pytest.mark.parametrize('dtype', ['int32', 'int64', 'float16', 'float32', 'float64'])
+def test_onnx_export_gather_nd(tmp_path, dtype):
+ x1 = mx.nd.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]], dtype=dtype)
Review comment:
Fixed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org