dmlc / MXNet.cpp

C++ interface for mxnet
Other
114 stars 78 forks source link

Use static variable to get function once #23

Closed tqchen closed 8 years ago

tqchen commented 8 years ago

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

zhangchen-qinyinghua commented 8 years ago

OK.

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

zhangchen-qinyinghua commented 8 years ago

Done. https://github.com/dmlc/MXNet.cpp/pull/24