Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ operator-
Function
operator-
src/opr/impl/blas.cpp:628–632 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
626
}
627
628
SafeSymbolVar operator-(SafeSymbolVar x) {
629
if (x.node())
630
return -x.s();
631
return {};
632
}
633
634
#define OP(x, a_, b_) \
635
SafeSymbolVar operator x(SafeSymbolVar a, SafeSymbolVar b) { \
Callers
nothing calls this directly
Calls
2
s
Method · 0.80
node
Method · 0.45
Tested by
no test coverage detected