diff --git a/src/utils.jl b/src/utils.jl index 0942fa5f7..a6255dcc6 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -191,7 +191,6 @@ pairwise(d::PreMetric, x::RowVecs, y::ColVecs) = pairwise(d, ColVecs(permutedims dim(x) = 0 # This is the passes-by-default choice. For a proper check, implement `KernelFunctions.dim` for your datatype. dim(x::AbstractVector) = dim(first(x)) -dim(x::AbstractVector{<:AbstractVector{<:Real}}) = length(first(x)) dim(x::AbstractVector{<:Real}) = 1 function validate_inputs(x, y) diff --git a/test/utils.jl b/test/utils.jl index 42784548a..04cf8da3f 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -163,7 +163,7 @@ @test_throws DimensionMismatch KernelFunctions.validate_inplace_dims(zeros(N2), x) @test_nowarn KernelFunctions.validate_inputs(x, y) - @test_throws DimensionMismatch KernelFunctions.validate_inputs(x⁻, y) + @test_nowarn KernelFunctions.validate_inputs(x⁻, y) @test_nowarn KernelFunctions.validate_inputs(xx, yy) @test_nowarn KernelFunctions.validate_inputs(xx⁻, yy)