forked from fastai/fastai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.collect_env.html
126 lines (91 loc) · 4.96 KB
/
utils.collect_env.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
---
title: utils.collect_env
keywords:
sidebar: home_sidebar
---
<!--
#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: docs_src/utils.collect_env.ipynb
# instructions: https://docs.fast.ai/gen_doc_main.html
-->
<div class="container" id="notebook-container">
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="Environment-Checker-Utils">Environment Checker Utils<a class="anchor-link" href="#Environment-Checker-Utils">¶</a></h2>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>Utilities for collecting/checking <code>fastai</code> user environment</p>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">fastai.utils</span> <span class="k">import</span> <span class="o">*</span>
</pre></div>
</div>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="output_wrapper">
<div class="output">
<div class="output_area">
<div class="output_markdown rendered_html output_subarea ">
<h4 id="show_install" class="doc_header"><code>show_install</code><a href="https://github.com/fastai/fastai/blob/master/fastai/utils/collect_env.py#L16" class="source_link" style="float:right">[source]</a><a class="source_link" data-toggle="collapse" data-target="#show_install-pytest" style="float:right; padding-right:10px">[test]</a></h4><blockquote><p><code>show_install</code>(<strong><code>show_nvidia_smi</code></strong>:<code>bool</code>=<strong><em><code>False</code></em></strong>)</p>
</blockquote>
<div class="collapse" id="show_install-pytest"><div class="card card-body pytest_card"><a type="button" data-toggle="collapse" data-target="#show_install-pytest" class="close" aria-label="Close"><span aria-hidden="true">×</span></a><p>Tests found for <code>show_install</code>:</p><ul><li><code>pytest -sv tests/test_utils.py::test_show_install</code> <a href="https://github.com/fastai/fastai/blob/master/tests/test_utils.py#L8" class="source_link" style="float:right">[source]</a></li></ul><p>To run tests please refer to this <a href="/dev/test.html#quick-guide">guide</a>.</p></div></div><p>Print user's setup information</p>
</div>
</div>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>without nvidia-smi printout:</p>
<p><code>python -m fastai.utils.show_install</code></p>
<p>with nvidia-smi printout:</p>
<p><code>python -m fastai.utils.show_install 1</code></p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p><a href="/utils.collect_env.html#show_install"><code>show_install</code></a></p>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="output_wrapper">
<div class="output">
<div class="output_area">
<div class="output_markdown rendered_html output_subarea ">
<h4 id="check_perf" class="doc_header"><code>check_perf</code><a href="https://github.com/fastai/fastai/blob/master/fastai/utils/collect_env.py#L150" class="source_link" style="float:right">[source]</a><a class="source_link" data-toggle="collapse" data-target="#check_perf-pytest" style="float:right; padding-right:10px">[test]</a></h4><blockquote><p><code>check_perf</code>()</p>
</blockquote>
<div class="collapse" id="check_perf-pytest"><div class="card card-body pytest_card"><a type="button" data-toggle="collapse" data-target="#check_perf-pytest" class="close" aria-label="Close"><span aria-hidden="true">×</span></a><p>Tests found for <code>check_perf</code>:</p><ul><li><code>pytest -sv tests/test_utils.py::test_check_perf</code> <a href="https://github.com/fastai/fastai/blob/master/tests/test_utils.py#L18" class="source_link" style="float:right">[source]</a></li></ul><p>To run tests please refer to this <a href="/dev/test.html#quick-guide">guide</a>.</p></div></div><p>Suggest how to improve the setup to speed things up</p>
</div>
</div>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p><code>python -m fastai.utils.check_perf</code></p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p><a href="/utils.collect_env.html#check_perf"><code>check_perf</code></a></p>
</div>
</div>
</div>
</div>