Skip to content

ConstantFolder Fix Tracker #2385

@gs-olive

Description

@gs-olive

To remove:

# TODO: Delete this class when the following code is fixed in nightly:
# https://github.com/pytorch/pytorch/blob/4b881b0da390c1290bb12850ef9daad6f6eb2cb6/torch/_inductor/constant_folding.py#L53-L63
class _TorchTensorRTConstantFolder(ConstantFolder): # type: ignore[misc]
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
# TODO: Update this function when quantization is added
def is_impure(self, node: torch.fx.node.Node) -> bool:
return False

Metadata

Metadata

Assignees

Labels

Blocked [PyTorch]Issue is blocked by some limitation of PyTorch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions