We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a60d1 commit 4d0ff47Copy full SHA for 4d0ff47
intel_extension_for_pytorch/transformers/models/reference/modules/decoder.py
@@ -98,7 +98,7 @@ def MllamaVisionEncoderLayer_forward(
98
hidden_state = self.gate_ffn.tanh() * hidden_state
99
else:
100
hidden_state = self.mlp_linear_mul(
101
- hidden_state, self.gate_ffn.tanh().expand_as(residual)
+ hidden_state, self.gate_ffn.tanh().expand_as(residual).contiguous()
102
)
103
hidden_state = residual + hidden_state
104
0 commit comments