IWinMLRuntime::LoadModel method (winml.h)

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

Loads a WinML model.

Syntax

HRESULT LoadModel(
  [in]  LPCWSTR     Path,
  [out] IWinMLModel **ppModel
);

Parameters

[in] Path

Path name for the model.

[out] ppModel

A double pointer to an IWinMLModel describing a WinML model.

Return value

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

Requirements

Requirement Value
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

IWinMLRuntime