Update README.md
Browse files
README.md
CHANGED
@@ -87,8 +87,8 @@ input_feed_dict = {
|
|
87 |
logits = model.run(output_names=output_names, input_feed=input_feed_dict)[0]
|
88 |
# produces a numpy array, one row per input item, one col per label
|
89 |
|
90 |
-
def sigmoid(
|
91 |
-
return 1.0 / (1.0 + np.exp(-
|
92 |
|
93 |
# Post-processing. Gets the scores per label in range.
|
94 |
# Auto done by Transformers' pipeline, but we must do it manually with ORT.
|
|
|
87 |
logits = model.run(output_names=output_names, input_feed=input_feed_dict)[0]
|
88 |
# produces a numpy array, one row per input item, one col per label
|
89 |
|
90 |
+
def sigmoid(x):
|
91 |
+
return 1.0 / (1.0 + np.exp(-x))
|
92 |
|
93 |
# Post-processing. Gets the scores per label in range.
|
94 |
# Auto done by Transformers' pipeline, but we must do it manually with ORT.
|