Skip to content

Commit

Permalink
Fixed typo. Was calling the same routine recursively without doing an…
Browse files Browse the repository at this point in the history
…ything.
  • Loading branch information
benedict-96 committed Oct 20, 2023
1 parent 009a17c commit 9e4d9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data_loader/data_loader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ function loss(model::Union{Chain, AbstractExplicitLayer}, ps::Union{Tuple, Named
end

function loss(model::Chain, ps::Tuple, dl::DataLoader{T, BT, Nothing}) where {T, BT<:AbstractArray{T, 3}}
loss(model, ps, dl)
loss(model, ps, dl.input)
end

function loss(model::Chain, ps::Tuple, dl::DataLoader{T, BT, Nothing}) where {T, BT<:AbstractArray{T, 2}}
loss(model, ps, dl)
loss(model, ps, dl.input)

Check warning on line 107 in src/data_loader/data_loader.jl

View check run for this annotation

Codecov / codecov/patch

src/data_loader/data_loader.jl#L106-L107

Added lines #L106 - L107 were not covered by tests
end

@doc raw"""
Expand Down

0 comments on commit 9e4d9d1

Please sign in to comment.