MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / dtype

Method dtype

imperative/src/impl/transformations/eval.cpp:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace imperative {
5
6DTypeValue::ref_t InterpreterValue::dtype() const {
7 if (!m_dtype) {
8 m_dtype = DTypeValue::make(handle()->channel()->get_dtype(handle()->handle()));
9 }
10 return m_dtype;
11}
12
13CompNodeValue::ref_t InterpreterValue::comp_node() const {
14 if (!m_comp_node) {

Callers 15

apply_on_physical_tensorFunction · 0.45
apply_on_var_nodeFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_var_nodeFunction · 0.45
make_from_op_nodeFunction · 0.45
initializeMethod · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45

Calls 4

makeFunction · 0.50
get_dtypeMethod · 0.45
channelMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected