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

Layer completion interrupt #108

Open
janhildebrand opened this issue Jun 10, 2020 · 1 comment
Open

Layer completion interrupt #108

janhildebrand opened this issue Jun 10, 2020 · 1 comment

Comments

@janhildebrand
Copy link

Hello,

we want to use the k210 on a larger scale and i am currently testing it among other edge devices.
I need to know the exact layer execution times of a pretrained tensorflow model.

I am trying to set a gpio pin to high after a layer completion to measure the execution time of each layer with an oscilloscope.

I see that there is a possibility to enable an interrupt in the layer argument.

I am using nncase to convert my tensorflow model to the kmodel format.
(+ kendryte-standalone-sdk-develop from 16. April 2020)

How can i enable the layer interrupt and which function does this interrupt call.

Thank you very much for your help,
Jan Hildebrand

@tjmc
Copy link

tjmc commented Jun 24, 2020

For what it is worth, I turn on NNCASE_DEBUG

#define NNCASE_DEBUG 0

it will output layer timing statistics. It might be enough.

For example

KPUConv2D: 0.485000ms
KPUConv2D: 0.083000ms
KPUConv2D: 1.441000ms
KPUConv2D: 0.079000ms
KPUConv2D: 1.245000ms
KPUConv2D: 0.079000ms
KPUConv2D: 3.308000ms

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

2 participants