Skip to content

Commit

Permalink
Change layers.fully_connected to layers.dense in TensorFlow Hub doc.
Browse files Browse the repository at this point in the history
I believe fully_connected was the name of the API when it was in contrib.

PiperOrigin-RevId: 195108058
  • Loading branch information
TensorFlow Hub Authors authored and andresusanopinto committed May 4, 2018
1 parent 73f3d54 commit 4b3f3fd
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 @@ -12,8 +12,8 @@ For example:
```python
def module_fn():
inputs = tf.placeholder(dtype=tf.float32, shape=[None, 50])
layer1 = tf.layers.fully_connected(inputs, 200)
layer2 = tf.layers.fully_connected(layer1, 100)
layer1 = tf.layers.dense(inputs, 200)
layer2 = tf.layers.dense(layer1, 100)
outputs = dict(default=layer2, hidden_activations=layer1)
# Add default signature.
hub.add_signature(inputs=inputs, outputs=outputs)
Expand Down

0 comments on commit 4b3f3fd

Please sign in to comment.