mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 16:56:54 +08:00
Update pytorch_sfm.py
This commit is contained in:
@@ -102,7 +102,7 @@ class SFM_Model(nn.Module):
|
|||||||
|
|
||||||
i = self.inner_activation(
|
i = self.inner_activation(
|
||||||
x_i + torch.matmul(h_tm1 * B_U[0], self.U_i)
|
x_i + torch.matmul(h_tm1 * B_U[0], self.U_i)
|
||||||
) # not sure whether I am doing in the right unsquuze
|
)
|
||||||
|
|
||||||
ste = self.inner_activation(x_ste + torch.matmul(h_tm1 * B_U[0], self.U_ste))
|
ste = self.inner_activation(x_ste + torch.matmul(h_tm1 * B_U[0], self.U_ste))
|
||||||
fre = self.inner_activation(x_fre + torch.matmul(h_tm1 * B_U[0], self.U_fre))
|
fre = self.inner_activation(x_fre + torch.matmul(h_tm1 * B_U[0], self.U_fre))
|
||||||
|
|||||||
Reference in New Issue
Block a user