README.txt 852 Bytes
Newer Older
1
2
.. _tutorials2-index:

3
Batching many small graphs
4
-------------------------------
5

6
* **Tree-LSTM** `[paper] <https://arxiv.org/abs/1503.00075>`__ `[tutorial]
7
  <2_small_graph/3_tree-lstm.html>`__ `[PyTorch code]
Minjie Wang's avatar
Minjie Wang committed
8
  <https://github.com/dmlc/dgl/blob/master/examples/pytorch/tree_lstm>`__:
9
  Sentences have inherent structures that are thrown
10
  away by treating them simply as sequences. Tree-LSTM is a powerful model
11
12
13
  that learns the representation by using prior syntactic structures such as a parse-tree.
  The challenge in training is that simply by padding
  a sentence to the maximum length no longer works. Trees of different
14
  sentences have different sizes and topologies. DGL solves this problem by
15
16
  adding the trees to a bigger container graph, and then using message-passing
  to explore maximum parallelism. Batching is a key API for this.