I needed to run some parts of the code in GPU using cupy instead of numpy. So, I only made comment out for this line # import numpy as np and used this line ins
I figured I should post this question, even if I have already found a solution, as a Java implementation was not readily available when I searched for it. Usin