1 #include <c10/core/Scalar.h> 5 Scalar Scalar::operator-()
const {
6 if (isFloatingPoint()) {
8 }
else if (isComplex()) {
9 return Scalar(std::complex<double>(-v.z[0], -v.z[1]));
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...