16 references to CreateFromShape
System.Numerics.Tensors (16)
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 (10)
163tensor = CreateFromShape<T>([totalLength]); 248result = CreateFromShape<T>(lengths); 850Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1031Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1212Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1393Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1798Tensor<T> output = CreateFromShape<T>(lengths, tensor.IsPinned); 1996Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 2010Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 2715Tensor<T> result = CreateFromShape<T>(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);