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
62f9e02b
Commit
62f9e02b
authored
Sep 20, 2022
by
Rino Lee
Committed by
A. Unique TensorFlower
Sep 20, 2022
Browse files
Internal change
PiperOrigin-RevId: 475707902
parent
2aa37091
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
official/modeling/hyperparams/params_dict.py
official/modeling/hyperparams/params_dict.py
+6
-6
official/projects/qat/vision/configs/image_classification_test.py
.../projects/qat/vision/configs/image_classification_test.py
+1
-1
official/projects/qat/vision/configs/retinanet_test.py
official/projects/qat/vision/configs/retinanet_test.py
+1
-1
official/projects/qat/vision/configs/semantic_segmentation_test.py
...projects/qat/vision/configs/semantic_segmentation_test.py
+1
-1
official/vision/configs/maskrcnn_test.py
official/vision/configs/maskrcnn_test.py
+1
-1
official/vision/configs/retinanet_test.py
official/vision/configs/retinanet_test.py
+1
-1
No files found.
official/modeling/hyperparams/params_dict.py
View file @
62f9e02b
...
@@ -288,42 +288,42 @@ class ParamsDict(object):
...
@@ -288,42 +288,42 @@ class ParamsDict(object):
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
if
left_v
!=
right_v
:
if
left_v
!=
right_v
:
raise
KeyError
(
raise
KeyError
(
'Found inconsistncy between key `{}` and key `{}`.'
.
format
(
'Found inconsist
e
ncy between key `{}` and key `{}`.'
.
format
(
tokens
[
0
],
tokens
[
1
]))
tokens
[
0
],
tokens
[
1
]))
elif
'!='
in
restriction
:
elif
'!='
in
restriction
:
tokens
=
restriction
.
split
(
'!='
)
tokens
=
restriction
.
split
(
'!='
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
if
left_v
==
right_v
:
if
left_v
==
right_v
:
raise
KeyError
(
raise
KeyError
(
'Found inconsistncy between key `{}` and key `{}`.'
.
format
(
'Found inconsist
e
ncy between key `{}` and key `{}`.'
.
format
(
tokens
[
0
],
tokens
[
1
]))
tokens
[
0
],
tokens
[
1
]))
elif
'<'
in
restriction
:
elif
'<'
in
restriction
:
tokens
=
restriction
.
split
(
'<'
)
tokens
=
restriction
.
split
(
'<'
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
if
left_v
>=
right_v
:
if
left_v
>=
right_v
:
raise
KeyError
(
raise
KeyError
(
'Found inconsistncy between key `{}` and key `{}`.'
.
format
(
'Found inconsist
e
ncy between key `{}` and key `{}`.'
.
format
(
tokens
[
0
],
tokens
[
1
]))
tokens
[
0
],
tokens
[
1
]))
elif
'<='
in
restriction
:
elif
'<='
in
restriction
:
tokens
=
restriction
.
split
(
'<='
)
tokens
=
restriction
.
split
(
'<='
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
if
left_v
>
right_v
:
if
left_v
>
right_v
:
raise
KeyError
(
raise
KeyError
(
'Found inconsistncy between key `{}` and key `{}`.'
.
format
(
'Found inconsist
e
ncy between key `{}` and key `{}`.'
.
format
(
tokens
[
0
],
tokens
[
1
]))
tokens
[
0
],
tokens
[
1
]))
elif
'>'
in
restriction
:
elif
'>'
in
restriction
:
tokens
=
restriction
.
split
(
'>'
)
tokens
=
restriction
.
split
(
'>'
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
if
left_v
<=
right_v
:
if
left_v
<=
right_v
:
raise
KeyError
(
raise
KeyError
(
'Found inconsistncy between key `{}` and key `{}`.'
.
format
(
'Found inconsist
e
ncy between key `{}` and key `{}`.'
.
format
(
tokens
[
0
],
tokens
[
1
]))
tokens
[
0
],
tokens
[
1
]))
elif
'>='
in
restriction
:
elif
'>='
in
restriction
:
tokens
=
restriction
.
split
(
'>='
)
tokens
=
restriction
.
split
(
'>='
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
_
,
left_v
,
_
,
right_v
=
_get_kvs
(
tokens
,
params_dict
)
if
left_v
<
right_v
:
if
left_v
<
right_v
:
raise
KeyError
(
raise
KeyError
(
'Found inconsistncy between key `{}` and key `{}`.'
.
format
(
'Found inconsist
e
ncy between key `{}` and key `{}`.'
.
format
(
tokens
[
0
],
tokens
[
1
]))
tokens
[
0
],
tokens
[
1
]))
else
:
else
:
raise
ValueError
(
'Unsupported relation in restriction.'
)
raise
ValueError
(
'Unsupported relation in restriction.'
)
...
...
official/projects/qat/vision/configs/image_classification_test.py
View file @
62f9e02b
...
@@ -40,7 +40,7 @@ class ImageClassificationConfigTest(tf.test.TestCase, parameterized.TestCase):
...
@@ -40,7 +40,7 @@ class ImageClassificationConfigTest(tf.test.TestCase, parameterized.TestCase):
self
.
assertIsInstance
(
config
.
task
.
quantization
,
common
.
Quantization
)
self
.
assertIsInstance
(
config
.
task
.
quantization
,
common
.
Quantization
)
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
config
.
task
.
train_data
.
is_training
=
None
config
.
task
.
train_data
.
is_training
=
None
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsistncy between key'
):
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsist
e
ncy between key'
):
config
.
validate
()
config
.
validate
()
...
...
official/projects/qat/vision/configs/retinanet_test.py
View file @
62f9e02b
...
@@ -39,7 +39,7 @@ class RetinaNetConfigTest(tf.test.TestCase, parameterized.TestCase):
...
@@ -39,7 +39,7 @@ class RetinaNetConfigTest(tf.test.TestCase, parameterized.TestCase):
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
config
.
validate
()
config
.
validate
()
config
.
task
.
train_data
.
is_training
=
None
config
.
task
.
train_data
.
is_training
=
None
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsistncy between key'
):
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsist
e
ncy between key'
):
config
.
validate
()
config
.
validate
()
...
...
official/projects/qat/vision/configs/semantic_segmentation_test.py
View file @
62f9e02b
...
@@ -39,7 +39,7 @@ class SemanticSegmentationConfigTest(tf.test.TestCase, parameterized.TestCase):
...
@@ -39,7 +39,7 @@ class SemanticSegmentationConfigTest(tf.test.TestCase, parameterized.TestCase):
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
config
.
validate
()
config
.
validate
()
config
.
task
.
train_data
.
is_training
=
None
config
.
task
.
train_data
.
is_training
=
None
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsistncy between key'
):
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsist
e
ncy between key'
):
config
.
validate
()
config
.
validate
()
...
...
official/vision/configs/maskrcnn_test.py
View file @
62f9e02b
...
@@ -39,7 +39,7 @@ class MaskRCNNConfigTest(tf.test.TestCase, parameterized.TestCase):
...
@@ -39,7 +39,7 @@ class MaskRCNNConfigTest(tf.test.TestCase, parameterized.TestCase):
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
config
.
validate
()
config
.
validate
()
config
.
task
.
train_data
.
is_training
=
None
config
.
task
.
train_data
.
is_training
=
None
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsistncy between key'
):
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsist
e
ncy between key'
):
config
.
validate
()
config
.
validate
()
...
...
official/vision/configs/retinanet_test.py
View file @
62f9e02b
...
@@ -38,7 +38,7 @@ class RetinaNetConfigTest(tf.test.TestCase, parameterized.TestCase):
...
@@ -38,7 +38,7 @@ class RetinaNetConfigTest(tf.test.TestCase, parameterized.TestCase):
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
self
.
assertIsInstance
(
config
.
task
.
train_data
,
exp_cfg
.
DataConfig
)
config
.
validate
()
config
.
validate
()
config
.
task
.
train_data
.
is_training
=
None
config
.
task
.
train_data
.
is_training
=
None
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsistncy between key'
):
with
self
.
assertRaisesRegex
(
KeyError
,
'Found inconsist
e
ncy between key'
):
config
.
validate
()
config
.
validate
()
...
...
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