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.

op_by_layer_dict.py 1.8 kB

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright (c) Microsoft Corporation.
  2. # Licensed under the MIT License.
  3. # Written by Hao Du and Houwen Peng
  4. # email: haodu8-c@my.cityu.edu.hk and houwen.peng@microsoft.com
  5. # This dictionary is generated from calculating each operation of each layer to quickly search for layers.
  6. # flops_op_dict[which_stage][which_operation] =
  7. # (flops_of_operation_with_stride1, flops_of_operation_with_stride2)
  8. flops_op_dict = {}
  9. for i in range(5):
  10. flops_op_dict[i] = {}
  11. flops_op_dict[0][0] = (21.828704, 18.820752)
  12. flops_op_dict[0][1] = (32.669328, 28.16048)
  13. flops_op_dict[0][2] = (25.039968, 23.637648)
  14. flops_op_dict[0][3] = (37.486224, 35.385824)
  15. flops_op_dict[0][4] = (29.856864, 30.862992)
  16. flops_op_dict[0][5] = (44.711568, 46.22384)
  17. flops_op_dict[1][0] = (11.808656, 11.86712)
  18. flops_op_dict[1][1] = (17.68624, 17.780848)
  19. flops_op_dict[1][2] = (13.01288, 13.87416)
  20. flops_op_dict[1][3] = (19.492576, 20.791408)
  21. flops_op_dict[1][4] = (14.819216, 16.88472)
  22. flops_op_dict[1][5] = (22.20208, 25.307248)
  23. flops_op_dict[2][0] = (8.198, 10.99632)
  24. flops_op_dict[2][1] = (12.292848, 16.5172)
  25. flops_op_dict[2][2] = (8.69976, 11.99984)
  26. flops_op_dict[2][3] = (13.045488, 18.02248)
  27. flops_op_dict[2][4] = (9.4524, 13.50512)
  28. flops_op_dict[2][5] = (14.174448, 20.2804)
  29. flops_op_dict[3][0] = (12.006112, 15.61632)
  30. flops_op_dict[3][1] = (18.028752, 23.46096)
  31. flops_op_dict[3][2] = (13.009632, 16.820544)
  32. flops_op_dict[3][3] = (19.534032, 25.267296)
  33. flops_op_dict[3][4] = (14.514912, 18.62688)
  34. flops_op_dict[3][5] = (21.791952, 27.9768)
  35. flops_op_dict[4][0] = (11.307456, 15.292416)
  36. flops_op_dict[4][1] = (17.007072, 23.1504)
  37. flops_op_dict[4][2] = (11.608512, 15.894528)
  38. flops_op_dict[4][3] = (17.458656, 24.053568)
  39. flops_op_dict[4][4] = (12.060096, 16.797696)
  40. flops_op_dict[4][5] = (18.136032, 25.40832)

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能