Skip to content

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

Open
@hushaoqing

Description

@hushaoqing

image

It is caused by the OWNDATA and WRITEABLE flags

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions