-
Notifications
You must be signed in to change notification settings - Fork 22k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on "[PT2E][Quant] Support specifying None for obs_or_fq_ctr in…
… target_dtype_info" It is cleaner for quantizer to say what does not need observation instead of putting fp32 observers. This diff add support for that by checking if target_dtype_info contains none for specific observers and if so skip inserting observers for those. Differential Revision: [D44971357](https://our.internmc.facebook.com/intern/diff/D44971357/) [ghstack-poisoned]
- Loading branch information
Showing
232 changed files
with
6,606 additions
and
3,102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ sympy==1.11.1 | |
unittest-xml-reporting<=3.2.0,>=2.0.0 | ||
xdoctest==1.1.0 | ||
filelock==3.6.0 | ||
sympy==1.11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import argparse | ||
from typing import Any | ||
|
||
from gitutils import get_git_remote_name, get_git_repo_dir, GitRepo | ||
from trymerge import GitHubPR, MERGE_IN_PROGRESS_LABEL | ||
|
||
|
||
def parse_args() -> Any: | ||
parser = argparse.ArgumentParser( | ||
description="Perform actions when a merge workflow is cancelled" | ||
) | ||
parser.add_argument( | ||
"--pr-num", | ||
type=int, | ||
required=True, | ||
help="The PR number to cancel the merge for", | ||
) | ||
return parser.parse_args() | ||
|
||
|
||
def main() -> None: | ||
args = parse_args() | ||
repo = GitRepo(get_git_repo_dir(), get_git_remote_name(), debug=True) | ||
org, project = repo.gh_owner_and_name() | ||
pr_num = args.pr_num | ||
|
||
GitHubPR(org, project, pr_num).remove_label(MERGE_IN_PROGRESS_LABEL) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.