Skip to content

Commit

Permalink
update GRUD
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyongc committed Dec 28, 2018
1 parent 9d77048 commit 9f877f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GRUD.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def step(self, x, h, mask, delta, x_mean):
combined = torch.cat((x, h, mask), 1)
z = F.sigmoid(self.zl(combined))
r = F.sigmoid(self.rl(combined))
combined_r = torch.cat((x, r * Hidden_State, mask), 1)
combined_r = torch.cat((x, r * Hidden_State, mask), 1)
h_tilde = F.tanh(self.hl(combined_r))
h = (1 - z) * h + z * h_tilde

Expand Down

1 comment on commit 9f877f8

@2M-kotb
Copy link

@2M-kotb 2M-kotb commented on 9f877f8 Feb 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhiyongc In combined_r line, what is Hidden_State. I think you mean r * h

Please sign in to comment.