Skip to content

Commit

Permalink
[doc_push][main] built from 8a18b70 (main). Redirects: main -> 0.7.0d…
Browse files Browse the repository at this point in the history
…ev0.
  • Loading branch information
TorchX CI Runner committed Apr 12, 2024
1 parent bb57336 commit 8b8f0f3
Show file tree
Hide file tree
Showing 12 changed files with 719 additions and 711 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 0 additions & 7 deletions 0.7.0dev0/_modules/torchx/specs/builders.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,6 @@ <h1>Source code for torchx.specs.builders</h1><div class="highlight"><pre>

<span class="kn">from</span> <span class="nn">.api</span> <span class="kn">import</span> <span class="n">AppDef</span><span class="p">,</span> <span class="n">DeviceMount</span>

<span class="n">ENV_TORCHX_COMPONENT_ARGS</span> <span class="o">=</span> <span class="s2">&quot;TORCHX_COMPONENT_ARGS&quot;</span>


<span class="k">def</span> <span class="nf">_create_args_parser</span><span class="p">(</span>
<span class="n">cmpnt_fn</span><span class="p">:</span> <span class="n">Callable</span><span class="p">[</span><span class="o">...</span><span class="p">,</span> <span class="n">AppDef</span><span class="p">],</span>
Expand Down Expand Up @@ -539,7 +537,6 @@ <h1>Source code for torchx.specs.builders</h1><div class="highlight"><pre>
<span class="n">cmpnt_args</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">],</span>
<span class="n">cmpnt_defaults</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">Any</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">config</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">Any</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">component_args_string</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">AppDef</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Creates an application by running user defined ``app_fn``.</span>
Expand Down Expand Up @@ -594,10 +591,6 @@ <h1>Source code for torchx.specs.builders</h1><div class="highlight"><pre>

<span class="n">appdef</span> <span class="o">=</span> <span class="n">cmpnt_fn</span><span class="p">(</span><span class="o">*</span><span class="n">function_args</span><span class="p">,</span> <span class="o">*</span><span class="n">var_arg</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>

<span class="k">if</span> <span class="n">component_args_string</span><span class="p">:</span>
<span class="k">for</span> <span class="n">role</span> <span class="ow">in</span> <span class="n">appdef</span><span class="o">.</span><span class="n">roles</span><span class="p">:</span>
<span class="n">role</span><span class="o">.</span><span class="n">env</span><span class="p">[</span><span class="n">ENV_TORCHX_COMPONENT_ARGS</span><span class="p">]</span> <span class="o">=</span> <span class="n">component_args_string</span>

<span class="k">return</span> <span class="n">appdef</span>


Expand Down
300 changes: 154 additions & 146 deletions 0.7.0dev0/custom_components.html

Large diffs are not rendered by default.

Loading

0 comments on commit 8b8f0f3

Please sign in to comment.