waytrue17 commented on a change in pull request #19661:
URL: https://github.com/apache/incubator-mxnet/pull/19661#discussion_r543712296



##########
File path: tests/python-pytest/onnx/test_operators.py
##########
@@ -98,11 +98,14 @@ def test_onnx_export_arange_like(tmp_path, dtype):
 
 
 def test_onnx_export_layernorm(tmp_path):
-    M = def_model('LayerNorm', axis=1)
-    x = mx.nd.array([[1,3],[2,4]], dtype='float32')
-    gamma = mx.random.uniform(0, 1, x[0].shape, dtype='float32')
-    beta = mx.random.uniform(0, 1, x[0].shape, dtype='float32')
-    op_export_test('LayerNorm', M, [x, gamma, beta], tmp_path)
+    x = mx.nd.random.uniform(1, 2, (3, 4, 5), dtype=dtype)

Review comment:
       Added dtype, thanks for pointing it out




----------------------------------------------------------------
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:
[email protected]


Reply via email to