foolbox.models
¶
Wrappers¶
Detailed description¶
-
class
foolbox.models.
Model
¶ -
transform_bounds
(bounds)¶ Returns a new model with the desired bounds and updates the preprocessing accordingly
- Parameters
Tuple[float, float]] bounds (Union[foolbox.types.Bounds,) –
- Return type
foolbox.models.base.Model
-
-
class
foolbox.models.
PyTorchModel
(model, bounds, device=None, preprocessing=None)¶ - Parameters
model (Any) –
Tuple[float, float]] bounds (Union[foolbox.types.Bounds,) –
device (Any) –
Any]] preprocessing (Optional[Dict[str,) –
-
class
foolbox.models.
TensorFlowModel
(model, bounds, device=None, preprocessing=None)¶ - Parameters
model (Any) –
Tuple[float, float]] bounds (Union[foolbox.types.Bounds,) –
device (Any) –
Any]] preprocessing (Optional[Dict[str,) –
-
class
foolbox.models.
JAXModel
(model, bounds, preprocessing=None)¶ - Parameters
model (Any) –
Tuple[float, float]] bounds (Union[foolbox.types.Bounds,) –
Any]] preprocessing (Optional[Dict[str,) –
-
class
foolbox.models.
NumPyModel
(model, bounds, data_format=None)¶ - Parameters
model (Callable) –
Tuple[float, float]] bounds (Union[foolbox.types.Bounds,) –
data_format (Optional[str]) –
-
class
foolbox.models.
TransformBoundsWrapper
(model, bounds)¶ - Parameters
model (foolbox.models.base.Model) –
Tuple[float, float]] bounds (Union[foolbox.types.Bounds,) –
-
transform_bounds
(bounds, inplace=False)¶ Returns a new model with the desired bounds and updates the preprocessing accordingly
- Parameters
Tuple[float, float]] bounds (Union[foolbox.types.Bounds,) –
inplace (bool) –
- Return type
foolbox.models.base.Model