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 68bf683 commit c9d6ce0Copy full SHA for c9d6ce0
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, "got $lengths"
16
- @assert issorted(lengths), "got $lengths"
17
- @assert last(lengths) == size(field)[end], "got $lengths, last value is $( 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