Tensorflow 中 tf.contrib 模块的目的是什么? [英] What is the purpose of the tf.contrib module in Tensorflow?

查看:43
本文介绍了Tensorflow 中 tf.contrib 模块的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇 tf.contrib 是什么,以及为什么代码会包含在 TensorFlow 中,而不是包含在主存储库中.

I'm curious about what tf.contrib is, and why the code would be included in TensorFlow, but not in the main repository.

此外,查看示例此处(来自 tensorflow master 分支),我想找到 tf.contrib.layers.sparse_column_with_hash_bucket 的源代码.

Furthermore, looking at the example here (from the tensorflow master branch), and I want to find the source for tf.contrib.layers.sparse_column_with_hash_bucket.

这似乎是一些很酷的例程,但我想确保它们正确使用队列等,用于预取/预处理示例,以便在生产环境中实际使用它们.

It seems like some cool routines, but I wanted to make sure they were properly using queues, etc, for pre-fetching/pre-processing examples to actually use them in a production setting.

它似乎被记录在here,但它来自 tflearn 项目,但是 tf.contrib.layers.sparse_column_with_hash_bucket 似乎也不在该存储库中.

It appears to be documented here, but it is from the tflearn project, but tf.contrib.layers.sparse_column_with_hash_bucket doesn't seem to be in that repository either.

推荐答案

一般来说,tf.contrib 包含 contribted 代码.它旨在包含最终应合并到核心 TensorFlow 中的功能和贡献,但其接口可能仍会发生变化,或者需要进行一些测试以查看它们是否能得到更广泛的接受.

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.

tf.contrib 中的代码不受 Tensorflow 团队的支持.收录是希望对大家有所帮助,但可能随时更改或删除;没有任何保证.

The 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.

tf.contrib.layers.sparse_column_with_hash_bucket 的来源可以在

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/layers/python/layers/feature_column.py#L365

这篇关于Tensorflow 中 tf.contrib 模块的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆