MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / new_replicate

Function new_replicate

lib/nn/modules/replicate.py:89–92  ·  view source on GitHub ↗
(module, device_ids)

Source from the content-addressed store, hash-verified

87
88 @functools.wraps(old_replicate)
89 def new_replicate(module, device_ids):
90 modules = old_replicate(module, device_ids)
91 execute_replication_callbacks(modules)
92 return modules
93
94 data_parallel.replicate = new_replicate

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected