Method CreateFromFile
CreateFromFile(string, bool)
Creates a ModelCard instance by inspecting the specified file, without adopting a predefined catalog entry even when the file's origin sidecar points at one. The card answers for THE FILE (a settable identity, per-file capabilities and license), which is what an import pipeline needs: the adopting overload freezes the identity to the catalog's.
public static ModelCard CreateFromFile(string path, bool checkPredefinedCards)
Parameters
pathstringThe absolute path to the model file.
checkPredefinedCardsboolWhen true, a file downloaded from a catalog URI adopts that catalog entry (the historical behavior); when false, the file is always inspected as itself.
Returns
CreateFromFile(string)
Creates a ModelCard instance by loading metadata from the specified file path.
public static ModelCard CreateFromFile(string path)
Parameters
pathstringThe absolute path to the model file.