dmlc/MXNet.cpp

Use static variable to get function once

Closed this issue · 2 comments

e.g. in https://github.com/dmlc/MXNet.cpp/blob/master/include/mxnet-cpp/ndarray.hpp#L59

Change function handle to static, and use a first time initialize strategy, so there is no need to get the function again and save this overhead

OK.

I am considering an update of MXNET.cpp these days.