-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The relu definition is a bit "scary" for array inputs. #85
Comments
I agree but I'm not sure what to do about it. I guess we can just disable |
Or add a vectorized definition for it.
or something. |
Strictly speaking you could argue that this changes the meaning of Happy to take a PR for that fix. |
Base typically have type annotations though
|
But yes, there are cases where |
Yeah true. Maybe the better fix is to just define |
I would support a relu(x::Array) = error("Use explicitly-broadcasted invocations such as `relu.(x)` to apply activation functions to tensors!") These little gotchas can be very helpful to users coming from less-enlightened frameworks. |
Fixed by #98 |
The following seems like an easy mistake to make:
The text was updated successfully, but these errors were encountered: