ホーム › AI.MachineLearning.WinML › IMLOperatorKernelCreationContext
IMLOperatorKernelCreationContext
COMメソッド 9
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 7 DWORD GetInputCount()
vtbl 8 DWORD GetOutputCount()
| inputIndex | DWORD | in | 有効性を確認する入力の 0 起点インデックスである。 |
| outputIndex | DWORD | in | 有効性を確認する出力の 0 起点インデックスである。 |
vtbl 11 HRESULT GetInputEdgeDescription(DWORD inputIndex, MLOperatorEdgeDescription* edgeDescription)
| inputIndex | DWORD | in | 対象入力エッジの 0 起点インデックスである。 |
| edgeDescription | MLOperatorEdgeDescription* | out | 入力エッジの型情報 MLOperatorEdgeDescription を受け取る出力先である。 |
vtbl 12 HRESULT GetOutputEdgeDescription(DWORD outputIndex, MLOperatorEdgeDescription* edgeDescription)
| outputIndex | DWORD | in | 対象出力エッジの 0 起点インデックスである。 |
| edgeDescription | MLOperatorEdgeDescription* | out | 出力エッジの型情報 MLOperatorEdgeDescription を受け取る出力先である。 |
vtbl 13 BOOLEAN HasTensorShapeDescription()
vtbl 14 HRESULT GetTensorShapeDescription(IMLOperatorTensorShapeDescription** shapeDescription)
| shapeDescription | IMLOperatorTensorShapeDescription** | out | テンソル形状記述インターフェイスを受け取る出力ポインタである。 |
vtbl 15 void GetExecutionInterface(IUnknown** executionObject)
| executionObject | IUnknown** | out | 実行プロバイダー固有のオブジェクト(例: D3D12 デバイス)を受け取る出力ポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMLOperatorKernelCreationContext "{5459B53D-A0FC-4665-ADDD-70171EF7E631}" #usecom global IMLOperatorKernelCreationContext IID_IMLOperatorKernelCreationContext "{}" #comfunc global IMLOperatorKernelCreationContext_GetInputCount 7 #comfunc global IMLOperatorKernelCreationContext_GetOutputCount 8 #comfunc global IMLOperatorKernelCreationContext_IsInputValid 9 int #comfunc global IMLOperatorKernelCreationContext_IsOutputValid 10 int #comfunc global IMLOperatorKernelCreationContext_GetInputEdgeDescription 11 int,var #comfunc global IMLOperatorKernelCreationContext_GetOutputEdgeDescription 12 int,var #comfunc global IMLOperatorKernelCreationContext_HasTensorShapeDescription 13 #comfunc global IMLOperatorKernelCreationContext_GetTensorShapeDescription 14 sptr #comfunc global IMLOperatorKernelCreationContext_GetExecutionInterface 15 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IMLOperatorKernelCreationContext "{5459B53D-A0FC-4665-ADDD-70171EF7E631}" #usecom global IMLOperatorKernelCreationContext IID_IMLOperatorKernelCreationContext "{}" #comfunc global IMLOperatorKernelCreationContext_GetInputCount 7 #comfunc global IMLOperatorKernelCreationContext_GetOutputCount 8 #comfunc global IMLOperatorKernelCreationContext_IsInputValid 9 int #comfunc global IMLOperatorKernelCreationContext_IsOutputValid 10 int #comfunc global IMLOperatorKernelCreationContext_GetInputEdgeDescription 11 int,sptr #comfunc global IMLOperatorKernelCreationContext_GetOutputEdgeDescription 12 int,sptr #comfunc global IMLOperatorKernelCreationContext_HasTensorShapeDescription 13 #comfunc global IMLOperatorKernelCreationContext_GetTensorShapeDescription 14 sptr #comfunc global IMLOperatorKernelCreationContext_GetExecutionInterface 15 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。