Skip to content

Instantly share code, notes, and snippets.

@danielcwq
Created November 28, 2021 05:50
Show Gist options
  • Save danielcwq/6dd70504877ed85ee95bc8facee424c9 to your computer and use it in GitHub Desktop.
Save danielcwq/6dd70504877ed85ee95bc8facee424c9 to your computer and use it in GitHub Desktop.
Creating sigmoid func
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