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.

format.h 1.2 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * This is the C++ adaptation and derivative work of Myia (https://github.com/mila-iqia/myia/).
  3. *
  4. * Copyright 2021 Huawei Technologies Co., Ltd
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. #ifndef MINDSPORE_INCLUDE_API_FORMAT_H
  19. #define MINDSPORE_INCLUDE_API_FORMAT_H
  20. #include <cstdint>
  21. namespace mindspore {
  22. enum Format : int64_t {
  23. NCHW = 0,
  24. NHWC = 1,
  25. NHWC4 = 2,
  26. HWKC = 3,
  27. HWCK = 4,
  28. KCHW = 5,
  29. CKHW = 6,
  30. KHWC = 7,
  31. CHWK = 8,
  32. HW = 9,
  33. HW4 = 10,
  34. NC = 11,
  35. NC4 = 12,
  36. NC4HW4 = 13,
  37. NUM_OF_FORMAT = 14,
  38. NCDHW = 15,
  39. NWC = 16,
  40. NCW = 17
  41. };
  42. } // namespace mindspore
  43. #endif // MINDSPORE_INCLUDE_API_FORMAT_H