Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ get_random_inputs
Method
get_random_inputs
exir/tests/models.py:91–92 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
89
return
self.mlp(inputs)
90
91
def
get_random_inputs(self) -> Tuple[torch.Tensor, ...]:
92
return
(torch.rand(2, self.n_layer + self.output_size),)
93
94
95
class
Identity(nn.Module):
Callers
8
test_partitioner_with_spec
Method · 0.95
test_bad_partitioner_tagged_output
Method · 0.95
test_bad_partitioner_tagged_model_input
Method · 0.95
test_debug_handle_generator_pass
Method · 0.95
test_generate_missing_debug_handles
Method · 0.95
test_lowered_the_whole_model
Method · 0.45
test_emit_lowered_backend_module
Method · 0.45
test_emit_nested_lowered_backend_module
Method · 0.45
Calls
no outgoing calls
Tested by
8
test_partitioner_with_spec
Method · 0.76
test_bad_partitioner_tagged_output
Method · 0.76
test_bad_partitioner_tagged_model_input
Method · 0.76
test_debug_handle_generator_pass
Method · 0.76
test_generate_missing_debug_handles
Method · 0.76
test_lowered_the_whole_model
Method · 0.36
test_emit_lowered_backend_module
Method · 0.36
test_emit_nested_lowered_backend_module
Method · 0.36