Skip to content

Commit 06ec5aa

Browse files
committed
fix: fixed depreciation warning
1 parent 3c948eb commit 06ec5aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/models.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function select_and_preprocess(
1111
cutoff_radius)::StructVector{
1212
Sphere{T}, @NamedTuple{center::Vector{Point3{T}}, r::Vector{T}}, Int64}
1313
end |> Batch{Vector{StructVector{
14-
Sphere{T}, @NamedTuple{center::Vector{Point3{T}}, r::Vector{T}}, Int64}}}
14+
Sphere{T}, @NamedTuple{center::Vector{Point3{T}}, r::Vector{T}}, Int64}}}
1515
preprocessing((point, neighboord))
1616
end
1717

@@ -32,7 +32,7 @@ function general_angular_dense(main_chain, secondary_chain; name::String,
3232
function add_van_der_waals_channel(main_chain)
3333
Parallel(vcat,
3434
main_chain,
35-
WrappedFunction((x -> Float32.(x)) is_in_van_der_waals))
35+
WrappedFunction{:direct_call}((x -> Float32.(x)) is_in_van_der_waals))
3636
end
3737
Chain(PreprocessingLayer(Partial(select_and_preprocess; cutoff_radius)),
3838
main_chain |> (van_der_waals_channel ? add_van_der_waals_channel : identity),
@@ -51,7 +51,7 @@ function tiny_angular_dense(; van_der_waals_channel = false, kargs...)
5151
Parallel(.*,
5252
Chain(Dense(6 => 7, elu),
5353
Dense(7 => 4, elu)),
54-
Lux.WrappedFunction(scale_factor)
54+
Lux.WrappedFunction{:direct_call}(scale_factor)
5555
),
5656
Chain(
5757
BatchNorm(4 + van_der_waals_channel),
@@ -67,7 +67,7 @@ function light_angular_dense(; van_der_waals_channel = false, kargs...)
6767
Parallel(.*,
6868
Chain(Dense(6 => 10, elu),
6969
Dense(10 => 5, elu)),
70-
Lux.WrappedFunction(scale_factor)
70+
Lux.WrappedFunction{:direct_call}(scale_factor)
7171
),
7272
Chain(
7373
BatchNorm(5 + van_der_waals_channel),
@@ -84,7 +84,7 @@ function medium_angular_dense(;
8484
Parallel(.*,
8585
Chain(Dense(6 => 15, elu),
8686
Dense(15 => 10, elu)),
87-
Lux.WrappedFunction(scale_factor)
87+
Lux.WrappedFunction{:direct_call}(scale_factor)
8888
),
8989
Chain(
9090
BatchNorm(10 + van_der_waals_channel),

0 commit comments

Comments
 (0)