<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em><em></em>) – data type (ngram or sequence)</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em>) – data type (ngram or sequence)</li>
<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em><em></em>) – data type (ngram or sequence)</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em>) – data type (ngram or sequence)</li>
@@ -406,7 +406,7 @@ in the path of cost layer.</li>
...
@@ -406,7 +406,7 @@ in the path of cost layer.</li>
<li><strong>reader</strong> (<em>collections.Iterable</em>) – A reader that reads and yeilds data items. Usually we use a
<li><strong>reader</strong> (<em>collections.Iterable</em>) – A reader that reads and yeilds data items. Usually we use a
batched reader to do mini-batch training.</li>
batched reader to do mini-batch training.</li>
<li><strong>num_passes</strong>– The total train passes.</li>
<li><strong>num_passes</strong>– The total train passes.</li>
<li><strong>event_handler</strong> (<em></em><em>(</em><em>BaseEvent</em><em>) </em><em>=> None</em>) – Event handler. A method will be invoked when event
<li><strong>event_handler</strong> (<em>(</em><em>BaseEvent</em><em>) </em><em>=> None</em>) – Event handler. A method will be invoked when event
occurred.</li>
occurred.</li>
<li><strong>feeding</strong> (<em>dict|list</em>) – Feeding is a map of neural network input name and array
<li><strong>feeding</strong> (<em>dict|list</em>) – Feeding is a map of neural network input name and array
<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em><em></em>) – data type (ngram or sequence)</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em>) – data type (ngram or sequence)</li>
<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>word_idx</strong> (<em>dict</em>) – word dictionary</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>n</strong> (<em>int</em>) – sliding window size if type is ngram, otherwise max length of sequence</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em><em></em>) – data type (ngram or sequence)</li>
<li><strong>data_type</strong> (<em>member variable of DataType</em><em> (</em><em>NGRAM</em><em> or </em><em>SEQ</em><em>)</em>) – data type (ngram or sequence)</li>
@@ -413,7 +413,7 @@ in the path of cost layer.</li>
...
@@ -413,7 +413,7 @@ in the path of cost layer.</li>
<li><strong>reader</strong> (<em>collections.Iterable</em>) – A reader that reads and yeilds data items. Usually we use a
<li><strong>reader</strong> (<em>collections.Iterable</em>) – A reader that reads and yeilds data items. Usually we use a
batched reader to do mini-batch training.</li>
batched reader to do mini-batch training.</li>
<li><strong>num_passes</strong>– The total train passes.</li>
<li><strong>num_passes</strong>– The total train passes.</li>
<li><strong>event_handler</strong> (<em></em><em>(</em><em>BaseEvent</em><em>) </em><em>=> None</em>) – Event handler. A method will be invoked when event
<li><strong>event_handler</strong> (<em>(</em><em>BaseEvent</em><em>) </em><em>=> None</em>) – Event handler. A method will be invoked when event
occurred.</li>
occurred.</li>
<li><strong>feeding</strong> (<em>dict|list</em>) – Feeding is a map of neural network input name and array
<li><strong>feeding</strong> (<em>dict|list</em>) – Feeding is a map of neural network input name and array
<li><aclass="reference internal"href="#docker-gpu-cuda-driver-version-is-insufficient"id="id24">9. 运行Docker GPU镜像出现 “CUDA driver version is insufficient”</a></li>
<li><aclass="reference internal"href="#docker-gpu-cuda-driver-version-is-insufficient"id="id24">9. 运行Docker GPU镜像出现 “CUDA driver version is insufficient”</a></li>
<li><aclass="reference internal"href="#a-protocol-message-was-rejected-because-it-was-too-big"id="id26">10. A protocol message was rejected because it was too big</a></li>
<li><aclass="reference internal"href="#a-protocol-message-was-rejected-because-it-was-too-big"id="id27">12. A protocol message was rejected because it was too big</a></li>
<divclass="highlight-bash"><divclass="highlight"><pre><span></span>CMake Warning at cmake/version.cmake:20 <spanclass="o">(</span>message<spanclass="o">)</span>:
<h2><aclass="toc-backref"href="#id26">10. A protocol message was rejected because it was too big</a><aclass="headerlink"href="#a-protocol-message-was-rejected-because-it-was-too-big"title="永久链接至标题">¶</a></h2>
<h2><aclass="toc-backref"href="#id27">12. A protocol message was rejected because it was too big</a><aclass="headerlink"href="#a-protocol-message-was-rejected-because-it-was-too-big"title="永久链接至标题">¶</a></h2>
<p>如果在训练NLP相关模型时,出现以下错误:</p>
<p>如果在训练NLP相关模型时,出现以下错误:</p>
<divclass="highlight-bash"><divclass="highlight"><pre><span></span><spanclass="o">[</span>libprotobuf ERROR google/protobuf/io/coded_stream.cc:171<spanclass="o">]</span> A protocol message was rejected because it was too big <spanclass="o">(</span>more than <spanclass="m">67108864</span> bytes<spanclass="o">)</span>. To increase the limit <spanclass="o">(</span>or to disable these warnings<spanclass="o">)</span>, see CodedInputStream::SetTotalBytesLimit<spanclass="o">()</span> in google/protobuf/io/coded_stream.h.
<divclass="highlight-bash"><divclass="highlight"><pre><span></span><spanclass="o">[</span>libprotobuf ERROR google/protobuf/io/coded_stream.cc:171<spanclass="o">]</span> A protocol message was rejected because it was too big <spanclass="o">(</span>more than <spanclass="m">67108864</span> bytes<spanclass="o">)</span>. To increase the limit <spanclass="o">(</span>or to disable these warnings<spanclass="o">)</span>, see CodedInputStream::SetTotalBytesLimit<spanclass="o">()</span> in google/protobuf/io/coded_stream.h.