# L1¶

Inheritance Diagram

class ashpy.keras.losses.L1[source]

Bases: tensorflow.python.keras.losses.Loss

L1 Loss implementation as tf.keras.losses.Loss.

Methods

 Initialize the Loss. call(x, y) Compute the mean of the l1 between x and y.

Attributes

 reduction Return the current reduction for this type of loss.
__init__()[source]

Initialize the Loss.

Return type

None

call(x, y)[source]

Compute the mean of the l1 between x and y.

Return type

Tensor

property reduction

Return the current reduction for this type of loss.

Return type

ReductionV2