Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
43d232e5
Commit
43d232e5
authored
May 02, 2022
by
Jaehong Kim
Committed by
A. Unique TensorFlower
May 02, 2022
Browse files
Remove duplicated bias and activation from the quantized separable conv.
PiperOrigin-RevId: 446001473
parent
2aff7786
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
official/projects/qat/vision/modeling/heads/dense_prediction_heads.py
...jects/qat/vision/modeling/heads/dense_prediction_heads.py
+4
-0
No files found.
official/projects/qat/vision/modeling/heads/dense_prediction_heads.py
View file @
43d232e5
...
...
@@ -64,6 +64,10 @@ class SeparableConv2DQuantized(tf.keras.layers.Layer):
# Depthwise conv input filters is always equal to output filters.
# This filters argument only needed for the point-wise conv2d op.
del
dwconv_kwargs
[
'filters'
]
dwconv_kwargs
.
update
({
'activation'
:
None
,
'use_bias'
:
False
,
})
self
.
dw_conv
=
depthwise_conv2d_quantized
(
name
=
'dw'
,
**
dwconv_kwargs
)
conv_kwargs
=
self
.
_conv_kwargs
.
copy
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment