szha commented on a change in pull request #15063: Rename np_compat to np_shape
URL: https://github.com/apache/incubator-mxnet/pull/15063#discussion_r287552092
##########
File path: python/mxnet/util.py
##########
@@ -44,3 +45,195 @@ def get_gpu_memory(gpu_dev_id):
total_mem = ctypes.c_uint64(0)
check_call(_LIB.MXGetGPUMemoryInformation64(gpu_dev_id,
ctypes.byref(free_mem), ctypes.byref(total_mem)))
return free_mem.value, total_mem.value
+
+
+def set_np_shape(active):
+ """
+ Turns on/off NumPy shape semantics. This is turned off by default for
Review comment:
document what numpy shape semantics means.
----------------------------------------------------------------
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