diff --git a/frameworks/native/neural_network_core/compiler.h b/frameworks/native/neural_network_core/compiler.h index bb221a9b5fdbb45505b61980e6a375c8694e7c74..7bbed9ea9bbb81a5e6238718133801b7b1667abc 100644 --- a/frameworks/native/neural_network_core/compiler.h +++ b/frameworks/native/neural_network_core/compiler.h @@ -46,10 +46,7 @@ public: virtual OH_NN_ReturnCode SetExtensionConfig(const std::unordered_map>& configs) = 0; virtual OH_NN_ReturnCode SetOptions(const std::vector>& options) = 0; - virtual OH_NN_ReturnCode GetModelName(std::string& modelName) - { - return OH_NN_UNSUPPORTED; - } + virtual OH_NN_ReturnCode GetModelName(std::string& modelName) = 0; }; } // namespace NeuralNetworkRuntime } // namespace OHOS