3 Star 0 Fork 0

Gitee 极速下载/Fold-Tensor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/tensorflow/fold
克隆/下载
index.md 1.95 KB
一键复制 编辑 原始数据 按行查看 历史

TensorFlow Fold: Deep Learning with Dynamic Computation Graphs

TensorFlow Fold is a library for creating TensorFlow models that consume structured data, such as nested lists, dictionaries, and protocol buffers. Examples of such models are tree-recursive neural networks such as models of the Stanford sentiment treebank, tree LSTMs, hierarchical LSTMs, and graph-convolutional neural networks.

TensorFlow by itself was not designed to work with tree or graph structured data. It does not natively support any data types other than tensors, nor does it support the complex control flow, such as recursive functions, that are typically used to run models like tree-RNNs. When the input consists of trees (e.g. parse trees from a natural language model), each tree may have a different size and shape. A standard TensorFlow model consists of a fixed graph of operations, which cannot accommodate variable-shaped data. Fold overcomes this limitation by using the dynamic batching algorithm.

Fold consists of a high-level API called Blocks, and a low-level API called Loom. Blocks are pure Python, whereas Loom is a mixture of Python and C++. Internally, Blocks uses Loom as its execution engine. Loom is an abstraction layer on top of TensorFlow that makes it possible to easily express computations over structures of varying sizes and shapes without the need to modify the underlying computation graph at run-time.

Quick Links

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/Fold-Tensor.git
git@gitee.com:mirrors/Fold-Tensor.git
mirrors
Fold-Tensor
Fold-Tensor
master

搜索帮助