set_(source=None, storage_offset=0, size=None, stride=None) → Tensor¶
Sets the underlying storage, size, and strides. If
sourceis a tensor,
selftensor will share the same storage and have the same size and strides as
source. Changes to elements in one tensor will be reflected in the other.
Storage, the method sets the underlying storage, offset, size, and stride.