Skip to content

[dynamo] common_constants is too aggressive #95469

@ezyang

Description

@ezyang

🐛 Describe the bug

common_constants forces specialization for every integer up to 17, which means basic stuff like

for i in range(10):
    f(x, i)

will always specialize, even with specialize_int_float = False

Versions

master

cc @soumith @msaroufim @wconstab @ngimel @bdhirsh @voznesenskym @yanboliang @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: dynamooncall: pt2triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions