Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ __init__
Method
__init__
test/models/export_program.py:71–72 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
69
# Used for testing int and bool inputs.
70
class
ModuleIntBool(torch.nn.Module):
71
def
__init__(self):
72
super().__init__()
73
74
def
forward(self, x: torch.Tensor, y: int, z: bool):
75
return
x + y + int(z)
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected