Skip to content

[Bug] TVM result diverges from reference #18100

@duduhedangdang

Description

@duduhedangdang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address ittype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions