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

Method is_scalar

imperative/python/src/tensor.h:81–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80 inline ValueRef data() const { return m_data.unwrap(); }
81 bool is_scalar() { return data().is_scalar(); }
82 inline std::string name() { return m_name; }
83 inline size_t value_id() { return m_data.id(); }
84 inline void set_name(std::string name) {

Callers 3

numpyMethod · 0.45
isscalarMethod · 0.45
is_scalarFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected