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 2019/11/12 23:38:56 UTC
[GitHub] [incubator-mxnet] sxjscience commented on a change in pull request
#16796: Add support for boolean inputs to FusedOp
sxjscience commented on a change in pull request #16796: Add support for boolean inputs to FusedOp
URL: https://github.com/apache/incubator-mxnet/pull/16796#discussion_r345503712
##########
File path: tests/python/gpu/test_fusion.py
##########
@@ -238,6 +238,49 @@ def test_fusion_compiler_cache():
if num_gpus > 1:
check_fused_symbol(a+b, ctx=mx.gpu(1), a=arr1, b=arr2)
+@with_seed()
+def test_fusion_boolean_inputs():
+ from mxnet.gluon import HybridBlock
+ mx.npx.set_np()
Review comment:
You may use the `@use_np` decorator like in https://github.com/apache/incubator-mxnet/blob/2c02bfffb2bdb4e8f1e5159e08e3250482e5f603/tests/python/unittest/test_numpy_ndarray.py#L28,
https://github.com/apache/incubator-mxnet/blob/2c02bfffb2bdb4e8f1e5159e08e3250482e5f603/tests/python/unittest/test_numpy_ndarray.py#L36-L40
----------------------------------------------------------------
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
With regards,
Apache Git Services