setTensor method Null safety

void setTensor(
  1. Tensor<T> tensor
)

Initializes shape and element values with the tensor.

Implementation

void setTensor(Tensor<T> tensor);