title: Error in updating final FC layer for fine tuning AlexNet
body: <p>Hello I have recently started working on fine tuning the Alexnet model for my own dataset.</p>
  
  <p>I want to modify the final two layer as I have only two classes:</p>
  
  <pre><code>net.layers = net.layers(1:end-2); 
  </code></pre>
  
  <p>But when I modify the final FC layer like that and it gives me error.</p>
  
  <pre><code>net.layers{end+1} = struct('type', 'conv',...
  'weights', {{f*randn(1,1,4196,2, 'single'), zeros(1,2,'single')}},...
  'stride', [1 1],...
  'pad', [0 0 0 0]) ;
  Cell contents assignment to a non-cell array object.
  </code></pre>
  
  <p>Anyone, please help me resolve the error</p>
  
  <p>Thanks</p>
  
  <p><strong>UPDATE:</strong>  </p>
  
  <p><a href="https://i.stack.imgur.com/SKfeX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SKfeX.jpg" alt="enter image description here"></a></p>