-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TPA-LSTM trains slower on GPU than on CPU #15
Comments
Probably open an issue on Flux.jl with an MWE? |
Which issue are you referring to? The fact that |
Both? I'm happy to help with network architectures as well. Btw, did you check that we added a reference to this repo on the flux site https://fluxml.ai/ecosystem.html#advanced-models |
This should address issue #15. Update of Flux to newer version stops GPU from segfaulting when writing to a `Zygote.Buffer`.
Note to myself: MWE for using Flux
inp = rand(Float32, 137, 10, 1000) |> gpu
B = Flux.Zygote.Buffer(inp, 137,9,1000)
t = 1
x = inp[:,t,:]
B[:,t,:] = x |
Apparently, the construction with
Flux.unstack
andFlux.stack
is much slower than the 'slow'Zygote.Buffer
. The latter cannot be used on the GPU due to missing support for array mutation.The text was updated successfully, but these errors were encountered: