SumExecutor¶
Inheritance Diagram
-
class
ashpy.losses.executor.
SumExecutor
(executors)[source]¶ Bases:
ashpy.losses.executor.Executor
The sum executor. Executes the call of each fn and weights the losses.
Each Executor gets called (thus reducing its carried function), the results are then summed together.
Methods
__init__
(executors)Initialize the SumExecutor.
call
(*args, **kwargs)Evaluate and sum together the Executors.
Attributes
Return the List of Executors.
fn
Return the Keras loss function to execute.
Global batch size comprises the batch size for each cpu.
weight
Return the loss weight.
-
call
(*args, **kwargs)[source]¶ Evaluate and sum together the Executors.
- Return type
Tensor
- Returns
:py:classes:`tf.Tensor` – Output Tensor.
-