title: how to convert Dagnetwork to Dagnn class?
body: <p>I wanted to use a pretrained pytorch model for feature extraction in matlab, I saved the model in .onnx file, and then used importONNXNetwork() function to import it in matab, however its being imported in DAG network, and i want to convert it to dagnn.</p>
  <p>code:</p>
  <pre><code>modelfile='vgg.onnx'
  net = importONNXNetwork(modelfile)
  net = dagnn.DagNN.loadobj(net) ;
  net.mode = 'test' ;
  nimages=length(stim);
  features=cell(nimages,1);
  net.conserveMemory=0;
  nL=length(net.layers)-1;
  for i=1:nimages
          bimage_ip=single(stim{i});
          cimage=imresize(bimage_ip,net.meta.normalization.imageSize(1:2));
          cimage = bsxfun(@minus, cimage, net.meta.normalization.averageImage) ;
          %cimage=cimage-ones(1,1,3)*128; % abstract images
          net.eval({'data', cimage})
   
  end
  </code></pre>
  <p>error:
  Unknown data type DAGNetwork for <code>loadobj</code>.</p>