Skip to content

Commit d5f18db

Browse files
authored
Loosen index restriction (#59)
1 parent dcaf0b9 commit d5f18db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ stored as a compact `N == M-1`-dimensional array of indices.
88
Typically constructed by [`onehot`](@ref) and [`onehotbatch`](@ref).
99
Parameter `I` is the type of the underlying storage, and `T` its eltype.
1010
"""
11-
struct OneHotArray{T<:Integer, N, var"N+1", I<:Union{T, AbstractArray{T, N}}} <: AbstractArray{Bool, var"N+1"}
11+
struct OneHotArray{T, N, var"N+1", I<:Union{T, AbstractArray{T, N}}} <: AbstractArray{Bool, var"N+1"}
1212
indices::I
1313
nlabels::Int
1414
end

0 commit comments

Comments
 (0)