MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / sigmoid

Method sigmoid

samples/python/yolov3_onnx/data_processing.py:224–226  ·  view source on GitHub ↗

Return the sigmoid of the input.

(value)

Source from the content-addressed store, hash-verified

222 # Two in-line functions required for calculating the bounding box
223 # descriptors:
224 def sigmoid(value):
225 """Return the sigmoid of the input."""
226 return 1.0 / (1.0 + math.exp(-value))
227
228 def exponential(value):
229 """Return the exponential of the input."""

Callers 6

LSTMCellFunction · 0.80
GRUCellFunction · 0.80
inferMethod · 0.80
infer_tacotron2_trtFunction · 0.80
test_inferenceFunction · 0.80

Calls 1

expMethod · 0.45

Tested by 1

test_inferenceFunction · 0.64