Set wrapped layer built
in keras Wrappers.
PiperOrigin-RevId: 293407052 Change-Id: I58ec07f651f0d8777f840e366fde739b5049bcc0
This commit is contained in:
parent
b7f8c17030
commit
b3eb3455ed
@ -56,6 +56,7 @@ class Wrapper(Layer):
|
||||
def build(self, input_shape=None):
|
||||
if not self.layer.built:
|
||||
self.layer.build(input_shape)
|
||||
self.layer.built = True
|
||||
self.built = True
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user