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/07/04 06:26:36 UTC

[GitHub] [incubator-mxnet] sandeep-krishnamurthy commented on a change in pull request #15364: Expose get_all_registered_operators and get_operator_arguments in the…

sandeep-krishnamurthy commented on a change in pull request #15364: Expose get_all_registered_operators and get_operator_arguments in the…
URL: https://github.com/apache/incubator-mxnet/pull/15364#discussion_r300244243
 
 

 ##########
 File path: tests/python/unittest/test_operator.py
 ##########
 @@ -8655,6 +8656,24 @@ def test_add_n():
     assert_almost_equal(rslt.asnumpy(), add_n_rslt.asnumpy(), atol=1e-5)
 
 
+def test_get_all_registered_operators():
+    ops = get_all_registered_operators()
+    ok_(isinstance(ops, list))
+    ok_(len(ops) > 0)
+    ok_('Activation' in ops)
+
+
+def test_get_operator_arguments():
+    operator_arguments = get_operator_arguments('Activation')
+    ok_(isinstance(operator_arguments, OperatorArguments))
+    ok_(operator_arguments.names == ['data', 'act_type'])
+    print(operator_arguments.types)
 
 Review comment:
   remove print?

----------------------------------------------------------------
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