15 references to CreateFromShape
System.Numerics.Tensors (15)
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 (9)
163
tensor =
CreateFromShape
<T>([totalLength]);
248
result =
CreateFromShape
<T>(lengths);
769
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
950
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1131
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1312
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1717
Tensor<T> output =
CreateFromShape
<T>(lengths, tensor.IsPinned);
1860
Tensor<T> output =
CreateFromShape
<T>(tensor.Lengths);
1874
Tensor<T> output =
CreateFromShape
<T>(tensor.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);