0

Can anyone tell me if it is possible to use mxnet with matlab on windows? Using the windows packaged releases from https://github.com/dmlc/mxnet/releases, there is no "matlab" directory, which I can see is present in the newer versions, which do not have windows packages.

is there a way to get the best of both worlds?

Kaare
  • 531
  • 1
  • 7
  • 26

2 Answers2

1

The matlab directory is directly on the repo not as a release:

https://github.com/dmlc/mxnet/tree/master/matlab

Maybe you can compile it for windows using cygwin or msys2, On the documentation it say that it was tested for matlab version:

Matlab binding has been tested with the following version:

R2016b (9.1.0.441655) 64-bit (glnxa64)

Which is a linux version; I think that it should be posible to reproduce the instructions in the readme to make it work woth cygwin or msys2 with windows

anquegi
  • 11,125
  • 4
  • 51
  • 67
1

Yes, it works, even thought I doubt it has been extensively tested. Their Matlab wrapping assumes the library lies in the lib directory, which is inconsistent with their python wrapping that assumes it lies in the build directory. So you will either have to copy libraries or change paths in callmxnet.m. Also, the demo needs data that is currently fetched by a bash script -- not very Windows friendly but it runs flawlessly with MSYS2.

IMHO the Matlab demo is currently more a proof-of-concept than a real Matlab wrapper. It is nowhere near the python bindings.

P-Gn
  • 23,115
  • 9
  • 87
  • 104