Skip to content

Commit

Permalink
Fixing Sign in AMR (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuihongQiu authored Aug 13, 2021
1 parent b08add6 commit 4453939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cornac/models/amr/recom_amr.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _inner(a, b):
feat_i_delta = feat_i.grad
feat_j_delta = feat_j.grad

adv_feat_diff = feat_diff - (feat_i_delta - feat_j_delta)
adv_feat_diff = feat_diff + (feat_i_delta - feat_j_delta)
adv_Xuij = (
_inner(gamma_u, gamma_diff)
+ _inner(gamma_u, adv_feat_diff.mm(E))
Expand Down

0 comments on commit 4453939

Please sign in to comment.