Commit 016780f4 authored by tsocha's avatar tsocha Committed by Scott Cyphers

Fix the problem with unflatten numpy arrays (#695)

parent 1447b578
......@@ -114,7 +114,7 @@ class Computation:
buffer_size = Computation._get_buffer_size(
tensor_view.element_type, tensor_view.element_count)
tensor_view.write(util.numpy_to_c(value), 0, buffer_size)
tensor_view.write(util.numpy_to_c(np.ascontiguousarray(value)), 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