Skip to content

Commit f8dc9ad

Browse files
committed
Check contiguous
1 parent 13f74e3 commit f8dc9ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎op/fused_act.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def forward(ctx, grad_output, out, bias, negative_slope, scale):
2727
empty = grad_output.new_empty(0)
2828

2929
grad_input = fused.fused_bias_act(
30-
grad_output, empty, out, 3, 1, negative_slope, scale
30+
grad_output.contiguous(), empty, out, 3, 1, negative_slope, scale
3131
)
3232

3333
dim = [0]

0 commit comments

Comments
 (0)