You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by GitBox <gi...@apache.org> on 2026/06/03 21:54:34 UTC

[GH] (tvm/main): Workflow run "Teams" is working again!

The GitHub Actions job "Teams" on tvm.git/main has succeeded.
Run started by GitHub user ALinrunrun (triggered by ALinrunrun).

Head commit for run:
57912395a8f99c4b12e28190b3d99c12f2638e63 / Javier De Jesus <ja...@gmail.com>
[Relax][PyTorch] Decompose integer pow into repeated multiplication (#19660)

`torch.pow` on an integer tensor returns an integer result, but the
PyTorch frontend lowered it to `relax.op.power`, which fails
`LegalizeOps` with `power only applies to float` (TOPI `power` /
`tvm::pow` requires a floating-point input).

This decomposes an integer base raised to a constant non-negative
integer exponent into repeated multiplication, so the result stays
integral and matches PyTorch. Float bases and non-constant or tensor
exponents keep using `relax.op.power` unchanged. The ONNX frontend
already uses the same decomposition (`x**3 = x*x*x`).

Added structural tests covering both the FX and ExportedProgram import
paths.

Fixes #19550

Report URL: https://github.com/apache/tvm/actions/runs/26915259971

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org