mirror of
https://github.com/wassname/attentive-neural-processes.git
synced 2026-08-20 12:10:19 +08:00
fix possible data leakage
This commit is contained in:
+4
-1
@@ -136,7 +136,10 @@ class LatentModel(nn.Module):
|
||||
|
||||
if target_y is not None:
|
||||
dist_post, log_var_post = self._latent_encoder(target_x, target_y)
|
||||
z = dist_post.loc
|
||||
if self.training:
|
||||
z = dist_post.loc
|
||||
else:
|
||||
z = dist_prior.loc
|
||||
else:
|
||||
z = dist_prior.loc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user