Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import ctypes
  2. from mxnet.base import check_call, _LIB, py_str
  3. from mxnet import _numpy_op_doc
  4.  
  5.  
  6. plist = ctypes.POINTER(ctypes.c_char_p)()
  7. size = ctypes.c_uint()
  8. check_call(_LIB.MXListAllOpNames(ctypes.byref(size), ctypes.byref(plist)))
  9. op_names = []
  10. for i in range(size.value):
  11. name = py_str(plist[i])
  12. if name.startswith('_np_') or name.startswith('_npx_'):
  13. if not hasattr(_numpy_op_doc, name):
  14. print('Missing doc for op: {}'.format(name))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement