|
pulsatrix 1.1.0
|
A classifier the attacks can differentiate: forward maps an (N, ...) input to (N, C) logits; backward maps a gradient at those logits to the gradient at the input, for the input of the last forward.
More...
#include <adversarial.hpp>
Public Attributes | |
| std::function< Tensor(const Tensor &)> | forward |
| std::function< Tensor(const Tensor &)> | backward |
A classifier the attacks can differentiate: forward maps an (N, ...) input to (N, C) logits; backward maps a gradient at those logits to the gradient at the input, for the input of the last forward.