MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / decoder

Function decoder

tensorflowTUT/tf21_autoencoder/full_code.py:58–65  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

56
57# Building the decoder
58def decoder(x):
59 # Encoder Hidden layer with sigmoid activation #1
60 layer_1 = tf.nn.sigmoid(tf.add(tf.matmul(x, weights['decoder_h1']),
61 biases['decoder_b1']))
62 # Decoder Hidden layer with sigmoid activation #2
63 layer_2 = tf.nn.sigmoid(tf.add(tf.matmul(layer_1, weights['decoder_h2']),
64 biases['decoder_b2']))
65 return layer_2
66
67
68"""

Callers 1

full_code.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected