Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
larascipio committed Jun 18, 2024
1 parent 183cfe7 commit 784f646
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions shimmer/modules/attention_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def apply_two_sided_corruption(
device = group_device(domains)
batch_size = groups_batch_size(batch)
n_domains = len(self.domain_names)
print(f"batch: {batch}")

corruption_matrices = {}
for domain in range(n_domains):
if self.fixed_corruption_vector is not None:
Expand Down Expand Up @@ -239,14 +239,11 @@ def apply_two_sided_corruption(
scaled_corruption_matrix
)

print(f"corruption_matrices: {corruption_matrices}")

for domain_names, domains in matched_data_dict.items():
if domain_names == self.domain_names:
for domain_name, domain in domains.items():
if domain_name in corruption_matrices:
domain += corruption_matrices[domain_name]
print(f"matched_data_dict: {matched_data_dict}")
return matched_data_dict

def calculate_mean_attention(
Expand Down

0 comments on commit 784f646

Please sign in to comment.