Skip to content

Commit

Permalink
Add docs from pypose/pypose
Browse files Browse the repository at this point in the history
  • Loading branch information
pyposebot committed Aug 8, 2023
1 parent 5c379fc commit aa3a648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/preview/pr/262/_modules/pypose/func/jac/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@

<h1>Source code for pypose.func.jac</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">torch</span>
<span class="kn">from</span> <span class="nn">..</span> <span class="kn">import</span> <span class="n">retain_ltype</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Callable</span><span class="p">,</span> <span class="n">Union</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">from</span> <span class="nn">pypose.lietensor.lietensor</span> <span class="kn">import</span> <span class="n">retain_ltype</span>


<div class="viewcode-block" id="jacrev"><a class="viewcode-back" href="../../../../generated/pypose.func.jacrev/#pypose.func.jacrev">[docs]</a><span class="k">def</span> <span class="nf">jacrev</span><span class="p">(</span><span class="n">func</span><span class="p">:</span> <span class="n">Callable</span><span class="p">,</span> <span class="n">argnums</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">[</span><span class="nb">int</span><span class="p">]]</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">has_aux</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span>
Expand Down Expand Up @@ -277,7 +277,7 @@ <h1>Source code for pypose.func.jac</h1><div class="highlight"><pre>
<span class="sd"> instead returns a ``(jacobian, aux)`` tuple where ``jacobian``</span>
<span class="sd"> is the Jacobian and ``aux`` is auxiliary objects returned by ``func``.</span>

<span class="sd"> A basic usage with our LieTensor type would be the transformation function. </span>
<span class="sd"> A basic usage with our LieTensor type would be the transformation function.</span>

<span class="sd"> &gt;&gt;&gt; import pypose as pp</span>
<span class="sd"> &gt;&gt;&gt; import torch</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@
<h1>Source code for pypose.lietensor.lietensor</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">torch</span>
<span class="kn">from</span> <span class="nn">torch</span> <span class="kn">import</span> <span class="n">nn</span>
<span class="kn">from</span> <span class="nn">contextlib</span> <span class="kn">import</span> <span class="n">contextmanager</span>
<span class="kn">from</span> <span class="nn">.basics</span> <span class="kn">import</span> <span class="n">vec2skew</span>
<span class="kn">import</span> <span class="nn">collections</span><span class="o">,</span> <span class="nn">numbers</span><span class="o">,</span> <span class="nn">warnings</span><span class="o">,</span> <span class="nn">importlib</span>
<span class="kn">from</span> <span class="nn">contextlib</span> <span class="kn">import</span> <span class="n">contextmanager</span>
<span class="kn">from</span> <span class="nn">.operation</span> <span class="kn">import</span> <span class="n">broadcast_inputs</span>
<span class="kn">import</span> <span class="nn">collections</span><span class="o">,</span> <span class="nn">numbers</span><span class="o">,</span> <span class="nn">warnings</span><span class="o">,</span> <span class="nn">importlib</span>
<span class="kn">from</span> <span class="nn">torch.utils._pytree</span> <span class="kn">import</span> <span class="n">tree_map</span><span class="p">,</span> <span class="n">tree_flatten</span>
<span class="kn">from</span> <span class="nn">.operation</span> <span class="kn">import</span> <span class="n">SO3_Log</span><span class="p">,</span> <span class="n">SE3_Log</span><span class="p">,</span> <span class="n">RxSO3_Log</span><span class="p">,</span> <span class="n">Sim3_Log</span>
<span class="kn">from</span> <span class="nn">.operation</span> <span class="kn">import</span> <span class="n">so3_Exp</span><span class="p">,</span> <span class="n">se3_Exp</span><span class="p">,</span> <span class="n">rxso3_Exp</span><span class="p">,</span> <span class="n">sim3_Exp</span>
Expand Down

0 comments on commit aa3a648

Please sign in to comment.