Skip to content

Instantly share code, notes, and snippets.

@marcopeix
Created February 26, 2019 17:09
Show Gist options
  • Save marcopeix/a25c8b89024466ce990f10a011d6d209 to your computer and use it in GitHub Desktop.
Save marcopeix/a25c8b89024466ce990f10a011d6d209 to your computer and use it in GitHub Desktop.
def linear_forward(A, W, b):
Z = np.dot(W, A) + b
assert(Z.shape == (W.shape[0], A.shape[1]))
cache = (A, W, b)
return Z, cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment