Deep-Learning-and-Scientific-Computing-with-R-torch icon indicating copy to clipboard operation
Deep-Learning-and-Scientific-Computing-with-R-torch copied to clipboard

Minor inconsistency in 3.2.1 - [ CPUFloatType{5} ] should read [ CUDALongType{5} ]

Open FvD opened this issue 1 year ago • 0 comments

Thank you for writing and sharing this great book.

I noticed a minor inconsistency in 3.2.1 Tensors from values. Where it currently reads:

Analogously, the default device is the CPU; but we can also create a tensor that, right from the outset, is located on the GPU:

torch_tensor(1:5, device = "cuda")

torch_tensor 1 2 3 4 5 [ CPUFloatType{5} ]

the output should read: [ CUDALongType{5} ].

FvD avatar Mar 30 '24 13:03 FvD