You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

flags.h 1.8 kB

5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Copyright 2020 Huawei Technologies Co., Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef MINDSPORE_CORE_UTILS_FLAGS_H
  17. #define MINDSPORE_CORE_UTILS_FLAGS_H
  18. namespace mindspore {
  19. extern const char GRAPH_FLAG_MIX_PRECISION_FP16[];
  20. extern const char GRAPH_FLAG_MIX_PRECISION_FP32[];
  21. extern const char GRAPH_FLAG_HAS_EFFECT[];
  22. extern const char GRAPH_FLAG_EFFECT_PATIAL_ORDER[];
  23. extern const char GRAPH_FLAG_CACHE_ENABLE[];
  24. extern const char GRAPH_FLAG_RANDOM_EFFECT[];
  25. extern const char GRAPH_FLAG_SIDE_EFFECT[];
  26. extern const char GRAPH_FLAG_SIDE_EFFECT_IO[];
  27. extern const char GRAPH_FLAG_SIDE_EFFECT_MEM[];
  28. extern const char GRAPH_FLAG_SIDE_EFFECT_EXCEPTION[];
  29. extern const char GRAPH_FLAG_SIDE_EFFECT_PROPAGATE[];
  30. extern const char GRAPH_FLAG_SIDE_EFFECT_BACKPROP[];
  31. extern const char PY_PRIM_METHOD_INFER[];
  32. extern const char PY_PRIM_METHOD_CHECK[];
  33. extern const char PY_PRIM_METHOD_INFER_VALUE[];
  34. extern const char ATTR_VALUE[];
  35. extern const char ATTR_DTYPE[];
  36. extern const char ATTR_SHAPE[];
  37. extern const char ATTR_MIN_SHAPE[];
  38. extern const char ATTR_MAX_SHAPE[];
  39. extern const char ATTR_MIN_VALUE[];
  40. extern const char ATTR_MAX_VALUE[];
  41. extern const char ATTR_NO_BROADEN[];
  42. } // namespace mindspore
  43. #endif // MINDSPORE_CORE_UTILS_FLAGS_H