Created
November 28, 2021 05:50
-
-
Save danielcwq/6dd70504877ed85ee95bc8facee424c9 to your computer and use it in GitHub Desktop.
Creating sigmoid func
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sigmoid(x): | |
return 1/(1+torch.exp(-x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment