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.

dump_task.proto 2.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. syntax = "proto3";
  2. package toolkit.dumpdata;
  3. enum OutputDataType {
  4. DT_UNDEFINED = 0;
  5. DT_FLOAT = 1;
  6. DT_FLOAT16 = 2;
  7. DT_INT8 = 3;
  8. DT_UINT8 = 4;
  9. DT_INT16 = 5;
  10. DT_UINT16 = 6;
  11. DT_INT32 = 7;
  12. DT_INT64 = 8;
  13. DT_UINT32 = 9;
  14. DT_UINT64 = 10;
  15. DT_BOOL = 11;
  16. DT_DOUBLE = 12;
  17. DT_STRING = 13;
  18. DT_DUAL_SUB_INT8 = 14;
  19. DT_DUAL_SUB_UINT8 = 15;
  20. DT_COMPLEX64 = 16;
  21. DT_COMPLEX128 = 17;
  22. DT_QINT8 = 18;
  23. DT_QINT16 = 19;
  24. DT_QINT32 = 20;
  25. DT_QUINT8 = 21;
  26. DT_QUINT16 = 22;
  27. DT_RESOURCE = 23;
  28. DT_STRING_REF = 24;
  29. DT_DUAL = 25;
  30. }
  31. enum OutputFormat {
  32. FORMAT_NCHW = 0;
  33. FORMAT_NHWC = 1;
  34. FORMAT_ND = 2;
  35. FORMAT_NC1HWC0 = 3;
  36. FORMAT_FRACTAL_Z = 4;
  37. FORMAT_NC1C0HWPAD = 5;
  38. FORMAT_NHWC1C0 = 6;
  39. FORMAT_FSR_NCHW = 7;
  40. FORMAT_FRACTAL_DECONV = 8;
  41. FORMAT_C1HWNC0 = 9;
  42. FORMAT_FRACTAL_DECONV_TRANSPOSE = 10;
  43. FORMAT_FRACTAL_DECONV_SP_STRIDE_TRANS = 11;
  44. FORMAT_NC1HWC0_C04 = 12;
  45. FORMAT_FRACTAL_Z_C04 = 13;
  46. FORMAT_CHWN = 14;
  47. FORMAT_FRACTAL_DECONV_SP_STRIDE8_TRANS = 15;
  48. FORMAT_HWCN = 16;
  49. FORMAT_NC1KHKWHWC0 = 17;
  50. FORMAT_BN_WEIGHT = 18;
  51. FORMAT_FILTER_HWCK = 19;
  52. FORMAT_HASHTABLE_LOOKUP_LOOKUPS=20;
  53. FORMAT_HASHTABLE_LOOKUP_KEYS = 21;
  54. FORMAT_HASHTABLE_LOOKUP_VALUE = 22;
  55. FORMAT_HASHTABLE_LOOKUP_OUTPUT = 23;
  56. FORMAT_HASHTABLE_LOOKUP_HITS=24;
  57. FORMAT_C1HWNCoC0 = 25;
  58. FORMAT_MD = 26;
  59. FORMAT_NDHWC = 27;
  60. FORMAT_FRACTAL_ZZ = 28;
  61. FORMAT_FRACTAL_NZ = 29;
  62. FORMAT_RESERVED = 30;
  63. }
  64. message OriginalOp {
  65. string name = 1;
  66. uint32 output_index = 2;
  67. OutputDataType data_type = 3;
  68. OutputFormat format = 4;
  69. }
  70. message Shape {
  71. repeated uint64 dim = 1;
  72. }
  73. message OpOutput {
  74. OutputDataType data_type = 1;
  75. OutputFormat format = 2;
  76. Shape shape = 3;
  77. OriginalOp original_op = 4; // the original op corresponding to the output
  78. bytes data = 5;
  79. uint64 size = 6;
  80. }
  81. message OpInput {
  82. OutputDataType data_type = 1;
  83. OutputFormat format = 2;
  84. Shape shape = 3;
  85. bytes data = 4;
  86. uint64 size = 5;
  87. }
  88. enum BufferType {
  89. L1 = 0;
  90. }
  91. message OpBuffer {
  92. BufferType buffer_type = 1;
  93. bytes data = 2;
  94. uint64 size = 3;
  95. }
  96. message DumpData{
  97. string version = 1;
  98. uint64 dump_time = 2;
  99. repeated OpOutput output = 3;
  100. repeated OpInput input = 4;
  101. repeated OpBuffer buffer = 5;
  102. string op_name = 6;
  103. }

图引擎模块(GE)是MindSpore的一个子模块,其代码由C++实现,位于前端模块ME和底层硬件之间,起到承接作用。图引擎模块以ME下发的图作为输入,然后进行一系列的深度图优化操作,最后输出一张可以在底层硬件上高效运行的图。GE针对昇腾AI处理器的硬件结构特点,做了特定的优化工作,以此来充分发挥出昇腾AI处理器的强大算力。在进行模型训练/推理时,GE会被自动调用而用户并不感知。GE主要由GE API和GE Core两部分组成,详细的架构图如下所示