Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit fe3dc65

Browse files
chenyangyu1988facebook-github-bot
authored andcommitted
use sigmoid
Summary: use sigmoid Reviewed By: liaimi Differential Revision: D19352122 fbshipit-source-id: 2640f554221d56d9fe2c8f0a9874f31ea0159d58
1 parent 03b5779 commit fe3dc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytext/models/output_layers/doc_classification_output_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def get_pred(self, logit, *args, **kwargs):
183183
return preds, scores
184184

185185
def torchscript_predictions(self):
186-
return ClassificationScores(self.target_names, F.log_softmax)
186+
return ClassificationScores(self.target_names, F.logsigmoid)
187187

188188
def export_to_caffe2(
189189
self,

0 commit comments

Comments
 (0)