Skip to content
代码片段 群组 项目
未验证 提交 a3ffd542 编辑于 作者: dlagul's avatar dlagul 提交者: GitHub
浏览文件

Update model.py

上级 30d78111
分支
无相关合并请求
......@@ -336,6 +336,7 @@ class SDFVAE(nn.Module):
d_mean, d_logvar, d, h = self.encode_d(x.size(0), x_hat)
s_mean, s_logvar, s = self.encode_s(x_hat)
s_expand = s.unsqueeze(1).expand(-1, self.T, self.s_dim)
# We concat [d_t, h_(t-1), s] and feed it to decoder network
ds = torch.cat((d, s_expand), dim=2)
dsh = torch.cat((ds, h), dim=2)
recon_x_mu = self.decoder_mu(dsh)
......
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册