Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions paddle/fluid/framework/data_feed.cu
Original file line number Diff line number Diff line change
Expand Up @@ -3106,9 +3106,9 @@ int FillWalkBuf(const std::vector<uint64_t> &h_device_keys_len,
int total_samples = 0;

// Definition of variables related to multi machine sampling
int switch_flag = EVENT_NOT_SWTICH; // Mark whether the local machine needs
int switch_flag = EVENT_NOT_SWITCH; // Mark whether the local machine needs
// to switch metapath
int switch_command = EVENT_NOT_SWTICH; // Mark whether to switch metapath,
int switch_command = EVENT_NOT_SWITCH; // Mark whether to switch metapath,
// after multi node sync
int sample_flag = EVENT_CONTINUE_SAMPLE; // Mark whether the local machine
// needs to continue sampling
Expand Down Expand Up @@ -3182,7 +3182,7 @@ int FillWalkBuf(const std::vector<uint64_t> &h_device_keys_len,
<< " switch_flag:" << switch_flag << "," << switch_command;
if (switch_command) {
cursor += 1;
switch_flag = EVENT_NOT_SWTICH;
switch_flag = EVENT_NOT_SWITCH;
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/framework/data_feed.h
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ struct BufState {
const int EVENT_FINISH_EPOCH = 0; // End of sampling single epoch
const int EVENT_CONTINUE_SAMPLE = 1; // Continue sampling
const int EVENT_WALKBUF_FULL = 2; // d_walk is full, end current pass sampling
const int EVENT_NOT_SWTICH = 0; // Continue sampling on the current metapath.
const int EVENT_NOT_SWITCH = 0; // Continue sampling on the current metapath.
const int EVENT_SWTICH_METAPATH =
1; // Switch to the next metapath to perform sampling

Expand Down