Struct ComputingGraph::VarReceiverInfo

Nested Relationships

This struct is a nested type of Class ComputingGraph.

Struct Documentation

struct mgb::cg::ComputingGraph::VarReceiverInfo

Public Functions

bool empty() const

whether nothing is needed completely

bool value_needed() const

whether computing value is needed (i.e. either dev_value, or shape, or host_value)

bool is_empty_allowed() const

whether this var can be empty

std::string to_string() const

Public Members

size_t nr_direct_comp_req = 0

number of requests for directly computing by passing an empty callback

size_t dev_value = 0

number of operators that need device value of this var

OperatorNodeBase *last_dev_value_reader = nullptr

last dev value reader in the computing sequence

size_t shape = 0

number of operators that need shape of this var, which can not be statically inferred

size_t host_value = 0

number of operators that need host value of this var, which can not be statically inferred

size_t allow_empty_value = 0

number of operators in dev_value and host_value that allow this var to be empty