newEmptyShapeWithItem() — pytorch Function Reference
Architecture documentation for the newEmptyShapeWithItem() function in generate_test_torchscripts.py from the pytorch codebase.
Entity Profile
Relationship Graph
Source Code
android/pytorch_android/generate_test_torchscripts.py lines 103–104
def newEmptyShapeWithItem(self, input):
return torch.tensor([int(input.item())])[0]
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free