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
6d39f5e6
Commit
6d39f5e6
authored
Jul 22, 2020
by
Kaushik Shivakumar
Browse files
finalize context RCNN changes for tensorflow 2.x
parent
afd5579f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
research/object_detection/meta_architectures/context_rcnn_lib_tf2.py
...ject_detection/meta_architectures/context_rcnn_lib_tf2.py
+0
-2
No files found.
research/object_detection/meta_architectures/context_rcnn_lib_tf2.py
View file @
6d39f5e6
...
...
@@ -85,9 +85,7 @@ class AttentionBlock(tf.keras.layers.Layer):
self
.
_val_proj
,
normalize
=
True
)
weights
=
tf
.
matmul
(
queries
,
keys
,
transpose_b
=
True
)
weights
,
values
=
filter_weight_value
(
weights
,
values
,
valid_mask
)
weights
=
tf
.
nn
.
softmax
(
weights
/
self
.
_attention_temperature
)
features
=
tf
.
matmul
(
weights
,
values
)
...
...
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