<li><codeclass="docutils literal"><spanclass="pre">create_op("mul")</span></code> creates the backward operator’s corresponding forward operator.</li>
<li><codeclass="docutils literal"><spanclass="pre">compare_grad</span></code> compares results between utilizing the CPU and the GPU.</li>
<li><codeclass="docutils literal"><spanclass="pre">test_normal</span></code> calls <codeclass="docutils literal"><spanclass="pre">check_grad</span></code> to validate scaling tests’ correctness and stability through numeric methods.<ul>
<li>The first variable <codeclass="docutils literal"><spanclass="pre">self.op</span></code> denotes the forward operator.</li>
<li>The second variable <codeclass="docutils literal"><spanclass="pre">self.inputs</span></code> denotes the input dictionary, which has its key value identical to its <codeclass="docutils literal"><spanclass="pre">ProtoMaker</span></code> definitions.</li>
<li>The third variable <codeclass="docutils literal"><spanclass="pre">["X",</span><spanclass="pre">"Y"]</span></code> appoints <codeclass="docutils literal"><spanclass="pre">X</span></code> and <codeclass="docutils literal"><spanclass="pre">Y</span></code> to be scale tested.</li>
<li>The fourth variable <codeclass="docutils literal"><spanclass="pre">"Out"</span></code> points to the network’s final output target <codeclass="docutils literal"><spanclass="pre">Out</span></code>.</li>
<li>The first variable <codeclass="docutils literal"><spanclass="pre">["X",</span><spanclass="pre">"Y"]</span></code> appoints <codeclass="docutils literal"><spanclass="pre">X</span></code> and <codeclass="docutils literal"><spanclass="pre">Y</span></code> to be scale tested.</li>
<li>The second variable <codeclass="docutils literal"><spanclass="pre">"Out"</span></code> points to the network’s final output target <codeclass="docutils literal"><spanclass="pre">Out</span></code>.</li>
<li>The third variable <codeclass="docutils literal"><spanclass="pre">max_relative_error</span></code> points to the maximum relative tolerance error during scaling tests.</li>
</ul>
</li>
<li><codeclass="docutils literal"><spanclass="pre">test_ignore_x</span></code> and <codeclass="docutils literal"><spanclass="pre">test_ignore_y</span></code>branches test the cases where there is only one scaling input.</li>
<li><codeclass="docutils literal"><spanclass="pre">test_check_grad_ingore_x</span></code> and <codeclass="docutils literal"><spanclass="pre">test_check_grad_ingore_y</span></code>branches test the cases where there is only one scaling input.</li>