larroy 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_r297887004
##########
File path: tests/python/unittest/test_operator.py
##########
@@ -8655,6 +8656,17 @@ 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)
Review comment:
ok, I thought in the future we might dynamically build with only the
operators needed, so I didn't want to make this asumption. For now we can
assume that some basic op will be present.
----------------------------------------------------------------
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]
With regards,
Apache Git Services