LearningModel.LoadFromFilePath Méthode

Définition

Surcharges

LoadFromFilePath(String)

Charge un modèle ONNX à partir d’un fichier sur disque.

LoadFromFilePath(String, ILearningModelOperatorProvider)

Charge un modèle ONNX à partir d’un fichier sur disque.

LoadFromFilePath(String)

Charge un modèle ONNX à partir d’un fichier sur disque.

public:
 static LearningModel ^ LoadFromFilePath(Platform::String ^ filePath);
/// [Windows.Foundation.Metadata.Overload("LoadFromFilePath")]
 static LearningModel LoadFromFilePath(winrt::hstring const& filePath);
[Windows.Foundation.Metadata.Overload("LoadFromFilePath")]
public static LearningModel LoadFromFilePath(string filePath);
function loadFromFilePath(filePath)
Public Shared Function LoadFromFilePath (filePath As String) As LearningModel

Paramètres

filePath
String

Platform::String

winrt::hstring

Chemin d’accès au fichier de modèle ONNX sur le disque.

Retours

Objet représentant le modèle.

Attributs

Remarques

Cette méthode est destinée aux applications de bureau (non-UWP). Pour UWP, consultez LoadFromStorageFileAsync.

Windows Server

Pour utiliser cette API sur Windows Server, vous devez utiliser Windows Server 2019 avec Expérience utilisateur.

Sécurité des threads

Cette API est thread-safe.

S’applique à

LoadFromFilePath(String, ILearningModelOperatorProvider)

Charge un modèle ONNX à partir d’un fichier sur disque.

public:
 static LearningModel ^ LoadFromFilePath(Platform::String ^ filePath, ILearningModelOperatorProvider ^ operatorProvider);
/// [Windows.Foundation.Metadata.Overload("LoadFromFilePathWithOperatorProvider")]
 static LearningModel LoadFromFilePath(winrt::hstring const& filePath, ILearningModelOperatorProvider const& operatorProvider);
[Windows.Foundation.Metadata.Overload("LoadFromFilePathWithOperatorProvider")]
public static LearningModel LoadFromFilePath(string filePath, ILearningModelOperatorProvider operatorProvider);
function loadFromFilePath(filePath, operatorProvider)
Public Shared Function LoadFromFilePath (filePath As String, operatorProvider As ILearningModelOperatorProvider) As LearningModel

Paramètres

filePath
String

Platform::String

winrt::hstring

Chemin d’accès au fichier de modèle ONNX sur le disque.

Retours

Objet représentant le modèle.

Attributs

Remarques

Cette méthode est destinée aux applications de bureau (non-UWP). Pour UWP, consultez LoadFromStorageFileAsync.

Windows Server

Pour utiliser cette API sur Windows Server, vous devez utiliser Windows Server 2019 avec Expérience utilisateur.

Sécurité des threads

Cette API est thread-safe.

S’applique à