Skip to content

Commit b5ed41b

Browse files
committed
added support for quantized object and added layer to __init__
1 parent dfda524 commit b5ed41b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

qkeras/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#from .qtools.settings import cfg
3434
from .qconv2d_batchnorm import QConv2DBatchnorm
3535
from .qdepthwiseconv2d_batchnorm import QDepthwiseConv2DBatchnorm
36+
from .qdense_batchnorm import QDenseBatchnorm
3637

3738
assert tf.executing_eagerly(), "QKeras requires TF with eager execution mode on"
3839

qkeras/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
from .qlayers import Clip
4343
from .qconv2d_batchnorm import QConv2DBatchnorm
4444
from .qdepthwiseconv2d_batchnorm import QDepthwiseConv2DBatchnorm
45+
from .qdense_batchnorm import QDenseBatchnorm
4546
from .qlayers import QActivation
4647
from .qlayers import QAdaptiveActivation
4748
from .qpooling import QAveragePooling2D
@@ -97,6 +98,7 @@
9798
"QDepthwiseConv2DBatchnorm",
9899
"QAveragePooling2D",
99100
"QGlobalAveragePooling2D",
101+
"QDenseBatchnorm",
100102
]
101103

102104

@@ -854,6 +856,8 @@ def _add_supported_quantized_objects(custom_objects):
854856
custom_objects["QConv2DBatchnorm"] = QConv2DBatchnorm
855857
custom_objects["QDepthwiseConv2DBatchnorm"] = QDepthwiseConv2DBatchnorm
856858

859+
custom_objects["QDenseBatchnorm"] = QDenseBatchnorm
860+
857861
custom_objects["QAveragePooling2D"] = QAveragePooling2D
858862
custom_objects["QGlobalAveragePooling2D"] = QGlobalAveragePooling2D
859863

0 commit comments

Comments
 (0)