diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0749fd6..1468070 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,6 @@ jobs: fail-fast: false matrix: version: - - "1.9" - "1" # automatically expands to the latest stable 1.x release of Julia - "pre" os: diff --git a/Project.toml b/Project.toml index b50be0d..742ed31 100644 --- a/Project.toml +++ b/Project.toml @@ -24,7 +24,7 @@ OrderedCollections = "1" Random = "1" TestItems = "0.1, 1" Unrolled = "0.1" -julia = "1.9" +julia = "1.10" [extras] Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" diff --git a/src/layers/comparison.jl b/src/layers/comparison.jl index 78bf860..5f5bed5 100644 --- a/src/layers/comparison.jl +++ b/src/layers/comparison.jl @@ -58,6 +58,11 @@ co_vars_minus_var(x; nvars, params...) = co_val_minus_var(x; val = nvars) # Parametric layers +""" + make_comparisons(param::Symbol) + +Generate the comparison functions for the given parameter. +""" make_comparisons(param::Symbol) = make_comparisons(Val(param)) function make_comparisons(::Val{:none}) diff --git a/src/utils.jl b/src/utils.jl index 50cb474..991833e 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -96,6 +96,8 @@ end Application of an operation from the transformation layer. Used to generate more efficient code for all compositions. """ +function tr_in end + @unroll function tr_in(tr, X, x; params...) @unroll for i = 1:length(tr) tr[i](x, @view(X[:, i]); params...)