Closed sjsdfg closed 6 years ago
I have reproduced this error on 1.0.0-alpha.
int miniBatch = input.size(0); The 'input' is null there.
I found a way to run this example: 1) Comment out the line: Map<String, INDArray> activationsCombMap = vgg16FineTune.feedForward(combination, true); 2) Add these codes instead: INDArray[] input = new INDArray[] { combination }; boolean train = true; boolean clearInputs = false; Map<String, INDArray> activationsCombMap = vgg16FineTune.feedForward(input, train, clearInputs);
@liweigu Thank you for fixing the issue. Appreciated.
that is magic. when i debug this program. after line 131, the inputs
is still in vgg16FineTune
.
how can i insert a picture to show that?
when i run this example NeuralStyleTransfer i get an NPE.
the exception is caused by 134 line in ConvolutionLayer.java:134 the content is
int miniBatch = this.input.size(0);
what causes this? that value should be 1.