We'd like to have Python bindings to operators in package `paddle.operator`, and Python compositions of operators in package `paddle.layer`. So we have the following concepts in above illustrative example:
<p>We’d like to have Python bindings to operators in package <codeclass="docutils literal"><spanclass="pre">paddle.operator</span></code>, and Python compositions of operators in package <codeclass="docutils literal"><spanclass="pre">paddle.layer</span></code>. So we have the following concepts in above illustrative example:</p>
<divclass="highlight-default"><divclass="highlight"><pre><span></span>| C++ functions/functors | mul | add | | |
<p>This is how we differentiate layer and operators in PaddlePaddle:</p>
<ulclass="simple">
<li>those defined in C++ and have a lightweighted Python wrapper in module <codeclass="docutils literal"><spanclass="pre">operators</span></code> are operators; whereas</li>
We'd like to have Python bindings to operators in package `paddle.operator`, and Python compositions of operators in package `paddle.layer`. So we have the following concepts in above illustrative example:
<p>We’d like to have Python bindings to operators in package <codeclass="docutils literal"><spanclass="pre">paddle.operator</span></code>, and Python compositions of operators in package <codeclass="docutils literal"><spanclass="pre">paddle.layer</span></code>. So we have the following concepts in above illustrative example:</p>
<divclass="highlight-default"><divclass="highlight"><pre><span></span>| C++ functions/functors | mul | add | | |
<p>This is how we differentiate layer and operators in PaddlePaddle:</p>
<ulclass="simple">
<li>those defined in C++ and have a lightweighted Python wrapper in module <codeclass="docutils literal"><spanclass="pre">operators</span></code> are operators; whereas</li>