Skip to content
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

add quantization conv and matmul #10327

Closed
wants to merge 84 commits into from
Closed

add quantization conv and matmul #10327

wants to merge 84 commits into from

Conversation

hjchen2
Copy link
Contributor

@hjchen2 hjchen2 commented Sep 2, 2023

No description provided.

strint and others added 30 commits August 18, 2023 04:48
return failure();
}
} else {
result.replaceAllUsesWith(created_results[num_transposed_result]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

这句是处理什么情况,考虑加个注释?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

如果不全部替换,可能会出现原op的其他输出仍然被消费的情况,最后导致同时有两个同名的op存在

Copy link
Collaborator

@jackalcooper jackalcooper Sep 6, 2023

Choose a reason for hiding this comment

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

可能会出现原op的其他输出仍然被消费的情况

这个是正常的吧,如果这个输出的消费者本来就不在这个NHWC优化的子图

最后导致同时有两个同名的op存在

这个是不是在 AutoNhwcPattern 里面把产生的新 op 的 op_name 改一下更好

Copy link
Contributor Author

@hjchen2 hjchen2 Sep 6, 2023

Choose a reason for hiding this comment

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

那就每个pattern都要改一下,要不你来改一下吧

@hjchen2 hjchen2 requested review from oneflow-ci-bot and removed request for oneflow-ci-bot September 13, 2023 09:28
@hjchen2 hjchen2 closed this Oct 11, 2023
@hjchen2 hjchen2 deleted the dev_int8_conv branch October 11, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants