16 references to CreateFromShape
System.Numerics.Tensors (16)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
534
Tensor<T> tmp = Tensor.
CreateFromShape
<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
272
result = Tensor.
CreateFromShape
<T>(Lengths, IsPinned);
371
static 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)
163
tensor =
CreateFromShape
<T>([totalLength]);
248
result =
CreateFromShape
<T>(lengths);
850
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1031
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1212
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1393
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1798
Tensor<T> output =
CreateFromShape
<T>(lengths, tensor.IsPinned);
1996
Tensor<T> output =
CreateFromShape
<T>(tensor.Lengths);
2010
Tensor<T> output =
CreateFromShape
<T>(tensor.Lengths);
2715
Tensor<T> result =
CreateFromShape
<T>(lengths);
System\Numerics\Tensors\netcore\Tensor.op_Multiply.cs (1)
30
Tensor<T> destination =
CreateFromShape
<T>(x.Lengths);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
408
result = Tensor.
CreateFromShape
<T>(Lengths, IsPinned);
447
static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.
CreateFromShape
<T>(lengths, pinned);