     <h1>Source code for harl.algorithms.actors.haddpg</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;HADDPG algorithm.&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">copy</span> <span class="kn">import</span> <span class="n">deepcopy</span>
<span class="kn">import</span> <span class="nn">torch</span>
<span class="kn">from</span> <span class="nn">harl.models.policy_models.deterministic_policy</span> <span class="kn">import</span> <span class="n">Dete