You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can pass the activation_fn in conv2d as relu, sigmoid, tanh etc.
binarize function converts pixel intensities to binary values. Try declaring an array: ar = np.asarray([[0.12,1.2], [1.1, 0.5]]) and call the function.
@carpedm20 Have you tried using just 0.0 < images rather than np.random ? Shouldn't the former be a better choice?
Hi,everyone
I see activation_fn function in ops.py, but I can't find where it's defined and implemented.
I'm also confused about this function,
def binarize(images):
return (np.random.uniform(size=images.shape) < images).astype('float32')
Sorry, I'm really new to this architecture, could someone explain these two functions above?
Thanks all.
The text was updated successfully, but these errors were encountered: