MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _device_put_impl

Function _device_put_impl

imperative/python/megengine/xla/device.py:59–61  ·  view source on GitHub ↗
(x, device)

Source from the content-addressed store, hash-verified

57
58
59def _device_put_impl(x, device):
60 x = canonicalize_arg(x)
61 return device_put_handlers[type(x)](x, device)
62
63
64def device_put(x, devices: Sequence[xb.xla_client.Device], replicate: bool = False):

Callers 1

device_putFunction · 0.85

Calls 1

canonicalize_argFunction · 0.85

Tested by

no test coverage detected