Skip to content

Commit

Permalink
fix ndarray view bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BarclayII committed Jul 18, 2019
1 parent aecd224 commit 236c5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dgl/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ def zerocopy_from_numpy(np_data):
"""
arr, _ = numpyasarray(np_data)
handle = ctypes.pointer(arr)
return NDArray(handle, is_view=True)
return NDArray(handle, is_view=False)

_set_class_ndarray(NDArray)

0 comments on commit 236c5bc

Please sign in to comment.