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

[onert] Introduce DepthwiseConv2d op for training #12382

Closed
3 tasks done
Tracked by #12325
jyoungyun opened this issue Dec 28, 2023 · 2 comments
Closed
3 tasks done
Tracked by #12325

[onert] Introduce DepthwiseConv2d op for training #12382

jyoungyun opened this issue Dec 28, 2023 · 2 comments

Comments

@jyoungyun
Copy link
Contributor

jyoungyun commented Dec 28, 2023

What

Let's introduce DepthwiseConv2d gradient kernel for training.

For #12325

Draft #12392

Task

@jyoungyun
Copy link
Contributor Author

jyoungyun commented Jan 11, 2024

Performance check

  • input: {100,28,28,1}, kernel: {32,32}

using eigen thread

[ backwardFloat32] backpropInput time = 8482
[ backwardFloat32] backpropFilter time = 2020
[    backward    ] backward time = 10560

tensorflow ref kernel

[ backwardFloat32] backpropInput time = 2082
[ backwardFloat32] backpropFilter time = 1995
[    backward    ] backward time = 4119
  • input: {10,112,112,32}, kernel: {1,3,3,32}
InputGradExpected time = 40913 <- ref kernel
backpropInput time = 2839 <- using thread
FilterGradExpected time = 37948 <- ref kernel
backpropFilter time = 3540 <- using thread
input gradient ref kernel using thread diff
input(28,28,1) 2082 8482 6400 up
input(112,112,32) 40913 2839 38074 down
filter gradient ref kernel using thread diff
kernel(32,32,1) 1995 2020 25 up
kernel(3,3,32) 37948 3540 33937 down

@jyoungyun
Copy link
Contributor Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant