span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">train</span><span class="p">()</span>

        <span class="n">train_loss</span> <span class="o">=</span> <span class="mf">0.</span>

        <span class="c1"># Initialising the empty array for target predictions</span>
        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">MTL</span><span class="p">:</span>
            <span class="n">pred_lis