MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / to_global

Method to_global

python/oneflow/nn/modules/module.py:1586–1590  ·  view source on GitHub ↗
(self, placement=None, sbp=None)

Source from the content-addressed store, hash-verified

1584 )
1585
1586 def to_global(self, placement=None, sbp=None):
1587 def convert(t):
1588 return t.to_global(placement=placement, sbp=sbp)
1589
1590 return self._apply(convert)
1591
1592 def to_local(self):
1593 def convert(t):

Callers 1

convertMethod · 0.45

Calls 1

_applyMethod · 0.95

Tested by

no test coverage detected