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

TVM generated code is not correct (output_data.h) (AIV-635) #128

Closed
Farzinkh opened this issue Aug 1, 2023 · 2 comments
Closed

TVM generated code is not correct (output_data.h) (AIV-635) #128

Farzinkh opened this issue Aug 1, 2023 · 2 comments

Comments

@Farzinkh
Copy link

Farzinkh commented Aug 1, 2023

Hi, thank you for adding this TVM feature. However, I think the generated code is not what it is supposed to be. Can you help me to tackle this problem?
output_data.h content:
#include <tvmgen_default.h> const size_t output_len = 10; const static __attribute__((aligned(16))) float output_data[10] ={};
The ONNX model I am trying is for the classification of the MNIST dataset with only 2 Dense layers.
And I found another problem in export_onnx_model.py
changing line 12 to:
esp_dl_library_path = os.environ["ESP_DL_PATH"]+'/'
This will solve the error of not finding files when calling this script in another one.

@github-actions github-actions bot changed the title TVM generated code is not correct (output_data.h) TVM generated code is not correct (output_data.h) (AIV-635) Aug 1, 2023
@Auroragan
Copy link

Hi,
Could you give more info about: 'the generated code is not what it is supposed to be'? What is your expected result?

And thanks for the advice.

@Farzinkh
Copy link
Author

Farzinkh commented Aug 4, 2023

Hi,
I don't even know How in the first place I was capable of running export_onnx_model currently I am receiving this error
esp-dl/tools/tvm/python/tvm/relay/ty.py", line 26, in <module> Any = _ffi_api.Any AttributeError: module 'tvm.relay._ffi_api' has no attribute 'Any'

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

3 participants