共用方式為


TensorDouble.CreateFromShapeArrayAndDataArray(Int64[], Double[]) 方法

定義

建立 64 位浮點數張量物件、配置大小圖形的緩衝區,並將所有資料複製到其中。

public:
 static TensorDouble ^ CreateFromShapeArrayAndDataArray(Platform::Array <long long> ^ shape, Platform::Array <double> ^ data);
 static TensorDouble CreateFromShapeArrayAndDataArray(winrt::array_view <long> const& shape, winrt::array_view <double> const& data);
public static TensorDouble CreateFromShapeArrayAndDataArray(long[] shape, double[] data);
function createFromShapeArrayAndDataArray(shape, data)
Public Shared Function CreateFromShapeArrayAndDataArray (shape As Long(), data As Double()) As TensorDouble

參數

shape

Int64[]

long long[]

long[]

緩衝區的大小。

data

Double[]

double[]

要複製到緩衝區的資料。

傳回

具有包含指定資料的緩衝區的 64 位浮點數物件。

Windows 需求

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

適用於