Skip to content

Conversation

@yya007-zz
Copy link

Currently, norm function only supports vector norm. This PR extends vector norm to matrix norm.

@yya007-zz
Copy link
Author

yya007-zz commented Sep 5, 2018

This PR applied the comments in the # 10722 and redesigned the norm function. The internal reviewer could check T28601904 for details.

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.

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

@ssnl ssnl self-requested a review September 5, 2018 23:23
@ezyang
Copy link
Contributor

ezyang commented Sep 9, 2018

CC @erikbrinkman

@ezyang
Copy link
Contributor

ezyang commented Sep 10, 2018

I'm a bit uncertain if this is the way we want to support parameter-based choice of norm. @ssnl, you've thought about this before; should we start supporting strings for selecting this sort of thing? Should we block this until enums work?

@ssnl
Copy link
Collaborator

ssnl commented Sep 10, 2018

@ezyang Yes enum support would be ideal. However, let's not block this bootcamp task for that, because afaik no one is actively working on that. Correct me if I am wrong though! :)

Copy link
Collaborator

@ssnl ssnl left a comment

Choose a reason for hiding this comment

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

Can you also add relevant test to test_autograd to make sure that they are differentiable?

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@yya007-zz
Copy link
Author

yya007-zz commented Sep 14, 2018

@ssnl Autograd test was added.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@li-roy li-roy left a comment

Choose a reason for hiding this comment

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

I feel like this is good to go.
Imo, we should accept the logic in python as an intermediate step, but since @ssnl has given more thought into this, I'll defer to you for the final decision.

Copy link
Contributor

@li-roy li-roy left a comment

Choose a reason for hiding this comment

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

please resolve comments

@yya007-zz
Copy link
Author

@li-roy Thank you for the comments. I have resolved those.

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.

ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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.

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

@ssnl
Copy link
Collaborator

ssnl commented Sep 18, 2018

@pytorchbot retest this please

@yya007-zz
Copy link
Author

@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.

li-roy has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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.

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

zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 20, 2018
Summary:
Currently, norm function only supports vector norm. This PR extends vector norm to matrix norm.
Pull Request resolved: pytorch/pytorch#11261

Reviewed By: li-roy

Differential Revision: D9652379

Pulled By: yya007

fbshipit-source-id: 519b3fb80b563c17c56a24675c7b0e46bf5a3a1c
colesbury pushed a commit to colesbury/pytorch that referenced this pull request Sep 21, 2018
Summary:
Spruriously added in pytorch#11261

I had a PR to catch these automatically (pytorch#11279), but it had some issues
passing on some CI environments but not others (e.g. for
`test_nn_group_norm`), any ideas?
Pull Request resolved: pytorch#11916

Differential Revision: D9992065

Pulled By: driazati

fbshipit-source-id: 05cfa8ed9af939e8ffd5827847ee7bfe0be799b2
@ezyang ezyang added the merged label Jun 26, 2019
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.

7 participants