MCPcopy Create free account
hub / github.com/CVMI-Lab/DODA / DataParallelWithCallback

Class DataParallelWithCallback

lib/sync_bn/replicate.py:50–67  ·  view source on GitHub ↗

Data Parallel with a replication callback. An replication callback `__data_parallel_replicate__` of each module will be invoked after being created by original `replicate` functions. The callback will be invoked with arguments `__data_parallel_replicate__(ctx, copy_id)` Exampl

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected