>scalar_is_valid</span><span class="p">:</span>
            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;Scalar initialization values are not valid. </span><span class="se">\</span>
<span class="s1">                              Got </span><span class="si">{}</span><span class="s1"> expected Tensor of size </span><span class="si">{}</span><span class="s1">.&#39;</span>
                             <span class="o">.</span><span class="n">format<