Demo entry 6783132

cnn.py

   

Submitted by anonymous on Jan 30, 2019 at 16:30
Language: Python. Code size: 393 Bytes.

conv = tf.layers.conv1d(inputs=input_layer, filters=32,
                        kernel_size=3, padding="same",
                        activation=tf.nn.relu, 
                        name='conv_1d')

pool = tf.reduce_max(input_tensor=conv, axis=1)
hidden = tf.layers.dense(inputs=pool, units=250, activation=tf.nn.relu)
logits = tf.layers.dense(inputs=hidden , units=2, activation=None)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).