deepC icon indicating copy to clipboard operation
deepC copied to clipboard

How to embed the weights into the library?

Open monkbai opened this issue 4 years ago • 3 comments

So far the compiled library seems to do not contain weights, is it possible to embed the weights into the binary?

monkbai avatar Jan 04 '21 10:01 monkbai

Thank you so much for filing the issue. We will look at it and take appropriate action as soon as possible.' first issue

github-actions[bot] avatar Jan 04 '21 10:01 github-actions[bot]

weights are part of library and header file.

Can you be more specific on how do you know if the compiled library does not contain weights?

Also, let us know what you find in https://github.com/apache/tvm/issues/7170 ?

srohit0 avatar Jan 06 '21 00:01 srohit0

If I follow the steps described in the video you provided and compile the onnx model under the directory with command compile-onnx, it will generate a cpp file and *.weight files, it looks like the weights are read at runtime.

As for tvm, I haven't succeeded to embed weights in binary so far, but they provided some advice, maybe you can follow the discussion here.

monkbai avatar Jan 06 '21 05:01 monkbai