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

example use other input #99

Open
lzlwakeup opened this issue Jul 28, 2022 · 1 comment
Open

example use other input #99

lzlwakeup opened this issue Jul 28, 2022 · 1 comment

Comments

@lzlwakeup
Copy link

In cONNXr/examples/example1/example.c
Onnx__TensorProto *inp0set0 = openTensorProtoFile("../test/mnist/test_data_set_0/input_0.pb");
Onnx__TensorProto *out0set0 = openTensorProtoFile("../test/mnist/test_data_set_0/output_0.pb");
For test, this can be save image with .pb for read.

I want to port connx on MCU, chip only get data_buf[high][wide][channel], if use connxr, I have to convert it to pb.
Modifying the data interface is very painful!
Like model read, I like [ xxd -i xxx.onnx ] for model in file .c/.h, which can be read directly, its great.

How to put data[][][] directly into Onnx__TensorProto? or other Interface for model input?

@lzlwakeup
Copy link
Author

I get xxd how to load input. Its my problem.

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