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
executors
Return the List of Executors. fn
Return the Keras loss function to execute. global_batch_size
Global batch size comprises the batch size for each cpu. weight
Return the loss weight. -
__init__
(executors)[source]¶ Initialize the SumExecutor.
Parameters: executors ( list
of [ashpy.executors.Executor
]) – Array ofashpy.executors.Executor
to sum evaluate and sum together.Return type: None
Returns: None
-
call
(*args, **kwargs)[source]¶ Evaluate and sum together the Executors.
Return type: Tensor
Returns: :py:classes:`tf.Tensor` – Output Tensor.
-