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

allow "mean" reduction for TracInCPFast, TracInCPFastRandProj #913

Closed
wants to merge 1 commit into from

Conversation

99warriors
Copy link
Contributor

Summary: This adds support for the "reduction" of the loss function used by TracInCPFast and TracInCPFastRandProj to be "mean", not just "sum" (as before). This is done by appropriate scaling in _basic_computation_tracincp_fast. This scaling could alternatively been handled in _jacobian_loss_wrt_inputs, if this is a better option, can do that instead. Tests are run for more parameters - basically if a reduction="sum" test was run, a reduction="mean" test is now added.

Reviewed By: vivekmig

Differential Revision: D34802879

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34802879

…h#913)

Summary:
Pull Request resolved: pytorch#913

This adds support for the "reduction" of the loss function used by `TracInCPFast` and `TracInCPFastRandProj` to be "mean", not just "sum" (as before).  This is done by appropriate scaling in `_basic_computation_tracincp_fast`.  This scaling could alternatively been handled in `_jacobian_loss_wrt_inputs`, if this is a better option, can do that instead.  Tests are run for more parameters - basically if a reduction="sum" test was run, a reduction="mean" test is now added.

Reviewed By: vivekmig

Differential Revision: D34802879

fbshipit-source-id: 5b8bbd87e5c0b0a1423a2d2745ced7af533009fe
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D34802879

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.

None yet

2 participants