We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40c9fa commit 64abdb8Copy full SHA for 64abdb8
NN/Utils.py
@@ -279,8 +279,9 @@ def call(self, x):
279
return x * self._normalization(xhat)
280
####################################
281
class CRMLBlock(tf.keras.Model):
282
- def __init__(self, mlp, RML=None, **kwargs):
+ def __init__(self, mlp=None, RML=None, **kwargs):
283
super().__init__(**kwargs)
284
+ if mlp is None: mlp = lambda x: x
285
self._mlp = mlp
286
if RML is None: RML = CResidualMultiplicativeLayer()
287
self._RML = RML
0 commit comments