Skip to content

Commit

Permalink
Fix code snippet.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 190043435
  • Loading branch information
TensorFlow Hub Authors authored and andresusanopinto committed Mar 22, 2018
1 parent 7fe6e5d commit fce0b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/creating.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ For example:

```python
def module_fn():
x = tf.placeholder(dtype=tf.float32, shape=[None, 50])
inputs = tf.placeholder(dtype=tf.float32, shape=[None, 50])
layer1 = tf.layers.fully_connected(inputs, 200)
layer2 = tf.layers.fully_connected(layer1, 100)
outputs = dict(default=layer2, hidden_activations=layer1)
# Add default signature.
hub.add_signature(inputs=x, outputs=outputs)
hub.add_signature(inputs=inputs, outputs=outputs)

...
spec = hub.create_module_spec(module_fn)
Expand Down

0 comments on commit fce0b60

Please sign in to comment.