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>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
Broadcasts the data from |
TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>) |
Broadcasts the data from |
TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>) |
Broadcasts the data from |
TryBroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Broadcasts the data from tensor
to the smallest broadcastable shape compatible with destination
and stores it in destination
.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryBroadcastTo(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, System::Numerics::Tensors::TensorSpan<T> % destination);
public static bool TryBroadcastTo<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination);
static member TryBroadcastTo : ReadOnlyTensorSpan * TensorSpan -> bool
<Extension()>
Public Function TryBroadcastTo(Of T) (ByRef input As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As Boolean
Type Parameters
- T
Parameters
- 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
Broadcasts the data from tensor
to the smallest broadcastable shape compatible with destination
and stores it in destination
.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryBroadcastTo(System::Numerics::Tensors::Tensor<T> ^ input, System::Numerics::Tensors::TensorSpan<T> % destination);
public static bool TryBroadcastTo<T> (this System.Numerics.Tensors.Tensor<T> input, in System.Numerics.Tensors.TensorSpan<T> destination);
static member TryBroadcastTo : System.Numerics.Tensors.Tensor<'T> * TensorSpan -> bool
<Extension()>
Public Function TryBroadcastTo(Of T) (input As Tensor(Of T), ByRef destination As TensorSpan(Of T)) As Boolean
Type Parameters
- T
Parameters
- input
- Tensor<T>
- destination
- TensorSpan<T>
Destination TensorSpan<T>.
Returns
false
if the shapes are not compatible, otherwise, true
.
Applies to
TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
Broadcasts the data from tensor
to the smallest broadcastable shape compatible with destination
and stores it in destination
.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool TryBroadcastTo(System::Numerics::Tensors::TensorSpan<T> % input, System::Numerics::Tensors::TensorSpan<T> % destination);
public static bool TryBroadcastTo<T> (this in System.Numerics.Tensors.TensorSpan<T> input, in System.Numerics.Tensors.TensorSpan<T> destination);
static member TryBroadcastTo : TensorSpan * TensorSpan -> bool
<Extension()>
Public Function TryBroadcastTo(Of T) (ByRef input As TensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As Boolean
Type Parameters
- T
Parameters
- input
- TensorSpan<T>
- destination
- TensorSpan<T>
Destination TensorSpan<T>.
Returns
false
if the shapes are not compatible, otherwise, true
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for