Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there no mention of contrib.layers.linear in the Tensorflow documentation?

Tags:

tensorflow

I'm trying to understand someone else's simple tensorflow model and they make use of contrib.layers.linear.

However I cannot find any information on this anywhere and it's not mentioned in the tensorflow documentation.

like image 223
user1761806 Avatar asked Jan 13 '17 05:01

user1761806


2 Answers

The tf.contrib.layers module has API documentation here. As you observed in your answer, the contrib APIs in TensorFlow are (especially) subject to change. The tf.contrib.layers.linear() function appears to have been removed, but you can use tf.contrib.layers.fully_connected(…, activation_fn=None) to achieve the same effect.

like image 79
mrry Avatar answered Nov 07 '22 03:11

mrry


I managed to find the answer and felt it was still worth posting this to save others wasting their time.

"In general, tf.contrib contains contributed code. It is meant to contain features and contributions that eventually should get merged into core TensorFlow, but whose interfaces may still change, or which require some testing to see whether they can find broader acceptance.

Code in tf.contrib isn't supported by the Tensorflow team. It is included in the hope that it is helpful, but it might change or be removed at any time; there are no guarantees." source

like image 2
user1761806 Avatar answered Nov 07 '22 02:11

user1761806