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