code: def __init__(self, algorithm, obs_dim, act_dim):
      assert isinstance(obs_dim, int)
      assert isinstance(act_dim, int)
      self.obs_dim = obs_dim
      self.act_dim = act_dim
      super(Agent, self).__init__(algorithm)
  
      # 注意：最开始先同步self.model和self.target_model的参数.
      self.alg.sync_target(decay=0)
  
file_path: PARL/examples/tutorials/lesson5/ddpg/agent.py
imports: import numpy
  import parl
  from parl import layers
  from paddle import fluid
label_desc: Use image node_id 1 to create a new Agent object from inherited base classes: parl with example: obj = Agent(algorithm, obs_dim, act_dim)