Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ get_random_inputs
Method
get_random_inputs
test/models/export_delegated_program.py:62–63 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
60
return
z
61
62
def
get_random_inputs(self) -> Sequence[torch.Tensor]:
63
return
(torch.ones(2, 2), 2 * torch.ones(2, 2), 3 * torch.ones(2, 2))
64
65
66
class
ModuleAddLarge(nn.Module):
Callers
1
export_module_to_program
Function · 0.45
Calls
1
ones
Method · 0.80
Tested by
no test coverage detected