mirror of
https://github.com/wassname/seq2seq-time.git
synced 2026-09-11 12:44:11 +08:00
lots of models, inc NP
This commit is contained in:
@@ -76,5 +76,5 @@ class TransformerSeq2Seq(nn.Module):
|
||||
mean = self.mean(outputs)
|
||||
log_sigma = self.std(outputs)
|
||||
sigma = self._min_std + (1 - self._min_std) * F.softplus(log_sigma)
|
||||
return torch.distributions.Normal(mean, sigma)
|
||||
return torch.distributions.Normal(mean, sigma), {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user