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

Resolve issue around broken tests for optimiser state on GPU #87

Open
ablaom opened this issue Feb 23, 2021 · 0 comments
Open

Resolve issue around broken tests for optimiser state on GPU #87

ablaom opened this issue Feb 23, 2021 · 0 comments

Comments

@ablaom
Copy link
Collaborator

ablaom commented Feb 23, 2021

context: #86.

The following, which passes on the CPU, fails on the GPU for reasons I do not understand. It corresponds to the tests marked as "broken" at time of posting on buildkite CI.


           accel=CUDALibs()   # passing for CPU1()

            using MLJBase, MLJFlux
            X, y = make_regression()
            model = NeuralNetworkRegressor(accleration=accel) 
            
             model.epochs = 1
             mach = machine(model, X, y);

             # two epochs in stages:
             Random.seed!(123)
             fit!(mach, verbosity=0);
             model.epochs = model.epochs + 1
             fit!(mach, verbosity=0);
             l1 = MLJBase.report(mach).training_losses[end]

             # two epochs in one go:
             Random.seed!(123)
             fit!(mach, verbosity=1, force=true)
             l2 = MLJBase.report(mach).training_losses[end]

             @test l1 ≈ l2

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