|
- /**
- * Copyright 2019 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.
- */
-
- #include "pybind_api/export_flags.h"
- namespace mindspore {
-
- const char PYTHON_PRIMITIVE_FLAG[] = "__primitive_flag__";
- const char PYTHON_METAFUNCGRAPH_FLAG[] = "__metafuncgraph_flag__";
- const char PYTHON_TENSOR_FLAG[] = "__tensor_flag__";
- const char PYTHON_META_TENSOR_FLAG[] = "__meta_tensor_flag__";
- const char PYTHON_ENVINSTANCE_FLAG[] = "__envinstance_flag__";
- const char PYTHON_DTYPE_FLAG[] = "__dtype_flag__";
- const char PYTHON_CELL_AS_LIST[] = "__cell_as_list__";
- const char PYTHON_DATACLASS_FIELDS[] = "__dataclass_fields__";
-
- // flag names
- const char GRAPH_FLAG_MIX_PRECISION_FP16[] = "fp16";
- const char GRAPH_FLAG_MIX_PRECISION_FP32[] = "fp32";
- const char GRAPH_FLAG_LOOP_CAN_UNROLL[] = "loop_can_unroll";
- const char GRAPH_FLAG_HAS_EFFECT[] = "has_effect";
- const char GRAPH_FLAG_EFFECT_PATIAL_ORDER[] = "_effect_patial_order";
- const char GRAPH_FLAG_RANDOM_EFFECT[] = "_random_effect";
-
- } // namespace mindspore
|