Skip to content

Commit

Permalink
fix: change in init
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Sep 6, 2024
1 parent c548e64 commit 3ccb1cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layers/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function Dense(mapping::Pair{<:IntegerType, <:IntegerType}, activation=identity;
end

function Dense(in_dims::IntegerType, out_dims::IntegerType, activation=identity;
init_weight=glorot_uniform, init_bias=zeros32, use_bias::BoolType=True())
init_weight=nothing, init_bias=nothing, use_bias::BoolType=True())
return Dense(activation, in_dims, out_dims, init_weight, init_bias, static(use_bias))
end

Expand Down Expand Up @@ -506,7 +506,7 @@ end

function Bilinear(
((in1_dims, in2_dims), out)::Pair{<:Tuple, <:IntegerType}, activation=identity;
init_weight=glorot_uniform, init_bias=zeros32, use_bias::BoolType=True())
init_weight=nothing, init_bias=nothing, use_bias::BoolType=True())
return Bilinear(
activation, in1_dims, in2_dims, out, init_weight, init_bias, static(use_bias))
end
Expand Down

0 comments on commit 3ccb1cc

Please sign in to comment.