| 147 | x = keras.layers.BatchNormalization()(x) |
| 148 | |
| 149 | class Inner(keras.Model): |
| 150 | |
| 151 | def __init__(self): |
| 152 | super(Inner, self).__init__() |
| 153 | self.dense1 = keras.layers.Dense(32, activation='relu') |
| 154 | self.dense2 = keras.layers.Dense(5, activation='relu') |
| 155 | self.bn = keras.layers.BatchNormalization() |
| 156 | |
| 157 | def call(self, inputs): |
| 158 | x = self.dense1(inputs) |
| 159 | x = self.dense2(x) |
| 160 | return self.bn(x) |
| 161 | |
| 162 | test_model = Inner() |
| 163 | x = test_model(x) |
no outgoing calls