Skip to content

Float64 conversion on GPU device #998

Answered by avik-pal
IvanBioli asked this question in Q&A
Discussion options

You must be logged in to vote

Not yet, see https://github.com/LuxDL/MLDataDevices.jl/issues/61.

But if you pass in MLDataDevices.default_device_rng(dev) to the initialization functions, it will directly generate the parameters on GPU https://lux.csail.mit.edu/stable/api/Building_Blocks/WeightInitializers#Supported-RNG-Types-WeightInit. Combine it with setting the precision to Float64 to the init_* functions and you will get the desired behavior. A bit inconvenient currently but we should fix it...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IvanBioli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants