8

Bug introduced in 11.0.0 and fixed via paclet update


The Wolfram Mathematica site provides this example.

I have copied and pasted into a notebook. The resource is reached and correctly sampled.

However, the following does not run.

convnet = 
 NetChain[{ConvolutionLayer[20, {5, 5}], ElementwiseLayer[Ramp], 
   PoolingLayer[{2, 2}, {2, 2}], ConvolutionLayer[50, {5, 5}], 
   ElementwiseLayer[Ramp], PoolingLayer[{2, 2}, {2, 2}], 
   FlattenLayer[], DotPlusLayer[500], ElementwiseLayer[Ramp]}, 
  "Input" -> NetEncoder[{"Image", {32, 32}}]]

The following error is produced:

enter image description here

Apologies for the size.

Have other users experience the same error?

(I am on Windows 10).

Karsten7
  • 27,448
  • 5
  • 73
  • 134
ubpdqn
  • 60,617
  • 3
  • 59
  • 148

1 Answers1

11

This is actually a bug in a separate paclet that corrupts kernel state. It happens to show up here in neural networks. It has been fixed and a patch issued, your local install should acquire the update in time, but you should be able to force an update by running PacletUpdate["Streaming"].

In the meantime (or if that doesn't work for you), you can avoid this issue by running NetChain; on a fresh kernel (i.e. Quit) before running the example code.

Taliesin Beynon
  • 10,639
  • 44
  • 51