From 4b3f3fd81bb225f86a8c087723d514a7f8c8b672 Mon Sep 17 00:00:00 2001 From: TensorFlow Hub Authors Date: Wed, 2 May 2018 19:03:40 +0200 Subject: [PATCH] Change layers.fully_connected to layers.dense in TensorFlow Hub doc. I believe fully_connected was the name of the API when it was in contrib. PiperOrigin-RevId: 195108058 --- docs/creating.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/creating.md b/docs/creating.md index 178c77e48..52076dd55 100644 --- a/docs/creating.md +++ b/docs/creating.md @@ -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)