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.

operators.md 1.4 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. * [absval](#absval)
  2. * [batchnorm](#batchnorm)
  3. * [clip](#clip)
  4. * [concat](#concat)
  5. * [convolution](#convolution)
  6. # absval
  7. ```
  8. y = abs(x)
  9. ```
  10. * one_blob_only
  11. * support_inplace
  12. # batchnorm
  13. ```
  14. y = (x - mean) / sqrt(var + eps) * slope + bias
  15. ```
  16. * one_blob_only
  17. * support_inplace
  18. |param id|name|type|default|
  19. |--|--|--|--|
  20. |0|channels|int|0|
  21. |1|eps|float|0.f|
  22. |weight|type|
  23. |--|--|
  24. |slope_data|float|
  25. |mean_data|float|
  26. |var_data|float|
  27. |bias_data|float|
  28. # clip
  29. ```
  30. y = clamp(x, min, max)
  31. ```
  32. * one_blob_only
  33. * support_inplace
  34. |param id|name|type|default|
  35. |--|--|--|--|
  36. |0|min|float|-FLT_MAX|
  37. |1|max|float|FLT_MAX|
  38. # concat
  39. ```
  40. y = concat(x0, x1, x2, ...) by axis
  41. ```
  42. |param id|name|type|default|
  43. |--|--|--|--|
  44. |0|axis|int|0|
  45. # convolution
  46. ```
  47. x2 = pad(x, pads, pad_value)
  48. x3 = conv(x2, weight, kernel, stride, dilation) + bias
  49. y = activation(x3, act_type, act_params)
  50. ```
  51. * one_blob_only
  52. |param id|name|type|default|
  53. |--|--|--|--|
  54. |0|num_output|int|0|
  55. |1|kernel_w|int|0|
  56. |2|dilation_w|int|1|
  57. |3|stride_w|int|1|
  58. |4|pad_left|int|0|
  59. |5|bias_term|int|0|
  60. |6|weight_data_size|int|0|
  61. |8|int8_scale_term|int|0|
  62. |9|activation_type|int|0|
  63. |10|activation_params|array|[ ]|
  64. |11|kernel_h|int|kernel_w|
  65. |12|dilation_h|int|dilation_w|
  66. |13|stride_h|int|stride_w|
  67. |15|pad_right|int|pad_left|
  68. |14|pad_top|int|pad_left|
  69. |16|pad_bottom|int|pad_top|
  70. |18|pad_value|float|0.f|
  71. |weight|type|
  72. |--|--|
  73. |weight_data|float/fp16/int8|
  74. |bias_data|float|