15 references to CreateFromShape
System.Numerics.Tensors (15)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
534Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
272result = Tensor.CreateFromShape<T>(Lengths, IsPinned); 371static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned);
System\Numerics\Tensors\netcore\Tensor.cs (9)
163tensor = CreateFromShape<T>([totalLength]); 248result = CreateFromShape<T>(lengths); 769Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 950Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1131Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1312Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1717Tensor<T> output = CreateFromShape<T>(lengths, tensor.IsPinned); 1860Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1874Tensor<T> output = CreateFromShape<T>(tensor.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Multiply.cs (1)
30Tensor<T> destination = CreateFromShape<T>(x.Lengths);
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);