-
Notifications
You must be signed in to change notification settings - Fork 684
introduce dim order tests to op test #2637
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2637
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 83fec01 with merge base 61ddee5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D55227304 |
This pull request was exported from Phabricator. Differential Revision: D55227304 |
2bdfe5e
to
a76de02
Compare
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: D55227304
This pull request was exported from Phabricator. Differential Revision: D55227304 |
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: D55227304
a76de02
to
feb8082
Compare
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
feb8082
to
8fa26a2
Compare
This pull request was exported from Phabricator. Differential Revision: D55227304 |
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
This pull request was exported from Phabricator. Differential Revision: D55227304 |
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
8fa26a2
to
8da0df8
Compare
This pull request was exported from Phabricator. Differential Revision: D55227304 |
8da0df8
to
e831902
Compare
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
e831902
to
43ab353
Compare
This pull request was exported from Phabricator. Differential Revision: D55227304 |
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
43ab353
to
317021f
Compare
This pull request was exported from Phabricator. Differential Revision: D55227304 |
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: https://internalfb.com/D55227304
This pull request was exported from Phabricator. Differential Revision: D55227304 |
317021f
to
fdfc7f5
Compare
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
fdfc7f5
to
914ed3e
Compare
This pull request was exported from Phabricator. Differential Revision: D55227304 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D55227304 |
914ed3e
to
7256f9f
Compare
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Reviewed By: digantdesai, larryliu0820 Differential Revision: D55227304
This pull request was exported from Phabricator. Differential Revision: D55227304 |
7256f9f
to
66292d4
Compare
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: D55227304
Summary: Pull Request resolved: pytorch#2637 This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests. The high levels of sanity check and test will be: 1. the dim order of input and output should be same. 2. the dim order of all input tensors should be same, unless operaotr-specific requirement for some input (e.g. some operator may request some input have to be contiguous, although I haven't found the actual example yet.) 3. make the operator support as much dim order as possible (e,g, if a operator can support both contiguous and channels last, then the sanity check has to make the both input valid.) I also updated `op_abs` in this diff to demonstrate how the sanity check as well as tests will be inserted. Differential Revision: D55227304
This pull request was exported from Phabricator. Differential Revision: D55227304 |
66292d4
to
83fec01
Compare
Summary:
This diff introduces dim order sanity check utils, as well as dim-order related test to operator tests, to help our system maintain its correctness when introducing new dim order ([0, 2, 3, 1]) which we never support before. The goal is checking whether or not every operator support its input's memory format, and using related tests for regular tests.
The high levels of sanity check and test will be:
I also updated
op_abs
in this diff to demonstrate how the sanity check as well as tests will be inserted.Differential Revision: D55227304