Skip to content

Commit 1d006fa

Browse files
author
ayasyrev
committed
remove comments, small fixes
1 parent 441a429 commit 1d006fa

File tree

10 files changed

+4442
-397
lines changed

10 files changed

+4442
-397
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ _
1010

1111
## How to use
1212

13-
model = Net()
13+
### Classic way
14+
15+
```python
16+
from model_constructor.constructor import *
17+
```
1418

1519
```python
1620
model = Net()
@@ -210,3 +214,31 @@ model.body.layer_0.block_0
210214
)
211215

212216

217+
218+
# Class Net
219+
220+
```python
221+
from model_constructor.net import *
222+
```
223+
224+
```python
225+
Net
226+
```
227+
228+
229+
230+
231+
model_constructor.net.Net
232+
233+
234+
235+
```python
236+
xresnet50
237+
```
238+
239+
240+
241+
242+
<model_constructor.net.Net at 0x7f459035c750>
243+
244+

docs/Net.html

Lines changed: 1730 additions & 0 deletions
Large diffs are not rendered by default.

docs/constructor.html

Lines changed: 62 additions & 171 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,22 @@ <h2 id="How-to-use">How to use<a class="anchor-link" href="#How-to-use">&#182;</
5050
</div>
5151
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
5252
<div class="text_cell_render border-box-sizing rendered_html">
53-
<p>model = Net()</p>
53+
<h3 id="Classic-way">Classic way<a class="anchor-link" href="#Classic-way">&#182;</a></h3>
54+
</div>
55+
</div>
56+
</div>
57+
<div class="cell border-box-sizing code_cell rendered">
58+
<div class="input">
5459

60+
<div class="inner_cell">
61+
<div class="input_area">
62+
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">model_constructor.constructor</span> <span class="kn">import</span> <span class="o">*</span>
63+
</pre></div>
64+
65+
</div>
5566
</div>
5667
</div>
68+
5769
</div>
5870
<div class="cell border-box-sizing code_cell rendered">
5971
<div class="input">
@@ -511,6 +523,83 @@ <h2 id="Change-activation-function">Change activation function<a class="anchor-l
511523
</div>
512524
</div>
513525

526+
</div>
527+
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
528+
<div class="text_cell_render border-box-sizing rendered_html">
529+
<h1 id="Class-Net">Class Net<a class="anchor-link" href="#Class-Net">&#182;</a></h1>
530+
</div>
531+
</div>
532+
</div>
533+
<div class="cell border-box-sizing code_cell rendered">
534+
<div class="input">
535+
536+
<div class="inner_cell">
537+
<div class="input_area">
538+
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">model_constructor.net</span> <span class="kn">import</span> <span class="o">*</span>
539+
</pre></div>
540+
541+
</div>
542+
</div>
543+
</div>
544+
545+
</div>
546+
<div class="cell border-box-sizing code_cell rendered">
547+
<div class="input">
548+
549+
<div class="inner_cell">
550+
<div class="input_area">
551+
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">Net</span>
552+
</pre></div>
553+
554+
</div>
555+
</div>
556+
</div>
557+
558+
<div class="output_wrapper">
559+
<div class="output">
560+
561+
<div class="output_area">
562+
563+
564+
565+
<div class="output_text output_subarea output_execute_result">
566+
<pre>model_constructor.net.Net</pre>
567+
</div>
568+
569+
</div>
570+
571+
</div>
572+
</div>
573+
574+
</div>
575+
<div class="cell border-box-sizing code_cell rendered">
576+
<div class="input">
577+
578+
<div class="inner_cell">
579+
<div class="input_area">
580+
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">xresnet50</span>
581+
</pre></div>
582+
583+
</div>
584+
</div>
585+
</div>
586+
587+
<div class="output_wrapper">
588+
<div class="output">
589+
590+
<div class="output_area">
591+
592+
593+
594+
<div class="output_text output_subarea output_execute_result">
595+
<pre>&lt;model_constructor.net.Net at 0x7f459035c750&gt;</pre>
596+
</div>
597+
598+
</div>
599+
600+
</div>
601+
</div>
602+
514603
</div>
515604
</div>
516605

docs/layers.html

Lines changed: 86 additions & 70 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)