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
2c4ea3d8
Commit
2c4ea3d8
authored
Jul 14, 2022
by
Yang Feng
Committed by
A. Unique TensorFlower
Jul 14, 2022
Browse files
Internal change
PiperOrigin-RevId: 460979064
parent
c9e4db9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/vision/serving/image_classification.py
official/vision/serving/image_classification.py
+4
-1
No files found.
official/vision/serving/image_classification.py
View file @
2c4ea3d8
...
...
@@ -78,6 +78,9 @@ class ClassificationModule(export_base.ExportModule):
parallel_iterations
=
32
))
logits
=
self
.
inference_step
(
images
)
if
self
.
params
.
task
.
train_data
.
is_multilabel
:
probs
=
tf
.
math
.
sigmoid
(
logits
)
else
:
probs
=
tf
.
nn
.
softmax
(
logits
)
return
{
'logits'
:
logits
,
'probs'
:
probs
}
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