Skip to content
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

no method matching copyto!(::KnetArray{Float32,4}, ::AutoGrad.Result{KnetArray{Float32,4}}) #651

Open
denizyuret opened this issue Dec 27, 2020 · 0 comments

Comments

@denizyuret
Copy link
Owner

denizyuret commented Dec 27, 2020

@barisbatuhan says: I have implemented a residual block myself in my project and I am having an issue in the residual block. If I only predict by giving an input (no backward pass), the method works without an issue. However, if training is enabled, then I am getting this error:

LoadError: MethodError: no method matching copyto!(::KnetArray{Float32,4}, ::AutoGrad.Result{KnetArray{Float32,4}})

The code piece I am getting error is given below:
https://drive.google.com/file/d/1jP-QxsWGvIUHo3FKiSmNzt5PChY4Y_Be/view?usp=sharing

Here is the error log:
https://drive.google.com/file/d/1zwGZQTdFTBXoy_acYT2G-o2Bx57Q6qzn/view?usp=sharing

The workaround of using + instead of .+ works, but we should fix .+ as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant