MCPcopy Create free account
hub / github.com/pytorch/examples / parameter_rrefs

Method parameter_rrefs

distributed/rpc/pipeline/main.py:77–82  ·  view source on GitHub ↗

r""" Create one RRef for each parameter in the given local module, and return a list of RRefs.

(self)

Source from the content-addressed store, hash-verified

75 return nn.Sequential(*layers)
76
77 def parameter_rrefs(self):
78 r"""
79 Create one RRef for each parameter in the given local module, and return a
80 list of RRefs.
81 """
82 return [RRef(p) for p in self.parameters()]
83
84
85class ResNetShard1(ResNetBase):

Callers 2

parameter_rrefsMethod · 0.45
run_masterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected