Commit 0deea239 authored by Adam Straw's avatar Adam Straw Committed by Robert Kimball

workaround for nGraph python runtime tensor write data corruption (#1087)

parent d783eece
......@@ -120,7 +120,9 @@ class Computation:
buffer_size = Computation._get_buffer_size(
tensor_view.element_type, tensor_view.element_count)
tensor_view.write(util.numpy_to_c(np.ascontiguousarray(value)), 0, buffer_size)
nparray = np.ascontiguousarray(value)
tensor_view.write(util.numpy_to_c(nparray), 0, buffer_size)
@staticmethod
def _read_tensor_view_to_ndarray(tensor_view, output):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment