Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
16 references to Lengths
System.Numerics.Tensors (16)
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
272
result = Tensor.CreateFromShape<T>(
Lengths
, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (15)
1461
ReadOnlySpan<nint> lengths = tensor.
Lengths
;
1615
if (tensor.
Lengths
.SequenceEqual(lengths))
1634
GetReshapeStrides(tensor.
Lengths
, tensor.Strides, tensor.IsDense, newLengths, strides);
2208
for (int i = 0, index = 0; i < tensor.
Lengths
.Length; i++)
2210
if (tensor.
Lengths
[i] != 1)
2212
lengths[index] = tensor.
Lengths
[i];
2224
if (tensor.
Lengths
[dimension] != 1)
2231
tensor.
Lengths
[..dimension].CopyTo(lengths);
2232
tensor.
Lengths
[(dimension + 1)..].CopyTo(lengths[dimension..]);
2432
ReadOnlySpan<nint> lengths = outputs[0].
Lengths
;
2459
ReadOnlySpan<nint> lengths = outputs[0].
Lengths
;
2478
if (!TensorShape.AreLengthsEquivalent(lengths, tensors[i].
Lengths
))
2664
if (tensor.
Lengths
.Length < 2)
2670
tensor.
Lengths
.CopyTo(lengths);
2746
ReadOnlySpan<nint> lengths = tensor.
Lengths
;