Tensor.TryBroadcastTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>) |
將數據從 |
TryBroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
將數據從 |
TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>) |
將數據從 |
TryBroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)
將數據從 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
廣播到與 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
參數
- tensor
- ReadOnlyTensorSpan<T>
- destination
- TensorSpan<T>
目的地 TensorSpan<T>。
傳回
如果圖形不相容,false
,否則 true
。
適用於
TryBroadcastTo<T>(Tensor<T>, TensorSpan<T>)
將數據從 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
參數
- destination
- TensorSpan<T>
目的地 TensorSpan<T>。
傳回
如果圖形不相容,false
,否則 true
。