MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / pippin_28_28

Function pippin_28_28

tools/tensorflow-quantization/tests/network_pool.py:263–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261
262
263def pippin_28_28():
264 input_img = tf.keras.layers.Input(shape=(28, 28))
265 x = tf.keras.layers.Reshape(target_shape=(28, 28, 1))(input_img)
266 x = tf.keras.layers.Conv2D(filters=12, kernel_size=(3, 3))(x)
267 x = relu_bn(x)
268 x = tf.keras.layers.Conv2D(filters=24, kernel_size=(3, 3))(x)
269 x = relu_bn(x)
270 x = identity_block_bn(x)
271 x = identity_block_short_conv_bn(x)
272 x = tf.keras.layers.MaxPooling2D(pool_size=(2, 2))(x)
273 x = tf.keras.layers.Flatten()(x)
274 x = tf.keras.layers.Dense(100)(x)
275 x = tf.keras.layers.ReLU()(x)
276 x = tf.keras.layers.Dense(10)(x)
277 return tf.keras.Model(input_img, x, name="Pippin")

Calls 3

relu_bnFunction · 0.85
identity_block_bnFunction · 0.85