Is there a way to create NDArrays in DL4J so that the operations are done on GPU ?
For example in pytorch,
cuda0 = torch.device('cuda:0')
x = torch.tensor([1., 2.], device=cuda0)
I cannot find a way to specify a back-end (cpu
or gpu
) if my system is equipped with a GPU ?