From c4d2fbaec9e2572c23829285adeab52685c35a1b Mon Sep 17 00:00:00 2001 From: Ailing Zhang Date: Thu, 20 Oct 2022 18:37:01 +0800 Subject: [PATCH] Update base for Update on "[bug] [lang] Fix copyback for fortran contiguous numpy arrays" (#6390)" Attempt #2 This PR got reverted due to failed release tests. [ghstack-poisoned] --- python/taichi/lang/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/taichi/lang/field.py b/python/taichi/lang/field.py index 7a91b2a93d068..32bc2343cf573 100644 --- a/python/taichi/lang/field.py +++ b/python/taichi/lang/field.py @@ -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):