TensorFloat16Bit.Create 方法

定义

重载

Create()

在不分配缓冲区的情况下创建 16 位浮点张量对象。

Create(IIterable<Int64>)

创建 16 位浮点张量对象并分配大小 形状的缓冲区。

Create()

在不分配缓冲区的情况下创建 16 位浮点张量对象。

public:
 static TensorFloat16Bit ^ Create();
/// [Windows.Foundation.Metadata.Overload("Create")]
 static TensorFloat16Bit Create();
[Windows.Foundation.Metadata.Overload("Create")]
public static TensorFloat16Bit Create();
function create()
Public Shared Function Create () As TensorFloat16Bit

返回

16 位浮点张量对象。

属性

注解

Windows Server

若要在 Windows Server 上使用此 API,必须使用具有桌面体验的 Windows Server 2019。

线程安全

此 API 是线程安全的。

适用于

Create(IIterable<Int64>)

创建 16 位浮点张量对象并分配大小 形状的缓冲区。

public:
 static TensorFloat16Bit ^ Create(IIterable<long long> ^ shape);
/// [Windows.Foundation.Metadata.Overload("Create2")]
 static TensorFloat16Bit Create(IIterable<long> const& shape);
[Windows.Foundation.Metadata.Overload("Create2")]
public static TensorFloat16Bit Create(IEnumerable<long> shape);
function create(shape)
Public Shared Function Create (shape As IEnumerable(Of Long)) As TensorFloat16Bit

参数

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

缓冲区的大小。

返回

具有给定大小的缓冲区的 16 位浮点张量对象。

属性

注解

Windows Server

若要在 Windows Server 上使用此 API,必须使用具有桌面体验的 Windows Server 2019。

线程安全

此 API 是线程安全的。

适用于