13 references to CreateFromShape
System.Numerics.Tensors (13)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
527Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (8)
161tensor = CreateFromShape<T>(lengths); 175tensor = CreateFromShape<T>([totalLength]); 653Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 834Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1015Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1196Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1718Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1732Tensor<T> output = CreateFromShape<T>(tensor.Lengths);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
266result = Tensor.CreateFromShape<T>(Lengths, IsPinned); 365static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
408result = Tensor.CreateFromShape<T>(Lengths, IsPinned); 447static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned);