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
230732b2
Commit
230732b2
authored
Nov 08, 2020
by
vishnubanna
Browse files
cleaner grouping
parent
a7f56602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
...al/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
+2
-2
No files found.
official/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
View file @
230732b2
...
...
@@ -449,8 +449,8 @@ class CSPTiny(tf.keras.layers.Layer):
def
call
(
self
,
inputs
):
x1
=
self
.
_convlayer1
(
inputs
)
x
_iterm
=
tf
.
split
(
x
,
self
.
_groups
,
axis
=
-
1
)[
self
.
_group_id
]
x2
=
self
.
_convlayer2
(
x
_interm
)
# grouping
x
1_group
=
tf
.
split
(
x
1
,
self
.
_groups
,
axis
=
-
1
)[
self
.
_group_id
]
x2
=
self
.
_convlayer2
(
x
1_group
)
# grouping
x3
=
self
.
_convlayer3
(
x2
)
x4
=
tf
.
concat
([
x3
,
x2
],
axis
=-
1
)
# csp partial using grouping
x5
=
self
.
_convlayer4
(
x4
)
...
...
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