次の方法で共有


TensorUInt16Bit.CreateFromArray(IIterable<Int64>, UInt16[]) メソッド

定義

16 ビット符号なし整数テンソル オブジェクトを作成し、サイズ図形のバッファーを割り当てて、その オブジェクトにすべての データ をコピーします。

public:
 static TensorUInt16Bit ^ CreateFromArray(IIterable<long long> ^ shape, Platform::Array <unsigned short> ^ data);
 static TensorUInt16Bit CreateFromArray(IIterable<long> const& shape, winrt::array_view <uint16_t> const& data);
public static TensorUInt16Bit CreateFromArray(IEnumerable<long> shape, ushort[] data);
function createFromArray(shape, data)
Public Shared Function CreateFromArray (shape As IEnumerable(Of Long), data As UShort()) As TensorUInt16Bit

パラメーター

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

バッファーのサイズ。

data

UInt16[]

unsigned short[]

uint16_t[]

バッファーにコピーするデータ。

戻り値

指定されたデータを含むバッファーを持つ 16 ビット符号なし整数テンソル オブジェクト。

注釈

Windows Server

Windows Server でこの API を使用するには、Windows Server 2019 デスクトップ エクスペリエンスを使用する必要があります。

スレッド セーフ

この API はスレッド セーフです。

適用対象