Tensor<T>.ToDenseTensor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a dense tensor from the elements of the current tensor.
public:
virtual System::Numerics::Tensors::Tensor<T> ^ ToDenseTensor();
public System.Numerics.Tensors.Tensor<T> ToDenseTensor();
abstract member ToDenseTensor : unit -> System.Numerics.Tensors.Tensor<'T>
override this.ToDenseTensor : unit -> System.Numerics.Tensors.Tensor<'T>
Public Function ToDenseTensor () As Tensor(Of T)
Returns
The current tensor if it is already dense; otherwise, a new tensor that contains the elements of this tensor.