Skip to content

Commit

Permalink
restore MLUtils imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Oct 2, 2024
1 parent f61323e commit cd083e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/diffusion_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ struct DatasetLoader{T,N,Trng,Tdevice,Ta,Taux}
training::Bool
end

import MLUtils: numobs, getobs, getobs!
numobs(d::DatasetLoader) = size(d.train_input)[end]

function getobs_orig(d::DatasetLoader,index::Union{AbstractVector,Integer})
Expand Down

0 comments on commit cd083e2

Please sign in to comment.