Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

nsl.configs.AdvTargetConfig

View source on GitHub

Class AdvTargetConfig

AdvTargetConfig contains configs for selecting targets to be attacked.

Attributes:

  • target_method: type of adversarial targeting method. The value needs to be one of the enums from AdvTargetType (e.g., AdvTargetType.LEAST).
  • random_seed: a Python integer as seed in 'random_uniform' op.

__init__

__init__(
    target_method=nsl.configs.AdvTargetType.GROUND_TRUTH,
    random_seed=attr_dict['random_seed'].default
)

Initialize self. See help(type(self)) for accurate signature.

Methods

__eq__

__eq__(other)

Return self==value.

__ge__

__ge__(other)

Automatically created by attrs.

__gt__

__gt__(other)

Automatically created by attrs.

__le__

__le__(other)

Automatically created by attrs.

__lt__

__lt__(other)

Automatically created by attrs.

__ne__

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.