Defined in File data_parallel.h
Replicates a module on the given list of devices.
A replica is created by calling clone() on the module. For this, the module must inherit from nn::Cloneable, or define its own clone() method, which is expected to perform a deep copy of the module.
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.