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)
68
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, lengths);
71
Tensor<T> output =
Tensor
.CreateUninitialized<T>(intermediate.Lengths);
85
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
100
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
115
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths);
305
tensor =
Tensor
.Create<T>([totalLength]);
312
tensor =
Tensor
.Create<T>(lengths);
445
result =
Tensor
.Create<bool>(x.Lengths, false);
449
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
450
result =
Tensor
.Create<bool>(newSize, false);
479
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
523
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
583
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
667
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
813
result =
Tensor
.Create<bool>(x.Lengths, false);
817
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
818
result =
Tensor
.Create<bool>(newSize, false);
850
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
896
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
956
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1022
result =
Tensor
.Create<bool>(x.Lengths, false);
1026
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1027
result =
Tensor
.Create<bool>(newSize, false);
1059
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1105
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
1165
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1226
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1349
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1473
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1597
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1725
result =
Tensor
.Create<bool>(x.Lengths, false);
1729
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1730
result =
Tensor
.Create<bool>(newSize, false);
1762
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1808
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
1868
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
1934
result =
Tensor
.Create<bool>(x.Lengths, false);
1938
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
1939
result =
Tensor
.Create<bool>(newSize, false);
1971
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2017
Tensor<bool> result =
Tensor
.Create<bool>(x.Lengths, false);
2077
Tensor<bool> result =
Tensor
.Create<bool>(y.Lengths, false);
2139
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2263
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2386
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2509
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths);
2996
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3010
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
3450
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
3452
return
Tensor
.ConcatenateOnDimension<T>(dimension, outputs);
3488
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
3490
return ref
Tensor
.ConcatenateOnDimension<T>(dimension, outputs, destination);
3620
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(tensor.Lengths, destination.Lengths);
3751
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3776
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3801
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3826
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3855
output =
Tensor
.Create<T>(x.Lengths);
3859
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
3874
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3912
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3937
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3962
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
3987
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4016
output =
Tensor
.Create<T>(x.Lengths);
4020
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4047
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4073
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4104
output =
Tensor
.Create<T>(x.Lengths);
4108
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4135
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4161
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4189
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4214
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4256
output =
Tensor
.Create<T>(x.Lengths);
4260
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4287
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4318
output =
Tensor
.Create<T>(x.Lengths);
4322
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4349
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4376
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4401
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4428
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4458
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4488
Tensor<TTo> output =
Tensor
.Create<TTo>(source.Lengths);
4534
output =
Tensor
.Create<T>(x.Lengths);
4538
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, sign.Lengths));
4578
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4603
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4643
Tensor<T> output =
Tensor
.Create<T>(values, [dim1, dim2]);
4720
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4755
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4807
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
4824
output =
Tensor
.Create<T>(x.Lengths);
4828
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
4894
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4919
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4942
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4963
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
4984
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5005
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5026
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5054
output =
Tensor
.Create<T>(x.Lengths);
5058
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5090
output =
Tensor
.Create<T>(x.Lengths);
5094
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5118
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5140
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
5163
Tensor<int> output =
Tensor
.Create<int>(x.Lengths, x.Strides);
5232
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5257
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5282
output =
Tensor
.Create<T>(x.Lengths);
5286
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5309
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5334
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5359
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5384
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5409
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5434
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5469
output =
Tensor
.Create<T>(x.Lengths);
5473
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5496
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5530
output =
Tensor
.Create<T>(x.Lengths);
5534
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5557
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5591
output =
Tensor
.Create<T>(x.Lengths);
5595
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5618
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5652
output =
Tensor
.Create<T>(x.Lengths);
5656
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5679
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5713
output =
Tensor
.Create<T>(x.Lengths);
5717
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5740
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5774
output =
Tensor
.Create<T>(x.Lengths);
5778
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5801
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5835
output =
Tensor
.Create<T>(x.Lengths);
5839
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5862
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5896
output =
Tensor
.Create<T>(x.Lengths);
5900
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
5923
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5948
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
5965
output =
Tensor
.Create<T>(x.Lengths);
5969
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6011
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6044
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6065
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6090
output =
Tensor
.Create<T>(x.Lengths);
6094
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6117
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6139
Tensor<T> output =
Tensor
.Create<T>(y.Lengths);
6172
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6193
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6215
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6245
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6276
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6305
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6326
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6354
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6381
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6409
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6432
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6455
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6476
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6497
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6520
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6588
output =
Tensor
.Create<T>(x.Lengths);
6592
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6668
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6689
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6710
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6731
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6752
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6777
output =
Tensor
.Create<T>(x.Lengths);
6781
output =
Tensor
.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths));
6806
Tensor<T> output =
Tensor
.Create<T>(x.Lengths);
6900
nint[] newLengths =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7073
nint[] newSize =
Tensor
.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths);
7094
ReadOnlyTensorSpan<T> broadcastedLeft =
Tensor
.LazyBroadcast(left, newSize);
7095
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);