From 87176028b72764510e39217e16ad6cff44990923 Mon Sep 17 00:00:00 2001 From: wxl Date: Thu, 10 Dec 2020 20:57:11 +0800 Subject: [PATCH] single op parser add check for json input --- ge/offline/single_op_parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/offline/single_op_parser.h b/ge/offline/single_op_parser.h index a728b5b9..71aa58bb 100644 --- a/ge/offline/single_op_parser.h +++ b/ge/offline/single_op_parser.h @@ -29,7 +29,7 @@ namespace ge { struct SingleOpTensorDesc { public: - bool GetValidFlag() { return is_valid_; } + bool GetValidFlag() const { return is_valid_; } void SetValidFlag(bool is_valid) { is_valid_ = is_valid; } public: std::string name;