pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::DifferentiableClassifier Struct Reference

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
 

Detailed Description

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.

Member Data Documentation

◆ backward

std::function<Tensor(const Tensor&)> pulsatrix::DifferentiableClassifier::backward

◆ forward

std::function<Tensor(const Tensor&)> pulsatrix::DifferentiableClassifier::forward

The documentation for this struct was generated from the following file: