Missed TensorFlow World? Check out the recap. Learn more

nsl.configs.DistanceConfig

View source on GitHub

Class DistanceConfig

Contains configuration for computing distances between tensors.

Attributes:

__init__

__init__(
    distance_type=nsl.configs.DistanceType.L2,
    reduction=attr_dict['reduction'].default,
    sum_over_axis=attr_dict['sum_over_axis'].default,
    transform_fn=attr_dict['transform_fn'].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.