Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
13 references to Lengths
System.Numerics.Tensors (13)
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
272
result = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (12)
1542
ReadOnlySpan<nint> lengths = tensor.
Lengths
;
1696
if (tensor.
Lengths
.SequenceEqual(lengths))
1715
GetReshapeStrides(tensor.
Lengths
, tensor.Strides, tensor.IsDense, newLengths, strides);
2485
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
2487
if (tensor.
Lengths
[i] != 1)
2489
lengths[index] = tensor.
Lengths
[i];
2501
if (tensor.
Lengths
[dimension] != 1)
2508
tensor.
Lengths
[..dimension].CopyTo(lengths);
2509
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2975
if (tensor.
Lengths
.Length < 2)
2981
tensor.
Lengths
.CopyTo(lengths);
3057
ReadOnlySpan<nint> lengths = tensor.
Lengths
;