Hello ! I am using nd4j for cyclic workload, I have a nio ByteBuffer that contains all the data but the problem is I have to update the INDArray by creating a new one as
img_nd = Nd4j.create(imgYUVBuffer, YUVimgShape, DataType.FLOAT);
What I want is the INDArray img_nd get automatically updated on updating the ByteBuffer.
How can I achieve this ?