Skip to content
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

Use custom range in HardTanh and mask it as Clamp #411

Merged
merged 1 commit into from
Oct 7, 2015

Conversation

jhjin
Copy link
Contributor

@jhjin jhjin commented Oct 1, 2015

allows HardTanh to use a custom interval for linear region when min/max values
are specified in declaration. Thus its implementation can be shared with new
Clamp function.

@szagoruyko
Copy link
Member

I made a couple of comments, the rest looks good, seems quite useful

@jhjin jhjin force-pushed the clamp branch 2 times, most recently from 3d7bd60 to 89a1970 Compare October 5, 2015 18:19
@jhjin
Copy link
Contributor Author

jhjin commented Oct 5, 2015

@szagoruyko Thanks for your time. I updated the code to use the consistent ordering in arguments and considered backward compatibility. The same as for cunn.

allows HardTanh to use a custom interval for linear region when min/max values
are specified in declaration. Thus its implementation can be shared with new
Clamp function.
soumith added a commit that referenced this pull request Oct 7, 2015
Use custom range in HardTanh and mask it as Clamp
@soumith soumith merged commit c5df94d into torch:master Oct 7, 2015
@soumith
Copy link
Member

soumith commented Oct 7, 2015

Thanks a lot Jonghoon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants