提交 660dceac 编写于 作者: T Travis CI

Deploy to GitHub Pages: a4024a5f

上级 bebdad9c
......@@ -48,8 +48,8 @@ Fluid uses class [DeviceContext](https://github.com/PaddlePaddle/Paddle/blob/dev
```
/-> CPUDeviceContext --> MKLDeviceContext
DeviceContext ----> CUDADeviceContext --> CUDNNDeviceContext
/-> CPUDeviceContext
DeviceContext ----> CUDADeviceContext
\-> FPGADeviceContext
```
......@@ -79,16 +79,6 @@ private:
};
```
- CUDNNDeviceContext
```
class CUDNNDeviceContext : public CUDADeviceContext {
private:
cudnnHandle_t cudnn_handle_;
};
```
### Memory and Tensor
......
......@@ -245,8 +245,8 @@
<div class="section" id="devicecontext">
<span id="devicecontext"></span><h4>DeviceContext<a class="headerlink" href="#devicecontext" title="Permalink to this headline"></a></h4>
<p>Fluid uses class <a class="reference external" href="https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/platform/device_context.h#L30">DeviceContext</a> to manage the resources in different libraries, such as CUDA stream in <code class="docutils literal"><span class="pre">CDUADeviceContext</span></code>. There are also inheritance relationships between different kinds of <code class="docutils literal"><span class="pre">DeviceContext</span></code>.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span> <span class="o">/-&gt;</span> <span class="n">CPUDeviceContext</span> <span class="o">--&gt;</span> <span class="n">MKLDeviceContext</span>
<span class="n">DeviceContext</span> <span class="o">----&gt;</span> <span class="n">CUDADeviceContext</span> <span class="o">--&gt;</span> <span class="n">CUDNNDeviceContext</span>
<div class="highlight-default"><div class="highlight"><pre><span></span> <span class="o">/-&gt;</span> <span class="n">CPUDeviceContext</span>
<span class="n">DeviceContext</span> <span class="o">----&gt;</span> <span class="n">CUDADeviceContext</span>
\<span class="o">-&gt;</span> <span class="n">FPGADeviceContext</span>
</pre></div>
</div>
......@@ -272,15 +272,6 @@
<span class="p">};</span>
</pre></div>
</div>
<ul class="simple">
<li>CUDNNDeviceContext</li>
</ul>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">CUDNNDeviceContext</span> <span class="p">:</span> <span class="n">public</span> <span class="n">CUDADeviceContext</span> <span class="p">{</span>
<span class="n">private</span><span class="p">:</span>
<span class="n">cudnnHandle_t</span> <span class="n">cudnn_handle_</span><span class="p">;</span>
<span class="p">};</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="memory-and-tensor">
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -48,8 +48,8 @@ Fluid uses class [DeviceContext](https://github.com/PaddlePaddle/Paddle/blob/dev
```
/-> CPUDeviceContext --> MKLDeviceContext
DeviceContext ----> CUDADeviceContext --> CUDNNDeviceContext
/-> CPUDeviceContext
DeviceContext ----> CUDADeviceContext
\-> FPGADeviceContext
```
......@@ -79,16 +79,6 @@ private:
};
```
- CUDNNDeviceContext
```
class CUDNNDeviceContext : public CUDADeviceContext {
private:
cudnnHandle_t cudnn_handle_;
};
```
### Memory and Tensor
......
......@@ -258,8 +258,8 @@
<div class="section" id="devicecontext">
<span id="devicecontext"></span><h4>DeviceContext<a class="headerlink" href="#devicecontext" title="永久链接至标题"></a></h4>
<p>Fluid uses class <a class="reference external" href="https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/platform/device_context.h#L30">DeviceContext</a> to manage the resources in different libraries, such as CUDA stream in <code class="docutils literal"><span class="pre">CDUADeviceContext</span></code>. There are also inheritance relationships between different kinds of <code class="docutils literal"><span class="pre">DeviceContext</span></code>.</p>
<div class="highlight-default"><div class="highlight"><pre><span></span> <span class="o">/-&gt;</span> <span class="n">CPUDeviceContext</span> <span class="o">--&gt;</span> <span class="n">MKLDeviceContext</span>
<span class="n">DeviceContext</span> <span class="o">----&gt;</span> <span class="n">CUDADeviceContext</span> <span class="o">--&gt;</span> <span class="n">CUDNNDeviceContext</span>
<div class="highlight-default"><div class="highlight"><pre><span></span> <span class="o">/-&gt;</span> <span class="n">CPUDeviceContext</span>
<span class="n">DeviceContext</span> <span class="o">----&gt;</span> <span class="n">CUDADeviceContext</span>
\<span class="o">-&gt;</span> <span class="n">FPGADeviceContext</span>
</pre></div>
</div>
......@@ -285,15 +285,6 @@
<span class="p">};</span>
</pre></div>
</div>
<ul class="simple">
<li>CUDNNDeviceContext</li>
</ul>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">CUDNNDeviceContext</span> <span class="p">:</span> <span class="n">public</span> <span class="n">CUDADeviceContext</span> <span class="p">{</span>
<span class="n">private</span><span class="p">:</span>
<span class="n">cudnnHandle_t</span> <span class="n">cudnn_handle_</span><span class="p">;</span>
<span class="p">};</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="memory-and-tensor">
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册