IWinMLRuntimeFactory::CreateRuntime method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

These APIs have been deprecated and should no longer be used:  Please use Windows.AI.MachineLearning instead.

Creates a WinML runtime.

Syntax

HRESULT CreateRuntime(
  WINML_RUNTIME_TYPE RuntimeType,
  IWinMLRuntime      **ppRuntime
);

Parameters

RuntimeType

A WINML_RUNTIME_TYPE that decribes the type of WinML runtime.

ppRuntime

A pointer to the created IWinMLRuntime.

Return Value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows 10, version 1803 [desktop apps only]
Minimum supported server Windows Server [desktop apps only]
Target Platform Windows
Header winml.h
Library Winml.lib
DLL Winml.dll

See Also

IWinMLRuntimeFactory