diff --git a/ge/graph/optimize/common/params.h b/ge/graph/optimize/common/params.h deleted file mode 100644 index d5b66b8f..00000000 --- a/ge/graph/optimize/common/params.h +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Copyright 2020 Huawei Technologies Co., Ltd - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef GE_GRAPH_OPTIMIZE_COMMON_PARAMS_H_ -#define GE_GRAPH_OPTIMIZE_COMMON_PARAMS_H_ - -#include - -#include "common/singleton.h" -#include "common/types.h" - -namespace ge { -class Params : public Singleton { - public: - DECLARE_SINGLETON_CLASS(Params); - - void SetTarget(const char* target) { - std::string tmp_target = (target != nullptr) ? target : ""; - -#if defined(__ANDROID__) || defined(ANDROID) - target_ = "LITE"; - target_8bit_ = TARGET_TYPE_LTTE_8BIT; -#else - target_ = "MINI"; - target_8bit_ = TARGET_TYPE_MINI_8BIT; -#endif - if (tmp_target == "mini") { - target_ = "MINI"; - target_8bit_ = TARGET_TYPE_MINI_8BIT; - } else if (tmp_target == "lite") { - target_ = "LITE"; - target_8bit_ = TARGET_TYPE_LTTE_8BIT; - } - } - - string GetTarget() const { return target_; } - - uint8_t GetTarget_8bit() const { return target_8bit_; } - ~Params() override = default; - - private: - Params() : target_("MINI") {} - - string target_; - uint8_t target_8bit_ = TARGET_TYPE_MINI_8BIT; -}; -} // namespace ge - -#endif // GE_GRAPH_OPTIMIZE_COMMON_PARAMS_H_ diff --git a/ge/offline/main.cc b/ge/offline/main.cc index 368b5738..296f84ec 100755 --- a/ge/offline/main.cc +++ b/ge/offline/main.cc @@ -1133,7 +1133,6 @@ domi::Status GenerateOmModel() { GE_CHK_BOOL_EXEC(ret == domi::SUCCESS, return domi::FAILED, "[Check][Flags] failed! Please check whether some atc params that include semicolons[;] use double " "quotation marks (\") to enclose each argument such as out_nodes, input_shape, dynamic_image_size"); - // Load custom operator Library LoadCustomOpLib(true);