Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanradev93 committed Jun 28, 2024
1 parent 80695e1 commit eae9814
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bayesflow/networks/mlp/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ def build(self, input_shape):
# build nested layers with forward pass
self.call(keras.ops.zeros(input_shape))

def call(self, inputs: Tensor, **kwargs) -> Tensor:
def call(self, x: Tensor, **kwargs) -> Tensor:
for layer in self.res_blocks:
_kwargs = {}
if layer._call_has_training_arg:
_kwargs["training"] = kwargs.get("training", False)
outputs = layer(inputs, **kwargs)
inputs = outputs
return outputs
x = layer(x, training=kwargs.get("training", False))
return x

0 comments on commit eae9814

Please sign in to comment.