<spanid="arrayfire-device-module"></span><h1>arrayfire.device module<aclass="headerlink" href="#module-arrayfire.device" title="Permalink to this headline">¶</a></h1>
<p>Functions to handle the available devices in the backend.</p>
<dlclass="py function">
<dtid="arrayfire.device.alloc_device">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">alloc_device</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">num_bytes</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#alloc_device"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.alloc_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Allocate a buffer on the device with specified number of bytes.</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.alloc_host">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">alloc_host</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">num_bytes</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#alloc_host"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.alloc_host" title="Permalink to this definition">¶</a></dt>
<dd><p>Allocate a buffer on the host with specified number of bytes.</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.alloc_pinned">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">alloc_pinned</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">num_bytes</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#alloc_pinned"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.alloc_pinned" title="Permalink to this definition">¶</a></dt>
<dd><p>Allocate a buffer on the host using pinned memory with specified number of bytes.</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.device_gc">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">device_gc</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#device_gc"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.device_gc" title="Permalink to this definition">¶</a></dt>
<dd><p>Ask the garbage collector to free all unlocked memory</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.device_info">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">device_info</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#device_info"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.device_info" title="Permalink to this definition">¶</a></dt>
<dd><dlclass="simple">
<dt>Returns a map with the following fields:</dt><dd><ulclass="simple">
<li><p>‘device’: Name of the current device.</p></li>
<li><p>‘backend’: The current backend being used.</p></li>
<li><p>‘toolkit’: The toolkit version for the backend.</p></li>
<li><p>‘compute’: The compute version of the device.</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.device_mem_info">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">device_mem_info</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#device_mem_info"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.device_mem_info" title="Permalink to this definition">¶</a></dt>
<dd><dlclass="simple">
<dt>Returns a map with the following fields:</dt><dd><ulclass="simple">
<li><dlclass="simple">
<dt>‘alloc’: Contains the map of the following</dt><dd><ul>
<li><p>‘buffers’ : Total number of buffers allocated by memory manager.</p></li>
<li><p>‘bytes’ : Total number of bytes allocated by memory manager.</p></li>
</ul>
</dd>
</dl>
</li>
<li><dlclass="simple">
<dt>‘lock’: Contains the map of the following</dt><dd><ul>
<li><p>‘buffers’ : Total number of buffers currently in scope.</p></li>
<li><p>‘bytes’ : Total number of bytes currently in scope.</p></li>
</ul>
</dd>
</dl>
</li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.eval">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">eval</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">*</span></span><spanclass="n"><spanclass="pre">args</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#eval"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.eval" title="Permalink to this definition">¶</a></dt>
<dd><p>Evaluate one or more inputs together</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><dlclass="simple">
<dt><strong>args</strong><spanclass="classifier">arguments to be evaluated</span></dt><dd></dd>
<spanclass="gp">>>> </span><spanclass="n">af</span><spanclass="o">.</span><spanclass="n">eval</span><spanclass="p">(</span><spanclass="n">c</span><spanclass="p">,</span><spanclass="n">d</span><spanclass="p">)</span><spanclass="c1"># A single kernel is launched here</span>
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">free_device</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ptr</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#free_device"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.free_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Free the device memory allocated by alloc_device</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.free_host">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">free_host</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ptr</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#free_host"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.free_host" title="Permalink to this definition">¶</a></dt>
<dd><p>Free the host memory allocated by alloc_host</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.free_pinned">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">free_pinned</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">ptr</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#free_pinned"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.free_pinned" title="Permalink to this definition">¶</a></dt>
<dd><p>Free the pinned memory allocated by alloc_pinned</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.get_device">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">get_device</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#get_device"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.get_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the id of the current device.</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.get_device_count">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">get_device_count</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#get_device_count"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.get_device_count" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the number of devices available.</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.get_device_ptr">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">get_device_ptr</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#get_device_ptr"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.get_device_ptr" title="Permalink to this definition">¶</a></dt>
<li><p>A multi dimensional arrayfire array.</p></li>
</ul>
</dd>
</dl>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><ulclass="simple">
<li><dlclass="simple">
<dt>internal device pointer held by a</dt><dd></dd>
</dl>
</li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.get_manual_eval_flag">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">get_manual_eval_flag</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#get_manual_eval_flag"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.get_manual_eval_flag" title="Permalink to this definition">¶</a></dt>
<dd><p>Query the backend JIT engine to see if the user disabled heuristic evaluation of the JIT tree.</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.info">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">info</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#info"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.info" title="Permalink to this definition">¶</a></dt>
<dd><dlclass="simple">
<dt>Displays the information about the following:</dt><dd><ulclass="simple">
<li><p>ArrayFire build and version number.</p></li>
<li><p>The number of devices available.</p></li>
<li><p>The names of the devices.</p></li>
<li><p>The current device being used.</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.info_str">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">info_str</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">verbose</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#info_str"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.info_str" title="Permalink to this definition">¶</a></dt>
<dd><dlclass="simple">
<dt>Returns information about the following as a string:</dt><dd><ulclass="simple">
<li><p>ArrayFire version number.</p></li>
<li><p>The number of devices available.</p></li>
<li><p>The names of the devices.</p></li>
<li><p>The current device being used.</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.init">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">init</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#init"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.init" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.is_dbl_supported">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">is_dbl_supported</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">device</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#is_dbl_supported"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.is_dbl_supported" title="Permalink to this definition">¶</a></dt>
<dd><p>Check if double precision is supported on specified device.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><dlclass="simple">
<dt><strong>device: optional: int. default: None.</strong></dt><dd><p>id of the desired device.</p>
</dd>
</dl>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><ulclass="simple">
<li><dlclass="simple">
<dt>True if double precision supported.</dt><dd><ul>
<li><p>False if double precision not supported.</p></li>
</ul>
</dd>
</dl>
</li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.is_half_supported">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">is_half_supported</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">device</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#is_half_supported"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.is_half_supported" title="Permalink to this definition">¶</a></dt>
<dd><p>Check if half precision is supported on specified device.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><dlclass="simple">
<dt><strong>device: optional: int. default: None.</strong></dt><dd><p>id of the desired device.</p>
</dd>
</dl>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><ulclass="simple">
<li><dlclass="simple">
<dt>True if half precision supported.</dt><dd><ul>
<li><p>False if half precision not supported.</p></li>
</ul>
</dd>
</dl>
</li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.is_locked_array">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">is_locked_array</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#is_locked_array"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.is_locked_array" title="Permalink to this definition">¶</a></dt>
<dd><p>Check if the input array is locked by the user.</p>
<li><p>A multi dimensional arrayfire array.</p></li>
</ul>
</dd>
</dl>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><dlclass="simple">
<dt>A bool specifying if the input array is locked.</dt><dd></dd>
</dl>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.lock_array">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">lock_array</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#lock_array"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.lock_array" title="Permalink to this definition">¶</a></dt>
<dd><p>Ask arrayfire to not perform garbage collection on raw data held by an array.</p>
<li><p>A multi dimensional arrayfire array.</p></li>
</ul>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.lock_device_ptr">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">lock_device_ptr</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#lock_device_ptr"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.lock_device_ptr" title="Permalink to this definition">¶</a></dt>
<dd><p>This functions is deprecated. Please use lock_array instead.</p>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.print_mem_info">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">print_mem_info</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">title</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'Memory</span><spanclass="pre">Info'</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">device_id</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#print_mem_info"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.print_mem_info" title="Permalink to this definition">¶</a></dt>
<dd><p>Prints the memory used for the specified device.</p>
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">set_device</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">num</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#set_device"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.set_device" title="Permalink to this definition">¶</a></dt>
<dd><p>Change the active device to the specified id.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><dlclass="simple">
<dt><strong>num: int.</strong></dt><dd><p>id of the desired device.</p>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.set_manual_eval_flag">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">set_manual_eval_flag</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">flag</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#set_manual_eval_flag"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.set_manual_eval_flag" title="Permalink to this definition">¶</a></dt>
<dd><p>Tells the backend JIT engine to disable heuristics for determining when to evaluate a JIT tree.</p>
<li><p>Specifies if the heuristic evaluation of the JIT tree needs to be disabled.</p></li>
</ul>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.sync">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">sync</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">device</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#sync"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.sync" title="Permalink to this definition">¶</a></dt>
<dd><p>Block until all the functions on the device have completed execution.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><dlclass="simple">
<dt><strong>device: optional: int. default: None.</strong></dt><dd><p>id of the desired device.</p>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.unlock_array">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">unlock_array</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#unlock_array"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.unlock_array" title="Permalink to this definition">¶</a></dt>
<dd><p>Tell arrayfire to resume garbage collection on raw data held by an array.</p>
<li><p>A multi dimensional arrayfire array.</p></li>
</ul>
</dd>
</dl>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="arrayfire.device.unlock_device_ptr">
<codeclass="sig-prename descclassname"><spanclass="pre">arrayfire.device.</span></code><codeclass="sig-name descname"><spanclass="pre">unlock_device_ptr</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/arrayfire/device.html#unlock_device_ptr"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#arrayfire.device.unlock_device_ptr" title="Permalink to this definition">¶</a></dt>
<dd><p>This functions is deprecated. Please use unlock_array instead.</p>