Skip to content

aten::normal_ not handled as a special op in RemoveTensorMutation pass. #51735

@neginraoof

Description

@neginraoof

🐛 Bug

aten::normal_ should be considered as a special op in remove mutation pass.
The op does not have an equivalent aten::normal

To Reproduce

Steps to reproduce the behavior:

Apply remove mutation on the model below:

class Noise(nn.Module):
    def forward(self, image):
        return image.new_empty(2, 1, 3, 4).normal_()

Expected behavior

Error is:
RuntimeError: 0 INTERNAL ASSERT FAILED at "/pytorch/torch/csrc/jit/ir/alias_analysis.cpp":532, please report a bug to PyTorch. We don't have an op for aten::normal but it isn't a special case. Argument types: Tensor, float, float, None,

cc @ezyang @bhosmer @smessmer @ljk53 @bdhirsh @ailzhang @gmagogsfm

Metadata

Metadata

Assignees

Labels

module: internalsRelated to internal abstractions in c10 and ATenoncall: jitAdd this issue/PR to JIT oncall triage queuetriagedThis 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