You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cast mean operand to output dtype before reduce_mean
torch.mean(x, dtype=...) on an integer tensor crashed during conversion
(ValueError: mean[0]: dtype si32 vs f32): replace_mean_default and
replace_mean_dim never honored the dtype kwarg, so reduce_mean ran on the
int operand and produced a result whose type mismatched the node's declared
float output. Cast the operand to the node's output element type before
reducing, mirroring replace_sum_dim_intlist. Adds integer-operand coverage
for aten.mean.default and aten.mean.dim across float32/float16 targets.
0 commit comments