MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / CNode

Method CNode

core/ctree/cnode.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 //*********************************************************
20
21 CNode::CNode(){
22 this->prior = 0;
23 this->action_num = 0;
24 this->best_action = -1;
25
26 this->is_reset = 0;
27 this->visit_count = 0;
28 this->value_sum = 0;
29 this->to_play = 0;
30 this->value_prefix = 0.0;
31 this->ptr_node_pool = nullptr;
32 }
33
34 CNode::CNode(float prior, int action_num, std::vector<CNode>* ptr_node_pool){
35 this->prior = prior;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected