Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
LightGBM::RecursiveHalvingMap Class Reference

Network structure for recursive halving algorithm. More...

#include <network.h>

Public Member Functions

 RecursiveHalvingMap (int k, RecursiveHalvingNodeType _type, bool _is_power_of_2)
 

Static Public Member Functions

static RecursiveHalvingMap Construct (int rank, int num_machines)
 Create the object of recursive halving map.
 

Data Fields

int k
 Communication times for one recursize halving algorithm

 
RecursiveHalvingNodeType type
 Node type.
 
bool is_power_of_2
 
int neighbor
 
std::vector< int > ranks
 ranks[i] means the machines that will communicate with on i-th communication
 
std::vector< int > send_block_start
 send_block_start[i] means send block start index at i-th communication
 
std::vector< int > send_block_len
 send_block_start[i] means send block size at i-th communication
 
std::vector< int > recv_block_start
 send_block_start[i] means recv block start index at i-th communication
 
std::vector< int > recv_block_len
 send_block_start[i] means recv block size at i-th communication
 

Detailed Description

Network structure for recursive halving algorithm.

Member Function Documentation

◆ Construct()

RecursiveHalvingMap LightGBM::RecursiveHalvingMap::Construct ( int  rank,
int  num_machines 
)
static

Create the object of recursive halving map.

Parameters
rankRank of this machine
num_machinesThe total number of machines
Returns
The object of recursive halving map

The documentation for this class was generated from the following files: