Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ is_scalar
Method
is_scalar
imperative/src/impl/value.cpp:69–71 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
67
}
68
69
bool ValueRef::is_scalar() const {
70
return imperative::apply(IsScalar(), *this)[0].cast<BoolValue>();
71
}
72
73
void ValueRef::watch() const {
74
mgb_assert(m_storage);
Callers
15
as_nd
Method · 0.45
apply
Function · 0.45
apply_transformation
Method · 0.45
is_reduce_ndim_idx_items
Function · 0.45
elemwise_rule
Function · 0.45
concat_rule
Function · 0.45
DEF_IMPL
Function · 0.45
check
Method · 0.45
TEST
Function · 0.45
TEST
Function · 0.45
TEST
Function · 0.45
as_immutable_scalar
Method · 0.45
Calls
2
IsScalar
Class · 0.85
apply
Function · 0.70
Tested by
6
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
reduce_raw
Function · 0.36
TEST
Function · 0.36