Recurrent-Attention-CNN icon indicating copy to clipboard operation
Recurrent-Attention-CNN copied to clipboard

Implement RA-CNN in tensorflow

Open Kongsea opened this issue 6 years ago • 6 comments

How to implement formular (4) in the paper? If we have the three tensors, tx, ty and tl with the shape (None, 1) respectively, how do we get the corresponding mask M?

In python, we can use two loops as: for x in tx: for y in ty: mask[x, y] = hx(x, y)

Then how to implement this in TensorFlow? Thank you.

Kongsea avatar Dec 18 '17 12:12 Kongsea