Created
May 24, 2020 22:02
-
-
Save piEsposito/6727beb98e3101bab196b21da5ccf23d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import torch | |
import torch.nn as nn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok i Got!~~~Done
i_t = torch.sigmoid(self.U_ix_t + self.ub_i + self.V_ih_t + self.vb_i)
f_t = torch.sigmoid(self.U_fx_t + self.ub_i + self.V_fh_t + self.vb_f)
g_t = torch.tanh( self.U_cx_t + self.ub_i + self.V_ch_t + self.vb_c)
o_t = torch.sigmoid(self.U_ox_t + self.ub_i + self.V_oh_t + self.vb_o)