modelDescription(ofFunctionNamed:completionHandler:)
The model descripton for a specified function.
Declaration
func modelDescription(ofFunctionNamed functionName: String, completionHandler handler: @escaping @Sendable (MLModelDescription?, (any Error)?) -> Void)func modelDescription(of functionName: String) async throws -> MLModelDescriptionDiscussion
Use this method to get the description of the model such as the feature descriptions, the model author, and other metadata.
let modelAsset = try MLModelAsset(url: modelURL)
let modelDescription = try await modelAsset.modelDescription(of: "my_function")
print(modelDescription)