We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 129e311 commit 68bf683Copy full SHA for 68bf683
src/batchs.jl
@@ -12,9 +12,9 @@ struct ConcatenatedBatch{T<:AbstractArray}
12
field::T
13
lengths::Vector{Int}
14
function ConcatenatedBatch(field::T, lengths::Vector{Int}) where {T<:AbstractArray}
15
- @assert first(lengths) == 0
16
- @assert issorted(lengths)
17
- @assert last(lengths) == size(field)[end]
+ @assert first(lengths) == 0, "got $lengths"
+ @assert issorted(lengths), "got $lengths"
+ @assert last(lengths) == size(field)[end], "got $lengths, last value is $( size(field)[end])"
18
new{T}(field, lengths)
19
end
20
0 commit comments