Skip to content

Commit

Permalink
attn shape flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
bknyaz committed Jan 3, 2020
1 parent c84cee3 commit 3284981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/triangles_sag_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class HandleNodeAttention(object):
def __call__(self, data):
data.attn = torch.softmax(data.x, dim=0)
data.attn = torch.softmax(data.x, dim=0).flatten()
data.x = None
return data

Expand Down

0 comments on commit 3284981

Please sign in to comment.