Skip to content

Commit

Permalink
Update on "[bug] [lang] Fix copyback for fortran contiguous numpy arr…
Browse files Browse the repository at this point in the history
…ays" (#6390)"

Attempt #2
This PR got reverted due to failed release tests.

[ghstack-poisoned]
  • Loading branch information
Ailing Zhang committed Oct 20, 2022
2 parents 243bc22 + c4d2fba commit 5ce7d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/taichi/lang/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def from_numpy(self, arr):
"""
if not arr.flags.c_contiguous:
arr = np.ascontiguousarray(arr)
self._from_external_arr(self, arr)
self._from_external_arr(arr)

@python_scope
def __setitem__(self, key, value):
Expand Down

0 comments on commit 5ce7d80

Please sign in to comment.