TensorBoolean クラス

定義

ブール型のテンソル オブジェクト。

public ref class TensorBoolean sealed : ITensor
public ref class TensorBoolean sealed : ITensor, IClosable, IMemoryBuffer
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorBoolean final : ITensor
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorBoolean final : ITensor, IClosable, IMemoryBuffer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorBoolean : ITensor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorBoolean : System.IDisposable, ITensor, IMemoryBuffer
Public NotInheritable Class TensorBoolean
Implements ITensor
Public NotInheritable Class TensorBoolean
Implements IDisposable, IMemoryBuffer, ITensor
継承
Object Platform::Object IInspectable TensorBoolean
属性
実装

Windows の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.AI.MachineLearning.MachineLearningContract (v1.0 で導入)

注釈

テンソルは、値の多次元配列です。 ブール型のテンソルは、ブール値のテンソルです。

テンソルのレイアウトは行メジャーであり、各ディメンションを表す連続したデータが密に詰め込まれています。 テンソルの合計サイズは、各ディメンションのサイズの積です。

Windows Server

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

スレッド セーフ

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

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1903 18362 CreateFromBuffer
1903 18362 CreateFromShapeArrayAndDataArray

プロパティ

Kind

機能の種類。

Shape

各ディメンションの数とサイズを返します。

TensorKind

テンソルのデータ型を返します。

メソッド

Close()

このオブジェクトから作成された未処理 の IMemoryBufferReference オブジェクトがない場合、 Close はオブジェクトを破棄し、関連付けられているリソースを破棄します。 それ以外の場合、 Close は関連付けられているリソースからそれ自体をデタッチし、最後の IMemoryBufferReference が閉じられたときに破棄されます。

Create()

バッファーを割り当てずにブール型テンソル オブジェクトを作成します。

Create(IIterable<Int64>)

ブール型テンソル オブジェクトを作成し、サイズ 図形のバッファーを割り当てます。

CreateFromArray(IIterable<Int64>, Boolean[])

ブール型テンソル オブジェクトを作成し、サイズ 図形のバッファーを割り当て、すべての データ をコピーします。

CreateFromBuffer(Int64[], IBuffer)

指定された 図形 を持つブール型テンソル オブジェクトを作成し、その後の評価のために基になるバッファーを データ で使用します。

CreateFromIterable(IIterable<Int64>, IIterable<Boolean>)

ブール型テンソル オブジェクトを作成し、サイズ 図形のバッファーを割り当て、すべての データ をコピーします。

CreateFromShapeArrayAndDataArray(Int64[], Boolean[])

ブール型テンソル オブジェクトを作成し、サイズ 図形のバッファーを割り当て、すべての データ をコピーします。

CreateReference()

ブール型のテンソル オブジェクトをバッキングするバッファーの IMemoryBufferReference 表現を返します。

Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

GetAsVectorView()

データの読み取り専用ビューを返します。

適用対象

こちらもご覧ください