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
dd5cc386
Commit
dd5cc386
authored
Nov 06, 2020
by
vishnubanna
Browse files
activation function fix
parent
15a302ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
official/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
...al/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
+0
-1
No files found.
official/vision/beta/projects/yolo/modeling/layers/nn_blocks.py
View file @
dd5cc386
...
@@ -154,7 +154,6 @@ class DarkConv(ks.layers.Layer):
...
@@ -154,7 +154,6 @@ class DarkConv(ks.layers.Layer):
self
.
_activation_fn
=
lambda
x
:
x
*
tf
.
math
.
tanh
(
tf
.
math
.
softplus
(
x
))
self
.
_activation_fn
=
lambda
x
:
x
*
tf
.
math
.
tanh
(
tf
.
math
.
softplus
(
x
))
else
:
else
:
self
.
_activation_fn
=
tf_utils
.
get_activation
(
self
.
_activation
)
self
.
_activation_fn
=
tf_utils
.
get_activation
(
self
.
_activation
)
tf
.
print
(
self
.
_activation_fn
)
def
call
(
self
,
x
):
def
call
(
self
,
x
):
if
self
.
_groups
!=
1
:
if
self
.
_groups
!=
1
:
...
...
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