Skip to content

Commit 6653120

Browse files
committed
make style
1 parent 01a38a9 commit 6653120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimum/neuron/utils/optimization_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def to3d(x):
8585
attention_scores = torch.bmm(key, query.transpose(-1, -2)) * (1 / math.sqrt(query.size(-1)))
8686
attention_probs = attention_scores.softmax(dim=1)
8787
if query.size() == key.size():
88-
attention_probs = attention_probs.permute(0, 2, 1)
88+
attention_probs = attention_probs.permute(0, 2, 1)
8989
attn_out = torch.bmm(attention_probs, value)
9090
if orig_shape:
9191
attn_out = attn_out.reshape(orig_shape[0], orig_shape[1], attn_out.shape[1], attn_out.shape[2])

0 commit comments

Comments
 (0)