SumExecutor¶
Inheritance Diagram

-
class
ashpy.losses.executor.SumExecutor(executors)[source]¶ Bases:
ashpy.losses.executor.ExecutorThe 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
executorsReturn the List of Executors. fnReturn the Keras loss function to execute. global_batch_sizeGlobal batch size comprises the batch size for each cpu. weightReturn the loss weight. -
__init__(executors)[source]¶ Initialize the SumExecutor.
Parameters: executors ( listof [ashpy.executors.Executor]) – Array ofashpy.executors.Executorto sum evaluate and sum together.Return type: NoneReturns: None
-
call(*args, **kwargs)[source]¶ Evaluate and sum together the Executors.
Return type: TensorReturns: :py:classes:`tf.Tensor` – Output Tensor.
-