-
Notifications
You must be signed in to change notification settings - Fork 10
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
Eror when calcualte gradients with zygote #75
Comments
Does OMEinsum support AMD at all? TensorCast should in principle support everything. It is by default as lazy as possible, and hence returns things like Base.ReshapedArray, and some GPU things have trouble working through these wrappers. Replacing |
yes. i personally added suport to it |
ywah. i did that (as i was saying on salck) to directly get arrays an not .ReshapedArray |
Sorry the code does have Can you figure out what operation is causing the problem? There are 4 (I cannot run this locally) |
Actually yes v /= (h * w) |
i get the folowing error when i try to calcualte gradients:
ERROR: Scalar indexing is disallowed.
Invocation of getindex resulted in scalar indexing of a GPU array.
This is typically caused by calling an iterating implementation of a method.
Such implementations do not execute on the GPU, but very slowly on the CPU,
and therefore should be avoided.
If you want to allow scalar iteration, use
allowscalar
or@allowscalar
to enable scalar iteration globally or for the operations in question.
Stacktrace:
type of q is RocArry on inference
but it is Base.ReshapedArray{Float32, 4, TransmuteDims.TransmutedDimsArray{Float32, 5, (3, 1, 2, 4, 5), (2, 3, 1, 4, 5), ROCArray{Float32, 5, AMDGPU.Runtime.Mem.HIPBuffer}}, NTuple{4, Base.MultiplicativeInverses.SignedMultiplicativeInverse{Int64}}}
on calculating gradients
The text was updated successfully, but these errors were encountered: