Skip to content

Commit

Permalink
Merge pull request #282 from cpfiffer/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
darsnack authored Jul 11, 2023
2 parents ba63964 + 82723fa commit ddb3a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encodings/onehot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function checkblock(block::OneHotTensorMulti{N}, a::AbstractArray{T, M}) where {
return N + 1 == M && last(size(a)) == length(block.classes)
end

function mockblock(block::OneHotTensorMulti{0}) where {N}
function mockblock(block::OneHotTensorMulti{0})
labelblock = LabelMulti(block.classes)
return encode(OneHot(), Validation(), labelblock, mockblock(labelblock))
end
Expand Down

0 comments on commit ddb3a98

Please sign in to comment.