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
26d8e705
Commit
26d8e705
authored
Oct 25, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Oct 25, 2021
Browse files
Internal change
PiperOrigin-RevId: 405455038
parent
6cd536dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
official/vision/beta/serving/export_module_factory_test.py
official/vision/beta/serving/export_module_factory_test.py
+4
-2
No files found.
official/vision/beta/serving/export_module_factory_test.py
View file @
26d8e705
...
...
@@ -107,8 +107,10 @@ class ImageClassificationExportTest(tf.test.TestCase, parameterized.TestCase):
# The imported model should contain any trackable attrs that the original
# model had.
self
.
assertTrue
(
hasattr
(
imported
.
model
,
'test_trackable'
))
self
.
assertAllClose
(
out
[
'logits'
].
numpy
(),
expected_logits
.
numpy
())
self
.
assertAllClose
(
out
[
'probs'
].
numpy
(),
expected_prob
.
numpy
())
self
.
assertAllClose
(
out
[
'logits'
].
numpy
(),
expected_logits
.
numpy
(),
rtol
=
1e-04
,
atol
=
1e-04
)
self
.
assertAllClose
(
out
[
'probs'
].
numpy
(),
expected_prob
.
numpy
(),
rtol
=
1e-04
,
atol
=
1e-04
)
if
__name__
==
'__main__'
:
...
...
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