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
e0ed5075
Commit
e0ed5075
authored
Mar 18, 2022
by
Rebecca Chen
Committed by
A. Unique TensorFlower
Mar 18, 2022
Browse files
Internal change
PiperOrigin-RevId: 435732468
parent
24ae1f51
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
official/nlp/data/dual_encoder_dataloader.py
official/nlp/data/dual_encoder_dataloader.py
+1
-1
official/vision/beta/modeling/backbones/revnet.py
official/vision/beta/modeling/backbones/revnet.py
+1
-1
official/vision/beta/modeling/decoders/aspp.py
official/vision/beta/modeling/decoders/aspp.py
+1
-1
official/vision/modeling/backbones/revnet.py
official/vision/modeling/backbones/revnet.py
+1
-1
official/vision/modeling/decoders/aspp.py
official/vision/modeling/decoders/aspp.py
+1
-1
No files found.
official/nlp/data/dual_encoder_dataloader.py
View file @
e0ed5075
...
...
@@ -124,7 +124,7 @@ class DualEncoderDataLoader(data_loader.DataLoader):
raise
ValueError
(
'Expected {} to start with {}'
.
format
(
string
,
old
))
def
_switch_key_prefix
(
d
,
old
,
new
):
return
{
_switch_prefix
(
key
,
old
,
new
):
value
for
key
,
value
in
d
.
items
()}
return
{
_switch_prefix
(
key
,
old
,
new
):
value
for
key
,
value
in
d
.
items
()}
# pytype: disable=attribute-error # trace-all-classes
model_inputs
=
_switch_key_prefix
(
self
.
_bert_tokenize
(
record
,
self
.
_left_text_fields
),
...
...
official/vision/beta/modeling/backbones/revnet.py
View file @
e0ed5075
...
...
@@ -208,7 +208,7 @@ class RevNet(tf.keras.Model):
@
property
def
output_specs
(
self
)
->
Dict
[
int
,
tf
.
TensorShape
]:
"""A dict of {level: TensorShape} pairs for the model output."""
return
self
.
_output_specs
return
self
.
_output_specs
# pytype: disable=bad-return-type # trace-all-classes
@
factory
.
register_backbone_builder
(
'revnet'
)
...
...
official/vision/beta/modeling/decoders/aspp.py
View file @
e0ed5075
...
...
@@ -103,7 +103,7 @@ class ASPP(tf.keras.layers.Layer):
if
self
.
_config_dict
[
'pool_kernel_size'
]:
pool_kernel_size
=
[
int
(
p_size
//
2
**
self
.
_config_dict
[
'level'
])
for
p_size
in
self
.
_config_dict
[
'pool_kernel_size'
]
for
p_size
in
self
.
_config_dict
[
'pool_kernel_size'
]
# pytype: disable=attribute-error # trace-all-classes
]
self
.
aspp
=
self
.
_aspp_layer
(
...
...
official/vision/modeling/backbones/revnet.py
View file @
e0ed5075
...
...
@@ -208,7 +208,7 @@ class RevNet(tf.keras.Model):
@
property
def
output_specs
(
self
)
->
Dict
[
int
,
tf
.
TensorShape
]:
"""A dict of {level: TensorShape} pairs for the model output."""
return
self
.
_output_specs
return
self
.
_output_specs
# pytype: disable=bad-return-type # trace-all-classes
@
factory
.
register_backbone_builder
(
'revnet'
)
...
...
official/vision/modeling/decoders/aspp.py
View file @
e0ed5075
...
...
@@ -103,7 +103,7 @@ class ASPP(tf.keras.layers.Layer):
if
self
.
_config_dict
[
'pool_kernel_size'
]:
pool_kernel_size
=
[
int
(
p_size
//
2
**
self
.
_config_dict
[
'level'
])
for
p_size
in
self
.
_config_dict
[
'pool_kernel_size'
]
for
p_size
in
self
.
_config_dict
[
'pool_kernel_size'
]
# pytype: disable=attribute-error # trace-all-classes
]
self
.
aspp
=
self
.
_aspp_layer
(
...
...
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