dnn.proto 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. syntax = "proto3";
  2. package dnn;
  3. message Model {
  4. string name = 1;
  5. int32 version = 2;
  6. repeated int32 input_shape = 4;
  7. repeated string input_name = 7;
  8. repeated Node node = 10;
  9. repeated Parameter input = 12;
  10. repeated Parameter output = 13;
  11. double a014 = 14;
  12. }
  13. message Parameter {
  14. string name = 1;
  15. Shape shape = 2;
  16. }
  17. message Shape {
  18. int32 dim0 = 1;
  19. int32 dim1 = 2;
  20. int32 dim2 = 3;
  21. int32 dim3 = 4;
  22. }
  23. message Node {
  24. Layer layer = 1;
  25. repeated string input = 2;
  26. repeated string output = 3;
  27. }
  28. message Layer {
  29. string name = 1;
  30. string type = 2;
  31. int32 filters = 3;
  32. int32 a007 = 7; // pool
  33. int32 a008 = 8; // pool
  34. int32 groups = 9;
  35. int32 a010 = 10; // conv, pool
  36. int32 a011 = 11; // pool
  37. float slope = 14; // linear
  38. float intercept = 15; // linear
  39. repeated Tensor weight = 50;
  40. int32 operation = 72;
  41. int32 axis = 65; // concat
  42. int32 a077 = 77; // conv
  43. float scale = 79; // resize
  44. int32 pad_1 = 80; // pad
  45. int32 pad_2 = 81; // pad
  46. int32 pad_3 = 82; // pad
  47. int32 pad_4 = 83; // pad
  48. int32 pad_5 = 84; // pad
  49. int32 a085 = 85; // resize
  50. int32 a090 = 90; // pool
  51. bool is_quantized = 101;
  52. Buffer quantization = 104;
  53. int32 stride_w = 109;
  54. int32 stride_h = 110;
  55. int32 kernel_w = 111;
  56. int32 kernel_h = 112;
  57. int32 a115 = 115; // conv
  58. int32 a116 = 116; // [conv]
  59. }
  60. message Buffer {
  61. bytes data = 5;
  62. }
  63. message Tensor {
  64. int32 dim0 = 1;
  65. int32 dim1 = 2;
  66. int32 dim2 = 3;
  67. int32 dim3 = 4;
  68. bytes data = 5;
  69. bytes quantized_data = 6;
  70. }