From 1db5273c86b9f7031db86ec8e59e1335a31fff96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Wed, 14 Feb 2024 21:21:32 +0200 Subject: [PATCH 1/2] Add input and output size functions --- lib/LuxCore/src/LuxCore.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/LuxCore/src/LuxCore.jl b/lib/LuxCore/src/LuxCore.jl index ae5e66cbe..9b04e4479 100644 --- a/lib/LuxCore/src/LuxCore.jl +++ b/lib/LuxCore/src/LuxCore.jl @@ -93,6 +93,20 @@ statelength(nt::Union{NamedTuple, Tuple}) = length(nt) == 0 ? 0 : sum(statelengt statelength(a::AbstractArray) = length(a) statelength(::Any) = 1 +""" + inputsize(layer) + +Return the input size of the layer. +""" +function inputsize end + +""" + outputsize(layer) + +Return the output size of the layer. +""" +function outputsize end + """ setup(rng::AbstractRNG, layer) From a14133dbc2dfcef4f6e5488ea7d66f41b04b1b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Wed, 14 Feb 2024 21:46:54 +0200 Subject: [PATCH 2/2] bump version --- lib/LuxCore/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LuxCore/Project.toml b/lib/LuxCore/Project.toml index 52391a52c..58ef7476a 100644 --- a/lib/LuxCore/Project.toml +++ b/lib/LuxCore/Project.toml @@ -1,7 +1,7 @@ name = "LuxCore" uuid = "bb33d45b-7691-41d6-9220-0943567d0623" authors = ["Avik Pal and contributors"] -version = "0.1.7" +version = "0.1.8" [deps] Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"