14 references to CreateFromShape
System.Numerics.Tensors (14)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
520Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (9)
161tensor = CreateFromShape<T>(lengths); 175tensor = CreateFromShape<T>([totalLength]); 585Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 766Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 947Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1128Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1608Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1622Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 4524Tensor<T> destination = CreateFromShape<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
266result = Tensor.CreateFromShape<T>(Lengths, IsPinned); 375static 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)
409result = Tensor.CreateFromShape<T>(Lengths, IsPinned); 448static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned);