提交 4555e16b 编写于 作者: W wanghaoshuang

Deployed 5a8f87af with MkDocs version: 1.0.4

上级 a32b515b
...@@ -269,35 +269,20 @@ ...@@ -269,35 +269,20 @@
<li><strong>program (fluid.Program):</strong> - Inference Program of the teacher model.</li> <li><strong>program (fluid.Program):</strong> - Inference Program of the teacher model.</li>
<li> <li>
<p><strong>reader_config (dict):</strong> - The config for data reader. Support all the three types of generators used by <a href="https://www.paddlepaddle.org.cn/documentation/docs/en/api/io/PyReader.html">fluid.io.PyReader</a> and <a href="https://www.paddlepaddle.org.cn/documentation/docs/en/api/io/DataLoader.html#dataloader">fluid.io.DataLoader</a>, and their configs contain the key-value pair of the generator type and a generator object, plus other necessary argument pairs. See the following:</p> <p><strong>reader_config (dict):</strong> - The config for data reader. Support all the three types of generators used by <a href="https://www.paddlepaddle.org.cn/documentation/docs/en/api/io/PyReader.html">fluid.io.PyReader</a> and <a href="https://www.paddlepaddle.org.cn/documentation/docs/en/api/io/DataLoader.html#dataloader">fluid.io.DataLoader</a>, and their configs contain the key-value pair of the generator type and a generator object, plus other necessary argument pairs. See the following:</p>
</li> <p>1) <strong>sample generator:</strong></p>
<li> <div class="codehilite"><pre><span></span><span class="err">reader_config={&quot;sample_generator&quot;: some_sample_generator,</span>
<p>1) sample generator:</p>
<div class="codehilite"><pre><span></span><span class="err"> ```</span>
<span class="err"> reader_config={&quot;sample_generator&quot;: some_sample_generator,</span>
<span class="err"> &quot;batch_size&quot;: batch_size, &quot;drop_last&quot;: drop_last}</span> <span class="err"> &quot;batch_size&quot;: batch_size, &quot;drop_last&quot;: drop_last}</span>
<span class="err"> # drop_last set to True by default</span> <span class="err"># drop_last set to True by default</span>
<span class="err"> ```</span>
</pre></div> </pre></div>
<p>2) <strong>sample list generator:</strong></p>
</li> <div class="codehilite"><pre><span></span><span class="err">reader_config={&quot;sample_list_generator&quot;: some_sample_list_generator}</span>
<li>
<p>2) sample list generator:</p>
<div class="codehilite"><pre><span></span><span class="err">```</span>
<span class="err"> reader_config={&quot;sample_list_generator&quot;: some_sample_list_generator}</span>
<span class="err">```</span>
</pre></div> </pre></div>
<p>3) <strong>batch generator:</strong></p>
</li> <div class="codehilite"><pre><span></span><span class="err">reader_config={&quot;batch_generator&quot;: some_batch_genrator}</span>
<li>
<p>3) batch generator:</p>
<div class="codehilite"><pre><span></span><span class="err">```</span>
<span class="err">reader_config={&quot;batch_generator&quot;: some_batch_genrator}</span>
<span class="err">```</span>
</pre></div> </pre></div>
<p>The trial to parse config will be in the order of 1) -&gt; 3), and any other unrelated keys in these configs will be ignored.</p> <p>The trial to parse config will be in the order of 1) -&gt; 3), and any other unrelated keys in these configs will be ignored.</p>
</li> </li>
<li> <li>
......
...@@ -310,5 +310,5 @@ python setup.py install ...@@ -310,5 +310,5 @@ python setup.py install
<!-- <!--
MkDocs version : 1.0.4 MkDocs version : 1.0.4
Build Date UTC : 2020-02-04 09:02:23 Build Date UTC : 2020-02-04 09:56:08
--> -->
此差异已折叠。
无法预览此类型文件
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册