Skip to content

v0.4.0

Compare
Choose a tag to compare
@majianjia majianjia released this 11 Jul 12:28
· 205 commits to master since this release
4c73af5

Important: This update will not support your previous weights.h generated by the old scripts, only because an argument, dilation was added to Conv2D and DW_Conv2D.
You shall use the new script to regenerate your old model.

Major changes

  • Add a new type of API "structured API", marked with _s suffix. This is a set of API taking a C structure as arguments for a layer.
  • Add a tools nnom.py to generate the nnom model based on NNoM structured API.
  • Add supports for Channel-wise quantization in Convolutional Layers
  • Add a new data type: Tensor. All operations are now based on the tensor.
  • Weights and bias are now stored in tensor.
  • Scripts have switched from pure Keras to Tensorflow.Keras. Support TF1.14+ and TF2.1+

Layer updates

  • Add dilation supports for Conv2D and DepthwiseConv2D
  • Add Transpose Convolution (Not working yet)
  • Add supports for LeakyReLU.

Others

  • nnom_shape_t to nnom_3d_shaped_t
  • change LAYER_BUF_* macros to NNOM_TENSOR_BUF_* for clarity.

Bug fixed:

  • Fix bugs in CHW mode flatten tensor_chw2hwc()
  • Fix bugs in upsampling_build()
  • Fix dimention calculation error in global_pooling_builtd()