rand_int_tensor() — pytorch Function Reference
Architecture documentation for the rand_int_tensor() function in huggingface.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 99522623_9bfd_bf9f_64dc_57a37f41f30a["rand_int_tensor()"] 179ecd7f_27e8_48db_95f4_85c2cda45c18["generate_inputs_for_model()"] 179ecd7f_27e8_48db_95f4_85c2cda45c18 -->|calls| 99522623_9bfd_bf9f_64dc_57a37f41f30a style 99522623_9bfd_bf9f_64dc_57a37f41f30a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/huggingface.py lines 295–303
def rand_int_tensor(device, low, high, shape):
return torch.randint(
low,
high,
shape,
device=device,
dtype=torch.int64,
requires_grad=False,
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does rand_int_tensor() do?
rand_int_tensor() is a function in the pytorch codebase.
What calls rand_int_tensor()?
rand_int_tensor() is called by 1 function(s): generate_inputs_for_model.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free