tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Bug] TVM result diverges from reference

Open duduhedangdang opened this issue 7 months ago • 0 comments

Expected behavior

TVM-compiled model should match PyTorch reference within rtol=0.01, atol=0.001.

Actual behavior

Mismatch detected in tensor o2 (layer index 2):

Environment

Item Value
TVM v0.9.dev
OS Ubuntu 20.04
Python 3.8.13
LLVM 10.0.0

###Error tvm-omax v.s. PyTorch mismatch in #2 tensor named o2: Not equal to tolerance rtol=0.01, atol=0.001

Mismatched elements: 1 / 8 (12.5%) Max absolute difference: 87176.266 Max relative difference: 10.557457 x: array([[[[ 1.533974e+00], [-4.493160e+00]], ... y: array([[[[ 1.533026e+00], [-4.493160e+00]], ...

2025-04-27-19-25-44_none_opt2.zip

duduhedangdang avatar Jun 28 '25 16:06 duduhedangdang