MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Inner

Class Inner

tensorflow/python/keras/model_subclassing_test_util.py:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 5

get_nested_model_3Function · 0.70
OuterMethod · 0.50
FooMethod · 0.50
BarMethod · 0.50
OuterMethod · 0.50

Calls

no outgoing calls

Tested by 5

get_nested_model_3Function · 0.56
OuterMethod · 0.40
FooMethod · 0.40
BarMethod · 0.40
OuterMethod · 0.40