MATLAB: Does neural network custom layer is supported by Matlab Coder

MATLABmatlab coderneural network

First, I'd like to know whether or not custom layers in neural network are supported in Matlab Coder ? (I couldn't find anything stated in the documentation)
Second, I'd like to implenet a matrix multipllication layer (A layer which is exacly like tensorflow matrix multiplication from here). I'd like to know if such an implenentation is supported using custom layer (I think it does, but what is the best & easy way to start?)

Best Answer

  • No, MATLAB coder doesn't support code generation for custom layers. The layers supported for code generation are documented here