tree-lstm
tree-lstm copied to clipboard
Reduce func in NaryTreeLSTMCell
Hi,
I notice that in your implementation of the NaryTreeLSTMCell, the reduce function returns
return {'iou': nodes.data['iou'] + self.U_iou(h_cat), 'c': c}
while implementations in DGL returns only
return {'iou': self.U_iou(h_cat), 'c': c}
What's the motivation to add nodes.data['iou']
here?
It's a bug in DGL implementation. Following the original paper, adding nodes.data['iou']
is correct.
It's a bug in DGL implementation. Following the original paper, adding
nodes.data['iou']
is correct.
Could you explain more about the bug? Is it related to the leaf nodes and non-terminal nodes? If I want to implement a bidirectional Tree-LSTM, add nodes.data['iou']
would cause a bug I guess.