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

Fix autoprof when no kernel, and fix input shapes #8320

Merged
merged 6 commits into from
May 27, 2022

Conversation

daquexian
Copy link
Contributor

  1. autoprof 支持没有 kernel 的 api,这个时候只显示 cpu end-to-end 的时间:
    image

  2. 修改已有测试的 input shape,和 resnet 中的 shape 保持一致

daquexian added 2 commits May 27, 2022 10:20
Signed-off-by: daquexian <daquexian566@gmail.com>
Signed-off-by: daquexian <daquexian566@gmail.com>
@Flowingsun007
Copy link
Contributor

Flowingsun007 commented May 27, 2022

对于没有 kernel 的op,”cpu end-to-end 的时间“,此时测量的起始位置是?(普通kernel应该是LocalCallOpKernel包裹的这段范围?

@daquexian
Copy link
Contributor Author

对于没有 kernel 的op,”cpu end-to-end 的时间“,此时测量的起始位置是?(普通kernel应该是LocalCallOpKernel包裹的这段范围?

以 reshape 为例是 python api flow.reshape(x, shape) 整体的时间

@daquexian daquexian requested a review from oneflow-ci-bot May 27, 2022 02:41
@daquexian daquexian enabled auto-merge (squash) May 27, 2022 02:41
@github-actions
Copy link
Contributor

Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally.

@github-actions
Copy link
Contributor

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/8320/

@github-actions
Copy link
Contributor

CI failed when running job: cpu-module. PR label automerge has been removed

@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot May 27, 2022 13:43
@github-actions
Copy link
Contributor

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/8320/

@daquexian daquexian merged commit ec74c56 into master May 27, 2022
@daquexian daquexian deleted the fix_autoprof_when_no_kernel branch May 27, 2022 14:26
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.

4 participants