Skip to content

Commit bfb9f27

Browse files
committed
Removed print statement
1 parent 4f5b68d commit bfb9f27

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

examples/example_full_attn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
checkpoint_level="C1",
1616
parameter_sharing="none",
1717
k_reduce_by_layer=1,
18+
full_attention=True,
1819
)
1920
x = torch.randn(1, 512, 16)
2021
y = model(x)

linformer_pytorch/linformer_pytorch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def forward(self, Q, K, V, **kwargs):
8787
P_bar = QW/torch.sqrt(torch.tensor(self.dim).type(Q.type()))
8888
P_bar = P_bar.softmax(dim=-1)
8989

90-
print(P_bar.shape)
9190
# Only save this when visualizing
9291
if "visualize" in kwargs and kwargs["visualize"] == True:
9392
self.P_bar = P_bar

0 commit comments

Comments
 (0)