本文介绍了为什么 Tensorflow 文档中没有提到 contrib.layers.linear ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图理解其他人的简单张量流模型,他们使用了 contrib.layers.linear.

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

但是我在任何地方都找不到关于此的任何信息,并且在 tensorflow 文档中也没有提及.

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

推荐答案

tf.contrib.layers 模块有 API 文档 此处.正如您在您的答案中所观察到的那样,TensorFlow 中的 contrib API(特别是)可能会发生变化.tf.contrib.layers.linear() 函数似乎已被删除,但您可以使用 tf.contrib.layers.fully_connected(..., activation_fn=None) 达到同样的效果.

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.

这篇关于为什么 Tensorflow 文档中没有提到 contrib.layers.linear ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 04:30