nielsr HF staff commited on
Commit
806a35d
1 Parent(s): c0128c2

Add print statements

Browse files
Files changed (1) hide show
  1. visual.py +1 -1
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 before attention:", attention_input[0, :3, :3])
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