CNotLayer Class

July 28, 2022 ยท View on GitHub

This class implements a layer that implements logical not operation over integer data. The formula is:

not(x) = x == 0 ? 1 : 0;

Settings

The layer has no settings.

Trainable parameters

The layer has no trainable parameters.

Inputs

The single input accepts a blob with integer data of any size.

Outputs

The single output returns a blob of the same size where each element has been changed via the aforementioned formula.