Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

RuntimeError: Failed running call_function aten.uniform(... #1954

@silvasean

Description

@silvasean

🐛 Describe the bug

import torch
import torch._dynamo as dynamo

@dynamo.optimize()
def forward(x):
    return torch.ops.aten.uniform(x)

forward(torch.rand(1000))

Error

RuntimeError: Failed running call_function aten.uniform(*(FakeTensor(FakeTensor(..., device='meta', size=(1000,)), cpu),), **{}):
uniform() missing 2 required keyword-only arguments: 'dtype' and 'device'

Error logs

Ful log: https://gist.github.com/silvasean/c502b2a4df4feb97403cdbd8b56eb1b5

Minified repro

See above

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions