Tensor.TryBroadcastTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>) |
Broadcast the data from |
TryBroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Broadcast the data from |
TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>) |
Broadcast the data from |
TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Broadcast the data from tensor
to the smallest broadcastable shape compatible with destination
and stores it in destination
If the shapes are not compatible, false is returned.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryBroadcastTo(System::Numerics::Tensors::TensorSpan<T> % tensor, System::Numerics::Tensors::TensorSpan<T> % destination);
public static bool TryBroadcastTo<T> (this in System.Numerics.Tensors.TensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination);
static member TryBroadcastTo : TensorSpan * TensorSpan -> bool
<Extension()>
Public Function TryBroadcastTo(Of T) (ByRef tensor As TensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As Boolean
Type Parameters
- T
Parameters
- tensor
- TensorSpan<T>
Input TensorSpan<T>.
- destination
- TensorSpan<T>
Destination TensorSpan<T>.
Returns
false
if the shapes are not compatible, otherwise, true
.
Applies to
TryBroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Broadcast the data from tensor
to the smallest broadcastable shape compatible with destination
and stores it in destination
If the shapes are not compatible, false is returned.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryBroadcastTo(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % tensor, System::Numerics::Tensors::TensorSpan<T> % destination);
public static bool TryBroadcastTo<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination);
static member TryBroadcastTo : ReadOnlyTensorSpan * TensorSpan -> bool
<Extension()>
Public Function TryBroadcastTo(Of T) (ByRef tensor As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As Boolean
Type Parameters
- T
Parameters
- tensor
- ReadOnlyTensorSpan<T>
Input ReadOnlyTensorSpan<T>.
- destination
- TensorSpan<T>
Destination TensorSpan<T>.
Returns
false
if the shapes are not compatible, otherwise, true
.
Applies to
TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Broadcast the data from tensor
to the smallest broadcastable shape compatible with destination
and stores it in destination
If the shapes are not compatible, false is returned.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryBroadcastTo(System::Numerics::Tensors::Tensor<T> ^ tensor, System::Numerics::Tensors::TensorSpan<T> % destination);
public static bool TryBroadcastTo<T> (this System.Numerics.Tensors.Tensor<T> tensor, in System.Numerics.Tensors.TensorSpan<T> destination);
static member TryBroadcastTo : System.Numerics.Tensors.Tensor<'T> * TensorSpan -> bool
<Extension()>
Public Function TryBroadcastTo(Of T) (tensor As Tensor(Of T), ByRef destination As TensorSpan(Of T)) As Boolean
Type Parameters
- T
Parameters
- destination
- TensorSpan<T>
Destination TensorSpan<T>.
Returns
false
if the shapes are not compatible, otherwise, true
.