190 references to Tensor
System.Numerics.Tensors (190)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (4)
542nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 545ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths); 598nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 601ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths);
System\Numerics\Tensors\netcore\TensorExtensions.cs (182)
83nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, lengths); 86Tensor<T> output = Tensor.CreateUninitialized<T>(intermediate.Lengths); 100nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 115nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 130nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 320tensor = Tensor.Create<T>([totalLength]); 327tensor = Tensor.Create<T>(lengths); 460result = Tensor.Create<bool>(x.Lengths, false); 464nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 465result = Tensor.Create<bool>(newSize, false); 494nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 538Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 598nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 682nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 828result = Tensor.Create<bool>(x.Lengths, false); 832nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 833result = Tensor.Create<bool>(newSize, false); 865nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 911Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 971Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1037result = Tensor.Create<bool>(x.Lengths, false); 1041nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1042result = Tensor.Create<bool>(newSize, false); 1074nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1120Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 1180Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1241nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1364nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1488nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1612nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1740result = Tensor.Create<bool>(x.Lengths, false); 1744nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1745result = Tensor.Create<bool>(newSize, false); 1777nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1823Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 1883Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 1949result = Tensor.Create<bool>(x.Lengths, false); 1953nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 1954result = Tensor.Create<bool>(newSize, false); 1986nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2032Tensor<bool> result = Tensor.Create<bool>(x.Lengths, false); 2092Tensor<bool> result = Tensor.Create<bool>(y.Lengths, false); 2154nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2278nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2401nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 2524nint[] newSize = Tensor.GetSmallestBroadcastableLengths(x.Lengths, y.Lengths); 3011Tensor<T> output = Tensor.Create<T>(tensor.Lengths); 3025Tensor<T> output = Tensor.Create<T>(tensor.Lengths); 3465outputs[i] = Tensor.Unsqueeze(tensors[i], dimension); 3467return Tensor.ConcatenateOnDimension<T>(dimension, outputs); 3503outputs[i] = Tensor.Unsqueeze(tensors[i], dimension); 3505return ref Tensor.ConcatenateOnDimension<T>(dimension, tensors, destination); 3647nint[] newSize = Tensor.GetSmallestBroadcastableLengths(tensor.Lengths, destination.Lengths); 3739Tensor<T> output = Tensor.Create<T>(x.Lengths); 3764Tensor<T> output = Tensor.Create<T>(x.Lengths); 3789Tensor<T> output = Tensor.Create<T>(x.Lengths); 3814Tensor<T> output = Tensor.Create<T>(x.Lengths); 3843output = Tensor.Create<T>(x.Lengths); 3847output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 3862Tensor<T> output = Tensor.Create<T>(x.Lengths); 3900Tensor<T> output = Tensor.Create<T>(x.Lengths); 3925Tensor<T> output = Tensor.Create<T>(x.Lengths); 3950Tensor<T> output = Tensor.Create<T>(x.Lengths); 3975Tensor<T> output = Tensor.Create<T>(x.Lengths); 4004output = Tensor.Create<T>(x.Lengths); 4008output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4035Tensor<T> output = Tensor.Create<T>(x.Lengths); 4061Tensor<T> output = Tensor.Create<T>(y.Lengths); 4092output = Tensor.Create<T>(x.Lengths); 4096output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4123Tensor<T> output = Tensor.Create<T>(x.Lengths); 4149Tensor<T> output = Tensor.Create<T>(y.Lengths); 4177Tensor<T> output = Tensor.Create<T>(x.Lengths); 4202Tensor<T> output = Tensor.Create<T>(x.Lengths); 4231output = Tensor.Create<T>(x.Lengths); 4235output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4262Tensor<T> output = Tensor.Create<T>(x.Lengths); 4293output = Tensor.Create<T>(x.Lengths); 4297output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4324Tensor<T> output = Tensor.Create<T>(x.Lengths); 4351Tensor<T> output = Tensor.Create<T>(x.Lengths); 4376Tensor<T> output = Tensor.Create<T>(x.Lengths); 4403Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4433Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4463Tensor<TTo> output = Tensor.Create<TTo>(source.Lengths); 4509output = Tensor.Create<T>(x.Lengths); 4513output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, sign.Lengths)); 4553Tensor<T> output = Tensor.Create<T>(x.Lengths); 4578Tensor<T> output = Tensor.Create<T>(x.Lengths); 4618Tensor<T> output = Tensor.Create<T>(values, [dim1, dim2]); 4695Tensor<T> output = Tensor.Create<T>(x.Lengths); 4730Tensor<T> output = Tensor.Create<T>(x.Lengths); 4782Tensor<T> output = Tensor.Create<T>(y.Lengths); 4799output = Tensor.Create<T>(x.Lengths); 4803output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 4869Tensor<T> output = Tensor.Create<T>(x.Lengths); 4894Tensor<T> output = Tensor.Create<T>(x.Lengths); 4917Tensor<T> output = Tensor.Create<T>(x.Lengths); 4938Tensor<T> output = Tensor.Create<T>(x.Lengths); 4959Tensor<T> output = Tensor.Create<T>(x.Lengths); 4980Tensor<T> output = Tensor.Create<T>(x.Lengths); 5001Tensor<T> output = Tensor.Create<T>(x.Lengths); 5029output = Tensor.Create<T>(x.Lengths); 5033output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5065output = Tensor.Create<T>(x.Lengths); 5069output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5093Tensor<T> output = Tensor.Create<T>(x.Lengths); 5115Tensor<T> output = Tensor.Create<T>(y.Lengths); 5138Tensor<int> output = Tensor.Create<int>(x.Lengths, x.Strides); 5207Tensor<T> output = Tensor.Create<T>(x.Lengths); 5232Tensor<T> output = Tensor.Create<T>(x.Lengths); 5257output = Tensor.Create<T>(x.Lengths); 5261output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5284Tensor<T> output = Tensor.Create<T>(x.Lengths); 5309Tensor<T> output = Tensor.Create<T>(x.Lengths); 5334Tensor<T> output = Tensor.Create<T>(x.Lengths); 5359Tensor<T> output = Tensor.Create<T>(x.Lengths); 5384Tensor<T> output = Tensor.Create<T>(x.Lengths); 5409Tensor<T> output = Tensor.Create<T>(x.Lengths); 5444output = Tensor.Create<T>(x.Lengths); 5448output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5471Tensor<T> output = Tensor.Create<T>(x.Lengths); 5505output = Tensor.Create<T>(x.Lengths); 5509output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5532Tensor<T> output = Tensor.Create<T>(x.Lengths); 5566output = Tensor.Create<T>(x.Lengths); 5570output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5593Tensor<T> output = Tensor.Create<T>(x.Lengths); 5627output = Tensor.Create<T>(x.Lengths); 5631output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5654Tensor<T> output = Tensor.Create<T>(x.Lengths); 5688output = Tensor.Create<T>(x.Lengths); 5692output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5715Tensor<T> output = Tensor.Create<T>(x.Lengths); 5749output = Tensor.Create<T>(x.Lengths); 5753output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5776Tensor<T> output = Tensor.Create<T>(x.Lengths); 5810output = Tensor.Create<T>(x.Lengths); 5814output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5837Tensor<T> output = Tensor.Create<T>(x.Lengths); 5871output = Tensor.Create<T>(x.Lengths); 5875output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5898Tensor<T> output = Tensor.Create<T>(x.Lengths); 5923Tensor<T> output = Tensor.Create<T>(x.Lengths); 5940output = Tensor.Create<T>(x.Lengths); 5944output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 5986Tensor<T> output = Tensor.Create<T>(x.Lengths); 6019Tensor<T> output = Tensor.Create<T>(x.Lengths); 6040Tensor<T> output = Tensor.Create<T>(x.Lengths); 6065output = Tensor.Create<T>(x.Lengths); 6069output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6092Tensor<T> output = Tensor.Create<T>(x.Lengths); 6114Tensor<T> output = Tensor.Create<T>(y.Lengths); 6147Tensor<T> output = Tensor.Create<T>(x.Lengths); 6168Tensor<T> output = Tensor.Create<T>(x.Lengths); 6190Tensor<T> output = Tensor.Create<T>(x.Lengths); 6220Tensor<T> output = Tensor.Create<T>(x.Lengths); 6251Tensor<T> output = Tensor.Create<T>(x.Lengths); 6280Tensor<T> output = Tensor.Create<T>(x.Lengths); 6301Tensor<T> output = Tensor.Create<T>(x.Lengths); 6329Tensor<T> output = Tensor.Create<T>(x.Lengths); 6356Tensor<T> output = Tensor.Create<T>(x.Lengths); 6384Tensor<T> output = Tensor.Create<T>(x.Lengths); 6407Tensor<T> output = Tensor.Create<T>(x.Lengths); 6430Tensor<T> output = Tensor.Create<T>(x.Lengths); 6451Tensor<T> output = Tensor.Create<T>(x.Lengths); 6472Tensor<T> output = Tensor.Create<T>(x.Lengths); 6495Tensor<T> output = Tensor.Create<T>(x.Lengths); 6550output = Tensor.Create<T>(x.Lengths); 6554output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6617Tensor<T> output = Tensor.Create<T>(x.Lengths); 6638Tensor<T> output = Tensor.Create<T>(x.Lengths); 6659Tensor<T> output = Tensor.Create<T>(x.Lengths); 6680Tensor<T> output = Tensor.Create<T>(x.Lengths); 6701Tensor<T> output = Tensor.Create<T>(x.Lengths); 6726output = Tensor.Create<T>(x.Lengths); 6730output = Tensor.Create<T>(GetSmallestBroadcastableLengths(x.Lengths, y.Lengths)); 6755Tensor<T> output = Tensor.Create<T>(x.Lengths); 6849nint[] newLengths = Tensor.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths); 7022nint[] newSize = Tensor.GetSmallestBroadcastableLengths(left.Lengths, right.Lengths); 7043ReadOnlyTensorSpan<T> broadcastedLeft = Tensor.LazyBroadcast(left, newSize); 7044ReadOnlyTensorSpan<T> broadcastedRight = Tensor.LazyBroadcast(right, newSize);
System\Numerics\Tensors\netcore\TensorSpan.cs (4)
573nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 576ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths); 627nint[] tempLengths = Tensor.GetSmallestBroadcastableLengths(Lengths, destination.Lengths); 630ReadOnlyTensorSpan<T> srcSlice = Tensor.LazyBroadcast(this, tempLengths);