fastnumpyio icon indicating copy to clipboard operation
fastnumpyio copied to clipboard

UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors.

Open hushaoqing opened this issue 1 year ago • 0 comments

image

It is caused by the OWNDATA and WRITEABLE flags

  C_CONTIGUOUS : True
  F_CONTIGUOUS : False
  OWNDATA : False
  WRITEABLE : False
  ALIGNED : True
  WRITEBACKIFCOPY : False

hushaoqing avatar Nov 07 '24 11:11 hushaoqing