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.

tensorflow_parser.h 1.5 kB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * Copyright 2019-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 INC_EXTERNAL_ACL_PARSER_TENSORFLOW_H_
  17. #define INC_EXTERNAL_ACL_PARSER_TENSORFLOW_H_
  18. #if defined(_MSC_VER)
  19. #ifdef FUNC_VISIBILITY
  20. #define PARSER_FUNC_VISIBILITY _declspec(dllexport)
  21. #else
  22. #define PARSER_FUNC_VISIBILITY
  23. #endif
  24. #else
  25. #ifdef FUNC_VISIBILITY
  26. #define PARSER_FUNC_VISIBILITY __attribute__((visibility("default")))
  27. #else
  28. #define PARSER_FUNC_VISIBILITY
  29. #endif
  30. #endif
  31. #include <atomic>
  32. #include <memory>
  33. #include <string>
  34. #include <vector>
  35. #include "graph/ascend_string.h"
  36. #include "graph/ge_error_codes.h"
  37. #include "graph/graph.h"
  38. namespace ge {
  39. PARSER_FUNC_VISIBILITY graphStatus aclgrphParseTensorFlow(const char *model_file, ge::Graph &graph);
  40. PARSER_FUNC_VISIBILITY graphStatus aclgrphParseTensorFlow(const char *model_file,
  41. const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);
  42. } // namespace ge
  43. #endif // INC_EXTERNAL_ACL_PARSER_TENSORFLOW_H_