Add print statements
Browse files
visual.py
CHANGED
@@ -83,7 +83,7 @@ class TransformerLayer(nn.Module):
|
|
83 |
attention_output = self.attention(attention_input)
|
84 |
|
85 |
if print_values:
|
86 |
-
print("Hidden states
|
87 |
|
88 |
attention_output = self.input_layernorm(attention_output)
|
89 |
hidden_states = attention_input + attention_output
|
|
|
83 |
attention_output = self.attention(attention_input)
|
84 |
|
85 |
if print_values:
|
86 |
+
print("Hidden states after attention:", attention_output[0, :3, :3])
|
87 |
|
88 |
attention_output = self.input_layernorm(attention_output)
|
89 |
hidden_states = attention_input + attention_output
|