No output arrays were provided

Hi,

I cannot think of a reason why the following line:

        INDArray concatenatedData = Nd4j.concat(1,
                trainData.next().getFeatures().get(all(), all(), interval(0, trainData.next().getFeatures().size(1)), interval(1, trainData.next().getFeatures().size(2))),
                trainData.next().getFeatures().get(all(), all(), all(), interval(1, trainData.next().getFeatures().size(2)))
        );

causes the following error:
Op name concat - no output arrays were provided and calculateOutputShape failed to execute

Is it because the INDArray concatenatedData was not initialized?

Thanks

@adonnini check if the features were null somewhere. There’s no “init” anywhere there. The array either exists or it doesn’t.