Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import autograd.numpy as np
from autograd import grad
def main():
def relu(x):
return np.maximum(x, np.zeros_like(x))
def drelu(x):
import autograd.numpy as np
from autograd import grad
def main():
def relu(x):
return np.maximum(x, np.zeros_like(x))
def drelu(x):
import autograd.numpy as np
from autograd import grad
def main():
def relu(x):
return np.maximum(x, np.zeros_like(x))
d = 5