During the forward pass the GRL computes the identity function and feeds its input to a shallow Multi-Layer Perceptron (MLP) style classifier.
during back-propagation the gradient of the style classifier is flipped in sign.