MCPcopy Create free account
hub / github.com/pytorch/pytorch / sigmoid

Function sigmoid

caffe2/python/operator_test/cross_entropy_ops_test.py:13–14  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

11import unittest
12
13def sigmoid(x):
14 return 1.0 / (1.0 + np.exp(-x))
15
16
17def sigmoid_cross_entropy_with_logits(x, z):

Calls 1

expMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…