MCPcopy Index your code
hub / github.com/pytorch/pytorch / _SetupBuilder

Class _SetupBuilder

caffe2/python/net_builder.py:498–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496
497
498class _SetupBuilder(NetBuilder):
499 INIT = 'init'
500 EXIT = 'exit'
501
502 def __init__(self, type, name=None):
503 NetBuilder.__init__(self, name)
504 self.type = type
505
506 def setup(self, net):
507 if self.type == _SetupBuilder.INIT:
508 return core.to_execution_step(self)
509
510 def exit(self, net):
511 if self.type == _SetupBuilder.EXIT:
512 return core.to_execution_step(self)
513
514
515class _RunOnce(NetBuilder):

Callers 6

task_initMethod · 0.85
task_exitMethod · 0.85
task_instance_initMethod · 0.85
task_instance_exitMethod · 0.85
local_initMethod · 0.85
local_exitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…