190 references to Tensor
System.Numerics.Tensors (190)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (4)
559
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
562
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);
615
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
618
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);
System\Numerics\Tensors\netcore\TensorExtensions.cs (182)
82
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, lengths);
85
Tensor<T> output =
Tensor
.CreateUninitialized<T>(intermediate.Lengths);
99
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
114
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
129
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
319
tensor =
Tensor
.Create<T>([totalLength]);
326
tensor =
Tensor
.Create<T>(lengths);
459
result =
Tensor
.Create<bool>(x.Lengths, false);
463
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
464
result =
Tensor
.Create<bool>(newSize, false);
493
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
537
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
597
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
681
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
827
result =
Tensor
.Create<bool>(x.Lengths, false);
831
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
832
result =
Tensor
.Create<bool>(newSize, false);
864
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
910
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
970
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1036
result =
Tensor
.Create<bool>(x.Lengths, false);
1040
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1041
result =
Tensor
.Create<bool>(newSize, false);
1073
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1119
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
1179
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1240
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1363
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1487
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1611
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1739
result =
Tensor
.Create<bool>(x.Lengths, false);
1743
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1744
result =
Tensor
.Create<bool>(newSize, false);
1776
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1822
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
1882
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1948
result =
Tensor
.Create<bool>(x.Lengths, false);
1952
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1953
result =
Tensor
.Create<bool>(newSize, false);
1985
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2031
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
2091
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
2153
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2277
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2400
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2523
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
3010
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3024
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3464
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
3466
return
Tensor
.ConcatenateOnDimension<T>(dimension, outputs);
3502
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
3504
return ref
Tensor
.ConcatenateOnDimension<T>(dimension, outputs, destination);
3653
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(tensor.Lengths, destination.Lengths);
3784
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3809
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3834
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3859
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3888
output =
Tensor
.Create<T>(x.Lengths);
3892
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
3907
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3945
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3970
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3995
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4020
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4049
output =
Tensor
.Create<T>(x.Lengths);
4053
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4080
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4106
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4137
output =
Tensor
.Create<T>(x.Lengths);
4141
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4168
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4194
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4222
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4247
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4276
output =
Tensor
.Create<T>(x.Lengths);
4280
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4307
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4338
output =
Tensor
.Create<T>(x.Lengths);
4342
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4369
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4396
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4421
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4448
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4478
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4508
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4554
output =
Tensor
.Create<T>(x.Lengths);
4558
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, sign.Lengths));
4598
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4623
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4663
Tensor<T> output =
Tensor
.Create<T>(values, [dim1, dim2]);
4740
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4775
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4827
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4844
output =
Tensor
.Create<T>(x.Lengths);
4848
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4914
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4939
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4962
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4983
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5004
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5025
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5046
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5074
output =
Tensor
.Create<T>(x.Lengths);
5078
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5110
output =
Tensor
.Create<T>(x.Lengths);
5114
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5138
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5160
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
5183
Tensor<int> output =
Tensor
.Create<int>(x.Lengths, x.Strides);
5252
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5277
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5302
output =
Tensor
.Create<T>(x.Lengths);
5306
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5329
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5354
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5379
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5404
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5429
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5454
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5489
output =
Tensor
.Create<T>(x.Lengths);
5493
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5516
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5550
output =
Tensor
.Create<T>(x.Lengths);
5554
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5577
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5611
output =
Tensor
.Create<T>(x.Lengths);
5615
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5638
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5672
output =
Tensor
.Create<T>(x.Lengths);
5676
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5699
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5733
output =
Tensor
.Create<T>(x.Lengths);
5737
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5760
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5794
output =
Tensor
.Create<T>(x.Lengths);
5798
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5821
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5855
output =
Tensor
.Create<T>(x.Lengths);
5859
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5882
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5916
output =
Tensor
.Create<T>(x.Lengths);
5920
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5943
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5968
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5985
output =
Tensor
.Create<T>(x.Lengths);
5989
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6031
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6064
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6085
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6110
output =
Tensor
.Create<T>(x.Lengths);
6114
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6137
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6159
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
6192
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6213
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6235
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6265
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6296
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6325
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6346
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6374
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6401
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6429
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6452
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6475
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6496
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6517
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6540
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6595
output =
Tensor
.Create<T>(x.Lengths);
6599
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6675
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6696
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6717
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6738
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6759
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6784
output =
Tensor
.Create<T>(x.Lengths);
6788
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6813
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6907
nint[] newLengths =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7080
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7101
ReadOnlyTensorSpan<T> broadcastedLeft =
Tensor
.LazyBroadcast(left, newSize);
7102
ReadOnlyTensorSpan<T> broadcastedRight =
Tensor
.LazyBroadcast(right, newSize);
System\Numerics\Tensors\netcore\TensorSpan.cs (4)
588
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
591
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);
642
nint[] tempLengths =
Tensor
.GetSmallestBroadcastableLengths(Lengths, destination.Lengths);
645
ReadOnlyTensorSpan<T> srcSlice =
Tensor
.LazyBroadcast(this, tempLengths);