Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/pytorch
/ __init__
Method
__init__
caffe2/python/task.py:77–80 ·
view source on GitHub ↗
(self, node='local', **kwargs)
Source
from the content-addressed store, hash-verified
75
""
"
76
77
def
__init__(self, node=
'local'
, **kwargs):
78
self._name = str(node)
79
self._kwargs = kwargs
80
Cluster.current().add_node(self)
81
82
def
__str__(self):
83
return
self._name
Callers
nothing calls this directly
Calls
2
current
Method · 0.80
add_node
Method · 0.45
Tested by
no test coverage detected