Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cuda_core/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _arr_size(arr):
def _arr_is_c_contiguous(arr):
if torch is not None and isinstance(arr, torch.Tensor):
return arr.is_contiguous()
return arr.flags.c_contiguous if hasattr(arr, "flags") else arr.flags["C_CONTIGUOUS"]
return arr.flags.c_contiguous if hasattr(arr.flags, "c_contiguous") else arr.flags["C_CONTIGUOUS"]


def _arr_is_writeable(arr):
Expand Down
Loading