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

Function frodo_32_32

tools/tensorflow-quantization/tests/network_pool.py:93–110  ·  view source on GitHub ↗

Dummy network with resnet like architecture.

()

Source from the content-addressed store, hash-verified

91
92
93def frodo_32_32():
94 """
95 Dummy network with resnet like architecture.
96 """
97 input_img = tf.keras.layers.Input(shape=(32, 32, 3))
98 x = tf.keras.layers.Conv2D(filters=12, kernel_size=(3, 3))(input_img)
99 x = tf.keras.layers.ReLU()(x)
100 x = tf.keras.layers.Conv2D(filters=24, kernel_size=(3, 3))(x)
101 x = tf.keras.layers.ReLU()(x)
102 x = tf.keras.layers.MaxPooling2D(pool_size=(2, 2))(x)
103 x = identity_block_plain(x)
104 x = identity_block_short_conv_plain(x)
105 x = tf.keras.layers.MaxPooling2D(pool_size=(2, 2))(x)
106 x = tf.keras.layers.Flatten()(x)
107 x = tf.keras.layers.Dense(100)(x)
108 x = tf.keras.layers.ReLU()(x)
109 x = tf.keras.layers.Dense(10)(x)
110 return tf.keras.Model(input_img, x, name="Frodo")
111
112
113def sam_32_32():

Calls 2

identity_block_plainFunction · 0.85