Skip to content

Commit

Permalink
just small check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dingel321 committed Jun 12, 2024
1 parent 23f1ee4 commit 3290324
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cryo_sbi/inference/models/estimator_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Standardize(nn.Module):
def __init__(self, mean: float, std: float) -> None:
super(Standardize, self).__init__()
mean, std = map(torch.as_tensor, (mean, std))
print(mean, std)
self.mean = mean
self.std = std
self.register_buffer("_mean", mean)
Expand Down Expand Up @@ -103,7 +104,9 @@ def __init__(
)

self.embedding = embedding_net()
self.standardize = Standardize(theta_shift, theta_scale)
theta_shifts = (theta_shift, 0.0, 0.0, 0.0, 0.0, 2.75, 50.0, 0.05)
theta_scales = (theta_scale, 1.0, 1.0, 1.0, 1.0, 2.75, 50.0, 0.05)
self.standardize = Standardize(theta_shifts, theta_scales)

def forward(self, theta: torch.Tensor, x: torch.Tensor) -> torch.Tensor:
"""
Expand Down

0 comments on commit 3290324

Please sign in to comment.