TensorUInt32Bit.CreateFromShapeArrayAndDataArray(Int64[], UInt32[]) 方法

定义

创建一个 32 位无符号整数张量对象,分配大小 形状的缓冲区,并将 所有数据 复制到其中。

public:
 static TensorUInt32Bit ^ CreateFromShapeArrayAndDataArray(Platform::Array <long long> ^ shape, Platform::Array <unsigned int> ^ data);
 static TensorUInt32Bit CreateFromShapeArrayAndDataArray(winrt::array_view <long> const& shape, winrt::array_view <uint32_t> const& data);
public static TensorUInt32Bit CreateFromShapeArrayAndDataArray(long[] shape, uint[] data);
function createFromShapeArrayAndDataArray(shape, data)
Public Shared Function CreateFromShapeArrayAndDataArray (shape As Long(), data As UInteger()) As TensorUInt32Bit

参数

shape

Int64[]

long long[]

long[]

缓冲区的大小。

data

UInt32[]

unsigned int[]

uint32_t[]

要复制到缓冲区中的数据。

返回

具有包含给定数据的缓冲区的 32 位无符号整数张量对象。

Windows 要求

设备系列
Windows 10, version 1903 (在 10.0.18362.0 中引入)
API contract
Windows.AI.MachineLearning.MachineLearningContract (在 v2.0 中引入)

适用于