Closed believeitmyway closed 4 years ago
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.
Amalgamation is still available in v1.x.
In terms of generating a single binary to link to that minimizes dependency, you could use -DMXNET_BUILD_SHARED_LIBS=OFF
to build static library of mxnet with .a
extension, link to it, and strip all symbols that weren't used. On linux, you can use strip --strip-unneeded
on your final library so file for this purpose.
Thank you so much. I have another question. The URL below states that we can also remove the dependency on BLAS. Is there any procedure for that?
I think that comment may be outdated. BLAS functions include accelerated gemm which is quite essential to deep learning. I would recommend to always choose a BLAS library in any case.
I understand that. Thank you!
The amalgamation folder seems to disappear from the repo, is it no longer supported? I want to minimize the dependency and convert it to a single file. Is there another way?