Skip to content

[quant][graphmode] Move elu to general value ops map#38165

Closed
jerryzh168 wants to merge 8 commits intogh/jerryzh168/308/basefrom
gh/jerryzh168/308/head
Closed

[quant][graphmode] Move elu to general value ops map#38165
jerryzh168 wants to merge 8 commits intogh/jerryzh168/308/basefrom
gh/jerryzh168/308/head

Conversation

@jerryzh168
Copy link
Copy Markdown
Contributor

@jerryzh168 jerryzh168 commented May 8, 2020

Stack from ghstack:

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D21559812

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented May 8, 2020

💊 CI failures summary and remediations

As of commit 445e1cf (more details on the Dr. CI page):


None of the CI failures appear to be your fault 💚



❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_macos_10_13_py3_test (1/1)

Step: "Test" (full log | diagnosis details | 🔁 rerun) ❄️

May 13 16:17:53 AssertionError: 15 not less than or equal to 1e-05 : Expected zero exit code but got -15
May 13 16:17:53 ---------------------------------------------------------------------- 
May 13 16:17:53 Traceback (most recent call last): 
May 13 16:17:53   File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_distributed.py", line 204, in wrapper 
May 13 16:17:53     self._join_processes(fn) 
May 13 16:17:53   File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_distributed.py", line 306, in _join_processes 
May 13 16:17:53     self._check_return_codes(elapsed_time) 
May 13 16:17:53   File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_distributed.py", line 358, in _check_return_codes 
May 13 16:17:53     "Expected zero exit code but got {}".format(first_process.exitcode) 
May 13 16:17:53   File "/Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/torch/testing/_internal/common_utils.py", line 1020, in assertEqual 
May 13 16:17:53     super().assertLessEqual(abs(x - y), atol, message) 
May 13 16:17:53 AssertionError: 15 not less than or equal to 1e-05 : Expected zero exit code but got -15 
May 13 16:17:53  
May 13 16:17:53 ---------------------------------------------------------------------- 
May 13 16:17:53 Ran 121 tests in 978.794s 
May 13 16:17:53  
May 13 16:17:53 FAILED (failures=1, skipped=13) 
May 13 16:17:53  
May 13 16:17:53 Generating XML reports... 
May 13 16:17:53 Generated XML report: test-reports/dist-gloo/TEST-RpcTestWithSpawn-20200513160135.xml 
May 13 16:17:54 Traceback (most recent call last): 
May 13 16:17:54   File "test/run_test.py", line 690, in <module> 

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 19 times.

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
return (%r) )";

// aten::elu
std::string elu = R"(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we make this more compact? If you define a get_prefix_string_fn(aten_op) you could have a function that does:

 std::string generate_op_prefix(std::string aten_op)
        {
           return sprintf("graph(\%a_quant, \%scale,\ %input_scale):
          \%a_dequant = aten::dequantize(\%a_quant)
          \%r = %s(\%a_dequant,  \%scale, \%input_scale\n)",aten_op);
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure, will refactor in future PR

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Copy link
Copy Markdown
Contributor

@vkuzo vkuzo left a comment

Choose a reason for hiding this comment

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

stamping per @jerryzh168 's request

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 1669618.

@facebook-github-bot facebook-github-bot deleted the gh/jerryzh168/308/head branch May 17, 2020 14:18
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary: Pull Request resolved: pytorch#38165

Test Plan: Imported from OSS

Differential Revision: D21559812

fbshipit-source-id: 55bc28d71d0b8a1c33e05bce20a802db1015ea0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants