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

Segmentation fault when calling copy #19

Closed
baggepinnen opened this issue Sep 22, 2018 · 1 comment
Closed

Segmentation fault when calling copy #19

baggepinnen opened this issue Sep 22, 2018 · 1 comment

Comments

@baggepinnen
Copy link
Contributor

using Zygote, LinearAlgebra
x        = randn(3)             # Input
v        = randn(3)             # Vector
H        = randn(3,3); H = H+H' # Hessian
f(x)     = 0.5*(copy(x')*(H*x))
f'(x) # Segmentation fault
using Zygote, LinearAlgebra
x        = randn(3)             # Input
v        = randn(3)             # Vector
H        = randn(3,3); H = H+H' # Hessian
f(x)     = 0.5*(x'*(H*x))
f'(x) #  No segmentation fault
@MikeInnes
Copy link
Member

I didn't see the segfault on a simpler example, but hopefully that fixes your example anyway.

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

2 participants