[docs]defget_target_actions(self,obs):"""Get target actor actions for observations. Args: obs: (np.ndarray) observations of target actor, shape is (batch_size, dim) Returns: actions: (torch.Tensor) actions taken by target actor, shape is (batch_size, dim) """obs=check(obs).to(**self.tpdv)actions=self.target_actor(obs)noise=torch.randn_like(actions)*self.policy_noise*self.scalenoise=torch.clamp(noise,-self.noise_clip*self.scale,self.noise_clip*self.scale)actions+=noiseactions=torch.clamp(actions,self.low,self.high)returnactions