Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ method
Method
method
torch/_export/db/examples/class_method.py:15–16 ·
view source on GitHub ↗
(cls, x)
Source
from the content-addressed store, hash-verified
13
14
@classmethod
15
def
method(cls, x):
16
return
x + 1
17
18
def
__init__(self):
19
super().__init__()
Callers
1
forward
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected