<dd><divclass="first last highlight-python"><divclass="highlight"><pre><span></span><spanclass="n">data</span><spanclass="o">=</span><spanclass="n">fluid</span><spanclass="o">.</span><spanclass="n">layers</span><spanclass="o">.</span><spanclass="n">data</span><spanclass="p">(</span><spanclass="n">name</span><spanclass="o">=</span><spanclass="s2">"data"</span><spanclass="p">,</span><spanclass="n">shape</span><spanclass="o">=</span><spanclass="p">[</span><spanclass="mi">32</span><spanclass="p">,</span><spanclass="mi">32</span><spanclass="p">],</span><spanclass="n">dtype</span><spanclass="o">=</span><spanclass="s2">"float32"</span><spanclass="p">)</span>
</tr>
<trclass="field-even field"><thclass="field-name">Raises:</th><tdclass="field-body"><pclass="first last"><codeclass="xref py py-exc docutils literal"><spanclass="pre">ValueError</span></code>– If rank of the input tensor is less than 2.</p>
<dd><divclass="first last highlight-python"><divclass="highlight"><pre><span></span><spanclass="n">data</span><spanclass="o">=</span><spanclass="n">fluid</span><spanclass="o">.</span><spanclass="n">layers</span><spanclass="o">.</span><spanclass="n">data</span><spanclass="p">(</span><spanclass="n">name</span><spanclass="o">=</span><spanclass="s2">"data"</span><spanclass="p">,</span><spanclass="n">shape</span><spanclass="o">=</span><spanclass="p">[</span><spanclass="mi">32</span><spanclass="p">,</span><spanclass="mi">32</span><spanclass="p">],</span><spanclass="n">dtype</span><spanclass="o">=</span><spanclass="s2">"float32"</span><spanclass="p">)</span>
</tr>
<trclass="field-even field"><thclass="field-name">Raises:</th><tdclass="field-body"><pclass="first last"><codeclass="xref py py-exc docutils literal"><spanclass="pre">ValueError</span></code>– If rank of the input tensor is less than 2.</p>