Tensor.BroadcastTo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
BroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>) |
将数据从 |
BroadcastTo<T>(Tensor<T>, TensorSpan<T>) |
将数据从 |
BroadcastTo<T>(TensorSpan<T>, TensorSpan<T>) |
将数据从 |
BroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
将数据从 source
广播到 destination
。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void BroadcastTo(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % source, System::Numerics::Tensors::TensorSpan<T> % destination);
public static void BroadcastTo<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> source, in System.Numerics.Tensors.TensorSpan<T> destination);
static member BroadcastTo : ReadOnlyTensorSpan * TensorSpan -> unit
<Extension()>
Public Sub BroadcastTo(Of T) (ByRef source As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T))
类型参数
- T
参数
- source
- ReadOnlyTensorSpan<T>
输入 TensorSpan<T>。
- destination
- TensorSpan<T>
适用于
BroadcastTo<T>(Tensor<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
将数据从 source
广播到 destination
。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void BroadcastTo(System::Numerics::Tensors::Tensor<T> ^ source, System::Numerics::Tensors::TensorSpan<T> % destination);
public static void BroadcastTo<T> (this System.Numerics.Tensors.Tensor<T> source, in System.Numerics.Tensors.TensorSpan<T> destination);
static member BroadcastTo : System.Numerics.Tensors.Tensor<'T> * TensorSpan -> unit
<Extension()>
Public Sub BroadcastTo(Of T) (source As Tensor(Of T), ByRef destination As TensorSpan(Of T))
类型参数
- T
参数
- source
- Tensor<T>
输入 TensorSpan<T>。
- destination
- TensorSpan<T>
适用于
BroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)
- Source:
- TensorExtensions.cs
- Source:
- TensorExtensions.cs
将数据从 source
广播到 destination
。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void BroadcastTo(System::Numerics::Tensors::TensorSpan<T> % source, System::Numerics::Tensors::TensorSpan<T> % destination);
public static void BroadcastTo<T> (this in System.Numerics.Tensors.TensorSpan<T> source, in System.Numerics.Tensors.TensorSpan<T> destination);
static member BroadcastTo : TensorSpan * TensorSpan -> unit
<Extension()>
Public Sub BroadcastTo(Of T) (ByRef source As TensorSpan(Of T), ByRef destination As TensorSpan(Of T))
类型参数
- T
参数
- source
- TensorSpan<T>
输入 TensorSpan<T>。
- destination
- TensorSpan<T>
其他 TensorSpan<T> 使形状可广播。