語言

TensorUInt64Bit.CreateFromBuffer(Int64[], IBuffer) 方法

定義

使用指定的 圖形 建立 64 位無符號整數張量物件,並使用 緩衝區中的基礎緩衝區 進行後續評估。

public:
 static TensorUInt64Bit ^ CreateFromBuffer(Platform::Array <long long> ^ shape, IBuffer ^ buffer);
 static TensorUInt64Bit CreateFromBuffer(winrt::array_view <long> const& shape, IBuffer const& buffer);
public static TensorUInt64Bit CreateFromBuffer(long[] shape, IBuffer buffer);
function createFromBuffer(shape, buffer)
Public Shared Function CreateFromBuffer (shape As Long(), buffer As IBuffer) As TensorUInt64Bit

參數

shape

Int64[]

long long[]

long[]

緩衝區的大小。

buffer
IBuffer

評估期間要使用的緩衝區。

傳回

64 位無符號整數張量物件,由所提供之 IBuffer緩衝區參考所支援的緩衝區參考。

Windows 需求

規格需求 Description
裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.AI.MachineLearning.MachineLearningContract (已於 v2.0 引進)

備註

此物件建立期間不會執行任何複本,而且引擎會直接使用 緩衝區中的基礎緩衝區。

在非 CPU 裝置上執行時,會將複本複製到視訊記憶體。

適用於