class_docstr: Additive combination of two objectives (specification key: `plus`).
  
  Args:
      objective1 (specification): First objective configuration
          (<span style="color:#C00000"><b>required</b></span>).
      objective2 (specification): Second objective configuration
          (<span style="color:#C00000"><b>required</b></span>).
      name (string): <span style="color:#0000C0"><b>internal use</b></span>.
      states_spec (specification): <span style="color:#0000C0"><b>internal use</b></span>.
      internals_spec (specification): <span style="color:#0000C0"><b>internal use</b></span>.
      auxiliaries_spec (specification): <span style="color:#0000C0"><b>internal use</b></span>.
      actions_spec (specification): <span style="color:#0000C0"><b>internal use</b></span>.
      reward_spec (specification): <span style="color:#0000C0"><b>internal use</b></span>.
class_docstr_tok: ["Additive","combination","of","two","objectives","(","specification","key",":","`","plus","`",")",".","Args",":","objective1","(","specification",")",":","First","objective","configuration","(","<","span","style=","''","color",":","#","C00000","''",">","<","b",">","required","<","\/b",">","<","\/span",">",")",".","objective2","(","specification",")",":","Second","objective","configuration","(","<","span","style=","''","color",":","#","C00000","''",">","<","b",">","required","<","\/b",">","<","\/span",">",")",".","name","(","string",")",":","<","span","style=","''","color",":","#","0000C0","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">",".","states_spec","(","specification",")",":","<","span","style=","''","color",":","#","0000C0","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">",".","internals_spec","(","specification",")",":","<","span","style=","''","color",":","#","0000C0","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">",".","auxiliaries_spec","(","specification",")",":","<","span","style=","''","color",":","#","0000C0","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">",".","actions_spec","(","specification",")",":","<","span","style=","''","color",":","#","0000C0","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">",".","reward_spec","(","specification",")",":","<","span","style=","''","color",":","#","0000C0","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">","."]
code: def __init__(
      self,
      *,
      objective1,
      objective2,
      name=None,
      states_spec=None,
      internals_spec=None,
      auxiliaries_spec=None,
      actions_spec=None,
      reward_spec=None,
  ):
      super().__init__(
          name=name,
          states_spec=states_spec,
          internals_spec=internals_spec,
          auxiliaries_spec=auxiliaries_spec,
          actions_spec=actions_spec,
          reward_spec=reward_spec,
      )
  
      self.objective1 = self.submodule(
          name="objective1",
          module=objective1,
          modules=tensorforce.core.objective_modules,
          states_spec=states_spec,
          internals_spec=internals_spec,
          auxiliaries_spec=auxiliaries_spec,
          actions_spec=actions_spec,
          reward_spec=reward_spec,
      )
  
      self.objective2 = self.submodule(
          name="objective2",
          module=objective2,
          modules=tensorforce.core.objective_modules,
          states_spec=states_spec,
          internals_spec=internals_spec,
          auxiliaries_spec=auxiliaries_spec,
          actions_spec=actions_spec,
          reward_spec=reward_spec,
      )
  
file_path: tensorforce/tensorforce/core/objectives/plus.py
imports: import tensorflow
  from tensorforce import util
  import tensorforce.core
  from tensorforce.core import TensorSpec, tf_function, tf_util
  from tensorforce.core.objectives import Objective
label_desc: Use image node_id 1 to create a new Plus object from inherited base classes: Objective with example: obj = Plus()