Skip to content

Commit 64abdb8

Browse files
misc
1 parent b40c9fa commit 64abdb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NN/Utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ def call(self, x):
279279
return x * self._normalization(xhat)
280280
####################################
281281
class CRMLBlock(tf.keras.Model):
282-
def __init__(self, mlp, RML=None, **kwargs):
282+
def __init__(self, mlp=None, RML=None, **kwargs):
283283
super().__init__(**kwargs)
284+
if mlp is None: mlp = lambda x: x
284285
self._mlp = mlp
285286
if RML is None: RML = CResidualMultiplicativeLayer()
286287
self._RML = RML

0 commit comments

Comments
 (0)