Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ctypes
- from mxnet.base import check_call, _LIB, py_str
- from mxnet import _numpy_op_doc
- plist = ctypes.POINTER(ctypes.c_char_p)()
- size = ctypes.c_uint()
- check_call(_LIB.MXListAllOpNames(ctypes.byref(size), ctypes.byref(plist)))
- op_names = []
- for i in range(size.value):
- name = py_str(plist[i])
- if name.startswith('_np_') or name.startswith('_npx_'):
- if not hasattr(_numpy_op_doc, name):
- print('Missing doc for op: {}'.format(name))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement