12 references to Create
System.Numerics.Tensors (12)
System\Numerics\Tensors\netcore\Tensor.cs (9)
165
tensor = Tensor.
Create
<T>(lengths);
179
tensor = Tensor.
Create
<T>([totalLength]);
697
Tensor<bool> destination = Tensor.
Create
<bool>(x.Lengths, false);
878
Tensor<bool> destination = Tensor.
Create
<bool>(x.Lengths, false);
1059
Tensor<bool> destination = Tensor.
Create
<bool>(x.Lengths, false);
1240
Tensor<bool> destination = Tensor.
Create
<bool>(x.Lengths, false);
1724
Tensor<T> output = Tensor.
Create
<T>(tensor.Lengths);
1738
Tensor<T> output = Tensor.
Create
<T>(tensor.Lengths);
4717
Tensor<T> destination = Tensor.
Create
<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor_1.cs (3)
304
result = Tensor.
Create
<T>(Lengths, IsPinned);
396
static Tensor<T> ITensor<Tensor<T>, T>.Create(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.
Create
<T>(lengths, pinned);
400
static Tensor<T> ITensor<Tensor<T>, T>.CreateUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.
Create
<T>(lengths, pinned);