Skip to content

Commit

Permalink
🐛Fixed arr_from_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Oct 21, 2024
1 parent 1d2e877 commit bd19370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/toolkit/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def arr_from_ptr(

import numpy as np

buff = {"data": (ptr, read_only_flag), "typestr": typestr, "shape": shape}
buff = {"data": (ptr, read_only_flag), "typestr": typestr, "shape": tuple(shape)}
holder = type("holder", (object,), {"__array_interface__": buff})()
return np.array(holder, copy=copy)

Expand Down

0 comments on commit bd19370

Please sign in to comment.