Skip to main content

ClikaRT::ops::bitwise_not

function

bitwise_not()

Tensor bitwise_not(Tensor x)

Elementwise bitwise NOT (~x; logical NOT for Bool). Integer and Bool dtypes; the output keeps x's dtype.

Returns: x's shape and dtype, complemented.

Throws

  • ClikaRT::Error: (INVALID_ARGUMENT) for a floating-point operand.

Declared in ClikaRT/compute/ops.h, line 1594