Skip to content

Add Hardtanh Export#8804

Closed
Ac2zoom wants to merge 7 commits intopytorch:masterfrom
Ac2zoom:add_hardtanh_c2
Closed

Add Hardtanh Export#8804
Ac2zoom wants to merge 7 commits intopytorch:masterfrom
Ac2zoom:add_hardtanh_c2

Conversation

@Ac2zoom
Copy link
Contributor

@Ac2zoom Ac2zoom commented Jun 22, 2018

Added hartanh CPU/GPU Implementations and backend tests to Caffe2

@Ac2zoom Ac2zoom requested a review from orionr as a code owner June 22, 2018 21:02
@yf225
Copy link
Contributor

yf225 commented Jun 22, 2018

There are probably files that we don't want to put in the PR. Can we rebase onto master, run git submodule update, and then push again?

@Ac2zoom Ac2zoom force-pushed the add_hardtanh_c2 branch 2 times, most recently from 617374a to b75c77b Compare June 22, 2018 21:32
@onnxbot onnxbot added the caffe2 label Jun 22, 2018
@Ac2zoom
Copy link
Contributor Author

Ac2zoom commented Jun 22, 2018

@yf225 Thank you! I think the new commit should have those files removed.

@Ac2zoom Ac2zoom force-pushed the add_hardtanh_c2 branch 2 times, most recently from 0dbb189 to 728c173 Compare June 22, 2018 23:41
@Ac2zoom
Copy link
Contributor Author

Ac2zoom commented Jun 27, 2018

Revising test cases for Clip op

@Ac2zoom
Copy link
Contributor Author

Ac2zoom commented Jun 27, 2018

Adding export support for hardtanh to clip in onnx

@Ac2zoom Ac2zoom changed the title Add hardtanh c2 Add Hardtanh Export to Caffe2 Jun 27, 2018
@Ac2zoom Ac2zoom force-pushed the add_hardtanh_c2 branch 2 times, most recently from 3006e4f to 05d362b Compare June 29, 2018 00:54
@Ac2zoom Ac2zoom changed the title Add Hardtanh Export to Caffe2 Add Hardtanh Export Jul 5, 2018
Akshay Chalana and others added 6 commits July 10, 2018 11:19
HardtanhGradient CPU Op updated to only use output (Y) not input (X)

Finished initial GPU Implementation of Hardtanh and HardtanhGradient Ops.  Moving on to tests.

Hardtanh tests finished except reference function

Removed hardtanh_op_test, added hardtanh tests to activation_ops_test

Made input variables const, switched to using fmaxf and fminf, and better utilized macros.

Updated const access modifiers for hardtanh op
@houseroad
Copy link
Member

@pytorchbot retest this please

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@Ac2zoom Ac2zoom deleted the add_hardtanh_c2 branch July 12, 2018 17:52
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Added hartanh CPU/GPU Implementations and backend tests to Caffe2
Pull Request resolved: pytorch#8804

Reviewed By: bddppq

Differential Revision: D8813987

Pulled By: houseroad

fbshipit-source-id: 2480296eab3373425b9e1734a10c009b4f5d3e26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants