Exchange model weights directly using sendrecvs.
More...
#include <random_pairwise_exchange.hpp>
Exchange model weights directly using sendrecvs.
- Todo:
- More general approach to exchange optimizer state. Currently only SGD and Adam are supported.
Definition at line 221 of file random_pairwise_exchange.hpp.
◆ BaseType
◆ SendRecvWeights() [1/4]
| lbann::ltfb::SendRecvWeights::SendRecvWeights |
( |
std::set< std::string > const & |
weights_names, |
|
|
bool |
exchange_hyperparameters |
|
) |
| |
Construct from weights names.
- Parameters
-
| [in] | weights_names | Names of weights to exchange. If empty, then all weights are exchanged. |
| [in] | exchange_hyperparameters | Exchange optimizer hyperparameters. |
◆ SendRecvWeights() [2/4]
| lbann::ltfb::SendRecvWeights::SendRecvWeights |
( |
std::set< std::string > && |
weights_names, |
|
|
bool |
exchange_hyperparameters |
|
) |
| |
Construct from weights names.
- Parameters
-
| [in] | weights_names | Names of weights to exchange. If empty, then all weights are exchanged. |
| [in] | exchange_hyperparameters | Exchange optimizer hyperparameters. |
◆ SendRecvWeights() [3/4]
◆ SendRecvWeights() [4/4]
◆ get_partner_model()
| std::unique_ptr<model> lbann::ltfb::SendRecvWeights::get_partner_model |
( |
model const & |
m, |
|
|
El::Int |
partner_trainer, |
|
|
size_t |
|
|
) |
| |
|
final |
◆ exchange_hyperparams_
| bool lbann::ltfb::SendRecvWeights::exchange_hyperparams_ |
|
private |
The documentation for this class was generated from the following file: