共用方式為


Tensor.TryBroadcastTo 方法

定義

多載

TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)

將數據從 tensor 廣播到與 destination 相容的最小可廣播圖形,並將其儲存在 destination 如果圖形不相容,則會傳回 false。

TryBroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

將數據從 tensor 廣播到與 destination 相容的最小可廣播圖形,並將其儲存在 destination 如果圖形不相容,則會傳回 false。

TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>)

將數據從 tensor 廣播到與 destination 相容的最小可廣播圖形,並將其儲存在 destination 如果圖形不相容,則會傳回 false。

TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

將數據從 tensor 廣播到與 destination 相容的最小可廣播圖形,並將其儲存在 destination 如果圖形不相容,則會傳回 false。

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

類型參數

T

參數

tensor
TensorSpan<T>

輸入 TensorSpan<T>

destination
TensorSpan<T>

目的地 TensorSpan<T>

傳回

如果圖形不相容,false,否則 true

適用於

TryBroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

將數據從 tensor 廣播到與 destination 相容的最小可廣播圖形,並將其儲存在 destination 如果圖形不相容,則會傳回 false。

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

類型參數

T

參數

destination
TensorSpan<T>

目的地 TensorSpan<T>

傳回

如果圖形不相容,false,否則 true

適用於

TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>)

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

將數據從 tensor 廣播到與 destination 相容的最小可廣播圖形,並將其儲存在 destination 如果圖形不相容,則會傳回 false。

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

類型參數

T

參數

tensor
Tensor<T>

輸入 Tensor<T>

destination
TensorSpan<T>

目的地 TensorSpan<T>

傳回

如果圖形不相容,false,否則 true

適用於