Commit 2c4ea3d8 authored by Yang Feng's avatar Yang Feng Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 460979064
parent c9e4db9c
......@@ -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}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment