Set wrapped layer built in keras Wrappers.

PiperOrigin-RevId: 293407052
Change-Id: I58ec07f651f0d8777f840e366fde739b5049bcc0
This commit is contained in:
Taylor Robie 2020-02-05 11:05:35 -08:00 committed by TensorFlower Gardener
parent b7f8c17030
commit b3eb3455ed

View File

@ -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