Autograd node for element-wise bitwise NOT: .
Defined only for integer dtypes (including Bool); floating-point
inputs are rejected upstream by AmpPolicy::KeepInput. Bitwise
operations have no meaningful gradient — kHasGradient = false.
Math
For Bool inputs this is logical negation; for unsigned integers
it produces the bitwise complement modulo .
Attributes
kSavesInputboolfalse — nothing saved.kHasGradientboolfalse — autograd wiring skipped.schema_v1OpSchemaOp name
"invert" with AmpPolicy::KeepInput (prevents float promotion so the integer dtype is preserved).