v0.4.0
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
toTensorflow.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
tonnom_3d_shaped_t
- change
LAYER_BUF_*
macros toNNOM_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()