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

Method SetConcurrentSubsteps

caffe2/python/core.py:2792–2795  ·  view source on GitHub ↗
(self, concurrent_substeps)

Source from the content-addressed store, hash-verified

2790 return self
2791
2792 def SetConcurrentSubsteps(self, concurrent_substeps):
2793 self._assert_can_mutate()
2794 assert not self.HasNets(), 'Cannot have both network and substeps.'
2795 self._step.concurrent_substeps = concurrent_substeps
2796
2797 def AddNet(self, net):
2798 self._assert_can_mutate()

Callers 2

execution_stepFunction · 0.95

Calls 2

_assert_can_mutateMethod · 0.95
HasNetsMethod · 0.95