Convert NDArray to 3D float Java array

I converted 3D Java array to NDArray for neural network prediction. After prediction, I tried to find a way to convert NDArray (rank=3) to a 3D float Java array, but only found this:

float[][] toFloatMatrix()

Is there any function/script to convert back to 3D Java array?


@FanDev you’ll have to use a for loop manually. We aren’t going to implement variants for every variant. That method exists because matrices are common.

1 Like