Skip to content

Instantly share code, notes, and snippets.

@agnesmm

agnesmm/a3g4.py Secret

Created September 19, 2017 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agnesmm/6198829362377d1fac7a4ffec03a649e to your computer and use it in GitHub Desktop.
Save agnesmm/6198829362377d1fac7a4ffec03a649e to your computer and use it in GitHub Desktop.
import numpy as np
x = np.random.random((2, 3)) - 0.5
def relu(x):
return np.maximum(x, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment