MCPcopy 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
628SafeSymbolVar 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

sMethod · 0.80
nodeMethod · 0.45

Tested by

no test coverage detected