Skip to content

Commit 2f71bbf

Browse files
committed
refactor: default activation to tanh
1 parent 858f3d1 commit 2f71bbf

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
99
LuxCore = "bb33d45b-7691-41d6-9220-0943567d0623"
1010
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1111
ModelingToolkitStandardLibrary = "16a59e39-deab-5bd0-87e4-056b12336739"
12-
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1312
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1413
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
1514

@@ -22,7 +21,6 @@ Lux = "0.5.32"
2221
LuxCore = "0.1.14"
2322
ModelingToolkit = "9.9.0"
2423
ModelingToolkitStandardLibrary = "2.6"
25-
NNlib = "0.9"
2624
Optimization = "3.22"
2725
OptimizationOptimisers = "0.2"
2826
OrdinaryDiffEq = "6.74"

src/UDEComponents.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using Symbolics: Symbolics, @register_array_symbolic, @wrapped
66
using LuxCore: stateless_apply
77
using Lux: Lux
88
using Random: Xoshiro
9-
using NNlib: softplus
109
using ComponentArrays: ComponentArray
1110

1211
export create_ude_component, multi_layer_feed_forward

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function multi_layer_feed_forward(input_length, output_length; width::Int = 5,
2-
depth::Int = 1, activation = softplus, disable_optimizations = false)
2+
depth::Int = 1, activation = tanh, disable_optimizations = false)
33
Lux.Chain(Lux.Dense(input_length, width, activation),
44
[Lux.Dense(width, width, activation) for _ in 1:(depth)]...,
55
Lux.Dense(width, output_length); disable_optimizations)

0 commit comments

Comments
 (0)