語言

Tensor.TryBroadcastTo 方法

定義

多載

名稱 Description
TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>)

將資料從 廣播 tensor 到最小的可廣播形狀,相容於 並 destination 儲存在 destination 若形狀不相容,則回傳 false。

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.cs
來源:
TensorExtensions.cs
來源:
Tensor.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。

適用於

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

來源:
Tensor.cs
來源:
TensorExtensions.cs
來源:
Tensor.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>)

來源:
Tensor.cs
來源:
TensorExtensions.cs
來源:
Tensor.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。

適用於