14 references to CreateFromShape
System.Numerics.Tensors (14)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
527
Tensor<T> tmp = Tensor.
CreateFromShape
<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
266
result = Tensor.
CreateFromShape
<T>(Lengths, IsPinned);
365
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 (8)
161
tensor =
CreateFromShape
<T>(lengths);
175
tensor =
CreateFromShape
<T>([totalLength]);
640
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
821
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1002
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1183
Tensor<bool> destination =
CreateFromShape
<bool>(x.Lengths, false);
1705
Tensor<T> output =
CreateFromShape
<T>(tensor.Lengths);
1719
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);