Making Deep learning Layer : 1D conv like [1 25] filter

hello,
I am author of gCNN method,
i used matconvnet toolbox, but i want to adapt matlab's own toolbox,
but i have had many trouble with making new class, if someone help me, i make a great speed of development...
  1. i found, Define Custom Deep Learning Layer - "https://kr.mathworks.com/help/deeplearning/ug/define-custom-deep-learning-layer.html"
  2. so, i do make a new convolutionLayer using already exist class like Convolution2D.m
  3. my list of class below
* Class location : /Applications/MATLAB_R2019a.app/toolbox/nnet/cnn/+nnet/+internal/+cnn/+layer/
1) geometryConvolution2D.m
2) geometryMaxPooling2D.m
* Class location : /Applications/MATLAB_R2019a.app/toolbox/nnet/cnn/+nnet/+internal/+cnn/+layer/+util
3) geometryConvolution2DGPUStrategy.m
4) geometryConvolution2DHostStridedConvStrategy.m
1) geometryConvolution2D.m :: doForward (in geometryConvolution2D.m > forward > forward normal)
function [Z, memory] = predictNormal( this, X )
[weights0,bias0] = this.QuantizationMethod.remapped(this.Weights.Value,this.Bias.Value);
% Data preprocessing
X_ = mnet_make25dot_interpolation(X); % my owen function to sampling data N x 1 to N x 25 // conv 1D filter 1x25 then, get N x 1 again
Z = this.doForward(X_,weights0,bias0);
%
memory = [];
end
my bottleneck is here...
% Set Hyper-parameters
this.FilterSize = [1, filterSize(2) ]; % use same code :: convolution2dLayer_sb(25, 20, 'Name', 'Gconv_1') % custom Layer
but it does not work... error to check function in "trainNetwork.m"
% Infer parameters of layers
isaDAG = iHaveDAGNetwork(layersOrGraph);
analyzedLayers = iInferParameters(layersOrGraph); % !!!!!!!!!here!!!!!!!!!
please help me

1 commentaire

Could you provide the code files and the error message that you received...

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Commenté :

le 5 Août 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by