What is the precise specification of `broadcast` in ND4j / DL4j?
问题 What is the precise definition of INDArray.broadcast(long...) in ND4j? The description of both methods only says "Broadcasts this ndarray to be the specified shape", and does not explain the requirements for acceptable shapes to be broadcast. The following code (meant to broadcast an ndarray to a shape of an extra first dimension of length 3) does not work: INDArray array = Nd4j.create(new double[] {1.,2.,3.,4.}, new int[] {2,2}, 'c'); System.out.println("array: " + array); System.out.println