Skip to content

Refactor truncate_long_and_double in Dynamo #2590

Closed
@gs-olive

Description

@gs-olive
  • Explicit considerations of truncation of inputs versus truncation of constants

Sourced from #2457 (comment):

  • Avoid running PyTorch graphs with invalid casts
  • Refactor repair_long_and_double to consume output of type inference
  • Reorder truncation to come as late as possible in the compilation process

Metadata

Metadata

Assignees

Labels

component: dynamoIssues relating to the `torch.compile` or `torch._dynamo.export` paths

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions