Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add test for TopK
Browse files Browse the repository at this point in the history
  • Loading branch information
vandanavk committed Dec 28, 2018
1 parent f22df97 commit ffb5126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/mxnet/contrib/onnx/onnx2mx/_op_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,4 +719,4 @@ def topk(attrs, inputs, proto_obj):
"""Returns the top k elements in an input array along the given axis."""
new_attrs = translation_utils._add_extra_attributes(attrs,
{'ret_typ': 'both'})
return 'topk', new_attrs, inputs
return 'topk', new_attrs, inputs
3 changes: 2 additions & 1 deletion tests/python-pytest/onnx/test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
'test_selu_default',
'test_elu',
'test_max_',
'test_softplus'
'test_softplus',
'test_top_k'
],
'import': ['test_gather',
'test_global_lppooling',
Expand Down

0 comments on commit ffb5126

Please sign in to comment.