Fix problems in Tensor.from_numpy()
Use buffer_info instead of py::array in TensorDataNumpy, to avoid requesting buffer every time the data() is called. This is also a workaround for py::array.request() hangup problem.
Showing
想要评论请 注册 或 登录