-
Notifications
You must be signed in to change notification settings - Fork 22.1k
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
Fix bug in upgrader generation in mobile #71578
Conversation
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit b3990b1 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages: linux-bionic-py3.7-clang9 / test (noarch, 1, 1, linux.2xlarge) (1/1)Step: "Test" (full log | diagnosis details | 🔁 rerun)
|
This pull request was exported from Phabricator. Differential Revision: D33690113 |
d919b94
to
2e8baf4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please also check CI. Thanks!
namespace c10 { | ||
TypePtr parseType(const std::string& pythonStr); | ||
} // namespace c10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these lines were missing in the codegen, could you help with adding them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant adding them as part of gen_mobile_upgraders.py
#include <ATen/core/ivalue.h> | ||
#include <caffe2/serialize/versions.h> | ||
#include <torch/csrc/jit/mobile/type_parser.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These headers may not be needed, if the previous version work.
def _get_operator_version_map() -> Dict[str, List[_UpgraderEntry]]: ... | ||
|
||
def _get_upgrader_ranges(name: str) -> List[_UpgraderRange]: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for creating an api for it! Very neat
upgrader_info = list(filter(lambda token: token != "", upgrader_entry.upgrader_name.split('_'))) | ||
upgrader_min_version = upgrader_info[2] | ||
upgrader_max_version = upgrader_info[3] | ||
upgrader_ranges = torch._C._get_upgrader_ranges(op_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat. Thank!
This pull request was exported from Phabricator. Differential Revision: D33690113 |
2e8baf4
to
b5174c2
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
b5174c2
to
8e715ac
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
8e715ac
to
7251bfe
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
7251bfe
to
94dee7c
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
94dee7c
to
1e5e443
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
1e5e443
to
f134499
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
This pull request was exported from Phabricator. Differential Revision: D33690113 |
25a97a5
to
09dbe31
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
09dbe31
to
0c89ce4
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
0c89ce4
to
eb2a792
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
eb2a792
to
1e76b2f
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
1e76b2f
to
f239e64
Compare
This pull request was exported from Phabricator. Differential Revision: D33690113 |
f239e64
to
8f2fc25
Compare
Summary: Pull Request resolved: pytorch#71578 Use more robust way of extracting upgrader min and max versions Test Plan: omgitsgreen Reviewed By: cccclai Differential Revision: D33690113 fbshipit-source-id: 5c1f7b90bcd5b57f9984a99ff8f7a7aad1a3c7d8
This pull request was exported from Phabricator. Differential Revision: D33690113 |
8f2fc25
to
b3990b1
Compare
Summary: Pull Request resolved: #71578 Use more robust way of extracting upgrader min and max versions Test Plan: omgitsgreen Reviewed By: cccclai Differential Revision: D33690113 fbshipit-source-id: 79a964acb26d7ca1354e104710a285b8da3f46d1
Summary: Pull Request resolved: pytorch/pytorch#71578 Use more robust way of extracting upgrader min and max versions Test Plan: omgitsgreen Reviewed By: cccclai Differential Revision: D33690113 fbshipit-source-id: 79a964acb26d7ca1354e104710a285b8da3f46d1 (cherry picked from commit 9e316ee)
Summary: Pull Request resolved: pytorch/pytorch#71578 Use more robust way of extracting upgrader min and max versions Test Plan: omgitsgreen Reviewed By: cccclai Differential Revision: D33690113 fbshipit-source-id: 79a964acb26d7ca1354e104710a285b8da3f46d1 (cherry picked from commit 9e316ee)
Summary: Pull Request resolved: pytorch/pytorch#71578 Use more robust way of extracting upgrader min and max versions Test Plan: omgitsgreen Reviewed By: cccclai Differential Revision: D33690113 fbshipit-source-id: 79a964acb26d7ca1354e104710a285b8da3f46d1 (cherry picked from commit 9e316ee)
Summary: Pull Request resolved: pytorch/pytorch#71578 Use more robust way of extracting upgrader min and max versions Test Plan: omgitsgreen Reviewed By: cccclai Differential Revision: D33690113 fbshipit-source-id: 79a964acb26d7ca1354e104710a285b8da3f46d1 (cherry picked from commit 9e316ee)
Summary: Use more robust way of extracting upgrader min and max versions
Test Plan: omgitsgreen
Differential Revision: D33690113