Skip to content

Commit

Permalink
removed GELU function from current estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
Dingel321 committed Aug 11, 2023
1 parent 625f927 commit 418523c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryo_sbi/inference/models/build_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def build_npe_flow_model(config: dict, **embedding_kwargs) -> nn.Module:
flow=model,
theta_shift=config["THETA_SHIFT"],
theta_scale=config["THETA_SCALE"],
**{"activation": nn.GELU},#partial(nn.LeakyReLU, 0.1), nn.GELU
**{"activation": partial(nn.LeakyReLU, 0.1)}, # TDOD add changeable activation #partial(nn.LeakyReLU, 0.1), nn.GELU
)
print("Training with GELU")

Expand Down

0 comments on commit 418523c

Please sign in to comment.