-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Error when training simple Flux model #1777
Comments
What version of Julia, flux and zygote are being used on the two machines? |
I updated my system this morning and now it is not working (same error) even on my office machine. probably, I was running julia 1.6.3 before the update. |
As with any issue, the two things we need are:
For this issue specifically, I find the presence of |
Yeah maybe |
Forgive me if I reported only the first line, but the error looked so strange I thought it would be easily understandable. The full stack is here: An extract of the dataset can be found here: The full code is here: (it's one of the first time I'm trying to use Flux, so the code is probably garbage, and any suggestion other than understanding the error is very welcome) other libraries status is:
|
Thanks, for future reference you can use gists or markdown codeblocks for smaller snippets (including attaching CSV data files). A couple of questions:
|
Thanks for the suggestions about gists and codeblocks, I will definitely use them! |
And it looks like the problem really was |
Glad to managed to solve it! For posterity's sake, MLJBase's |
I'm training a pretty simple model:
shallow_net = Chain(
Dense(18, 256, relu),
Dense(256, 512, relu),
Dense(512, 1024, relu),
Dense(1024, 1)
)
the dataset is a simple Matrix of Float64 (as reported in the error below), I'm using the ADAM optimizer and a dataloader:
train_loader = DataLoader((data=train_X, label=train_y),
batchsize=batch_size,
shuffle=true)
and I'm training using Flux's default train! function and the @epochs macro.
The code was working with no problem on my office machine, but on my home machine I keep getting:
ERROR: Need an adjoint for constructor Base.SkipMissing{Matrix{Float64}}. Gradient is of type Vector{Float64}
I don't get what the problem is (it's literally the same code since I pulled it from a private git repo)
Is it a problem with a new version of Flux?
The two machines are pretty similar and both have an AMD Ryzen 5 CPU and a 2xxx NVIDIA GPU
The text was updated successfully, but these errors were encountered: