Skip to content

Commit

Permalink
comment out #weights prints, to reduce noise when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drowe67 committed Nov 25, 2024
1 parent 52b412b commit 0bb2a12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions radae/radae_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __init__(self, feature_dim, output_dim, bottleneck = 1):
self.z_dense = nn.Linear(864, self.output_dim)

nb_params = sum(p.numel() for p in self.parameters())
print(f"encoder: {nb_params} weights", file=sys.stderr)
#print(f"encoder: {nb_params} weights", file=sys.stderr)

# initialize weights
self.apply(init_weights)
Expand Down Expand Up @@ -251,7 +251,7 @@ def __init__(self, feature_dim, output_dim, bottleneck = 1):
self.z_dense = nn.Linear(864, self.output_dim)

nb_params = sum(p.numel() for p in self.parameters())
print(f"encoder: {nb_params} weights", file=sys.stderr)
#print(f"encoder: {nb_params} weights", file=sys.stderr)

# initialize weights
self.apply(init_weights)
Expand Down Expand Up @@ -326,7 +326,7 @@ def __init__(self, input_dim, output_dim):
self.glu5 = GLU(96)

nb_params = sum(p.numel() for p in self.parameters())
print(f"decoder: {nb_params} weights", file=sys.stderr)
#print(f"decoder: {nb_params} weights", file=sys.stderr)
# initialize weights
self.apply(init_weights)

Expand Down Expand Up @@ -393,7 +393,7 @@ def __init__(self, input_dim, output_dim):
self.glu5 = GLU(96)

nb_params = sum(p.numel() for p in self.parameters())
print(f"decoder: {nb_params} weights", file=sys.stderr)
#print(f"decoder: {nb_params} weights", file=sys.stderr)
# initialize weights
self.apply(init_weights)

Expand Down

0 comments on commit 0bb2a12

Please sign in to comment.