class nbla::ClearCalledFlagRecorder

class ClearCalledFlagRecorder

ClearCalledFlagRecorder is a singleton class to record and collect the SyncedArray::clear_called flags during forward propagation.

Public Functions

bool is_activated()

Check if this recorder is activated.

void activate()

Activate recording clear flags.

void deactivate()

Deactivate recording clear flags and delete recorded flags.

void record(const CgFunctionPtr func)

Record clear flags from given function.

vector<vector<std::pair<bool, bool>>> get_recorded_input_clear_flags() const

Get recorded clear flags.

vector<vector<std::pair<bool, bool>>> get_recorded_output_clear_flags() const

Get recorded clear flags.