You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai/installation.md
+28-39Lines changed: 28 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -17,27 +17,25 @@ ms.workload:
17
17
18
18
Visual Studio Tools for AI can be installed on Windows 64-bit operating systems.
19
19
20
-
## Installing Visual Studio Tools for AI
20
+
## Install Visual Studio Tools for AI
21
21
22
-
This extension works with [Visual Studio](https://docs.microsoft.com/visualstudio/) 2015, 2017, Community edition or higher.
22
+
This extension works with Visual Studio 2015 and Visual Studio 2017, Community edition or higher.
23
23
24
-
To install, download from the [Visual Studio MarketPlace](http://aka.ms/vstoolsforai) or from within Visual Studio
24
+
To install, download from the [Visual Studio Marketplace](http://aka.ms/vstoolsforai) or from within Visual Studio
25
25
26
-
1.**Tools**> **Extensions and Updates**
26
+
1.**Tools**> **Extensions and Updates**
27
27
28
28

29
29
30
30
1.**Search** in upper right-hand corner for "Tools for AI"
31
31
2. Select **Visual Studio Tools for AI**
32
32
3. Click **Download**
33
33
34
-
35
-
## Preparing your local machine
34
+
## Prepare your local machine
36
35
37
36
Before training deep learning models on your local computer you should make sure you have the latest applicable prerequisites installed. This includes making sure the latest drivers and libraries for your NVIDIA GPU (if you have one). You should also ensure you have installed Python and Python libraries such as NumPy, SciPy, and appropriate deep learning frameworks such as Microsoft Cognitive Toolkit (CNTK), TensorFlow, Caffe2, MXNet, Keras, Theano, PyTorch and/or Chainer that you plan to use in your project.
38
37
39
38
> [!NOTE]
40
-
>
41
39
> Software introduction in the following subsections is excerpted from their homepages.
42
40
43
41
### NVIDIA GPU driver
@@ -62,23 +60,21 @@ To install CUDA
62
60
63
61
[cuDNN](https://developer.nvidia.com/cudnn) (CUDA Deep Neural Network library) is a GPU-accelerated library of primitives for deep neural networks by NVIDIA. cuDNN v6 is required by latest deep learning frameworks.
64
62
65
-
To install cuDNN
66
-
- Visit [here](https://developer.nvidia.com/rdp/cudnn-download) to download and install the latest package.
63
+
To install cuDNN:
64
+
65
+
- Visit [NVIDIA Developer](https://developer.nvidia.com/rdp/cudnn-download) to download and install the latest package.
67
66
- Ensure to add the directory containing cuDNN binary to the %PATH% or $Path environment variable.
68
67
- On Windows, you can copy cudnn64_6.dll to "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin".
69
68
70
69
> [!NOTE]
71
-
>
72
-
> Previous deep learning frameworks such as CNTK 2.0 and TensorFlow 1.2.1 need cuDNN v5.1.
73
-
> However, you can install multiple cuDNN versions together.
74
-
70
+
> Previous deep learning frameworks such as CNTK 2.0 and TensorFlow 1.2.1 need cuDNN v5.1. However, you can install multiple cuDNN versions together.
75
71
76
72
### Python
77
73
78
-
Python has been the primary programming language for deep learning applications.
79
-
**64-bit** Python distribution is required, and [Python 3.5.4](https://www.python.org/downloads/release/python-354/) is recommended for the best compatibility.
74
+
Python has been the primary programming language for deep learning applications. **64-bit** Python distribution is required, and [Python 3.5.4](https://www.python.org/downloads/release/python-354/) is recommended for the best compatibility.
80
75
81
76
### To install Python on Windows
77
+
82
78
- We suggest installing the Python launcher for yourself only, and add Python to the %PATH% environment variable.
83
79
- Ensure to install pip, which is the package management system to install and manage software packages written in Python.
84
80
@@ -119,52 +115,47 @@ Learn more about install [Python for Visual Studio Tools](../python/installing-p
119
115
120
116
- **NumPy** is a general-purpose array-processing package designed to efficiently manipulate large multi-dimensional arrays of arbitrary records without sacrificing too much speed for small multi-dimensional arrays.
121
117
122
-
- **SciPy** (pronounced "Sigh Pie") is open-source software for mathematics, science, and engineering, depending on NumPy.
123
-
Starting from version 1.0.0, SciPy now has official prebuilt wheel package for Windows.
118
+
- **SciPy** (pronounced "Sigh Pie") is open-source software for mathematics, science, and engineering, depending on NumPy. Starting from version 1.0.0, SciPy now has official prebuilt wheel package for Windows.
124
119
125
120
To install NumPy and SciPy, run the following command in a terminal:
121
+
126
122
```bash
127
123
pip3.5 install -U numpy scipy
128
124
```
129
125
130
126
> [!NOTE]
131
-
>
132
127
> The above command upgrades existing old or unofficial (e.g. third-party packages from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for Windows) NumPy and SciPy to the latest official ones.
133
128
134
129
### Microsoft Cognitive Toolkit (CNTK)
135
130
136
131
The [Microsoft Cognitive Toolkit](https://cntk.ai) is a unified deep-learning toolkit that describes neural networks as a series of computational steps via a directed graph. CNTK supports both Python and BrainScript programming languages.
137
132
138
133
> [!NOTE]
139
-
>
140
134
> CNTK currently does not support macOS.
141
135
142
136
To install CNTK Python package, see [how to install CNTK](https://docs.microsoft.com/cognitive-toolkit/Setup-CNTK-on-your-machine)
143
137
144
138
### TensorFlow
145
139
146
-
[TensorFlow](https://www.tensorflow.org/) is an open source software library for numerical computation using data flow graphs.
147
-
Refer to [here](https://www.tensorflow.org/install/) for detailed installation.
140
+
[TensorFlow](https://www.tensorflow.org/) is an open source software library for numerical computation using data flow graphs. Refer to [here](https://www.tensorflow.org/install/) for detailed installation.
148
141
149
142
> [!NOTE]
150
-
>
151
143
> As of version 1.2, TensorFlow no longer provides GPU support for macOS.
152
144
153
145
### Caffe2
154
146
155
-
[Caffe2](https://caffe2.ai/) is a lightweight, modular, and scalable deep learning framework.
156
-
Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.
147
+
[Caffe2](https://caffe2.ai/) is a lightweight, modular, and scalable deep learning framework. Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.
157
148
158
149
Currently, there's no prebuilt Caffe2 python wheel package available.
159
150
160
151
Visit [here](https://caffe2.ai/docs/getting-started.html) to build from source code.
161
152
162
153
### MXNet
163
154
164
-
[Apache MXNet (incubating)](https://mxnet.incubator.apache.org/) is a deep learning framework designed for both efficiency and flexibility.
165
-
It allows you to **mix**[symbolic and imperative programming](http://mxnet.io/architecture/index.html#deep-learning-system-design-concepts) to maximize efficiency and productivity.
155
+
[Apache MXNet (incubating)](https://mxnet.incubator.apache.org/) is a deep learning framework designed for both efficiency and flexibility. It allows you to **mix**[symbolic and imperative programming](http://mxnet.io/architecture/index.html#deep-learning-system-design-concepts) to maximize efficiency and productivity.
166
156
167
157
To install MXNet, run the following command in a terminal:
158
+
168
159
- With GPU
169
160
```bash
170
161
pip3.5 install mxnet-cu80==0.12.0
@@ -179,6 +170,7 @@ To install MXNet, run the following command in a terminal:
179
170
[Keras](https://keras.io/) is a high-level neural networks API, written in Python and capable of running on top of CNTK, TensorFlow, or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research.
180
171
181
172
To install Keras, please run the following commandin a terminal:
173
+
182
174
```bash
183
175
pip3.5 install Keras==2.0.9
184
176
```
@@ -188,20 +180,22 @@ pip3.5 install Keras==2.0.9
188
180
[Theano](http://deeplearning.net/software/theano/) is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently.
189
181
190
182
To install Theano, please run the following commandin a terminal:
183
+
191
184
```bash
192
185
pip3.5 install Theano==0.9.0
193
186
```
194
187
195
188
### PyTorch
196
189
197
190
[PyTorch](http://pytorch.org/) is a python package that provides two high-level features:
191
+
198
192
- Tensor computation (like numpy) with strong GPU acceleration
199
193
- Deep Neural Networks built on a tape-based autograd system
200
194
201
-
To install PyTorch, please run the following commandin a terminal:
195
+
To install PyTorch, run the following commandin a terminal:
202
196
203
197
- **Windows**
204
-
- There is no official wheel package yet. You may download a third-party [Anaconda PyTorch package](https://anaconda.org/peterjc123/pytorch/0.2.1/download/win-64/pytorch-0.2.1-py35h24644ff_0.2.1cu80.tar.bz2).
198
+
- There's no official wheel package yet. You can download a third-party [Anaconda PyTorch package](https://anaconda.org/pytorch/repo?type=all).
205
199
- Decompress it to your home directory, e.g. "C:\Users\test\pytorch".
206
200
- Add "C:\Users\test\pytorch\Lib\site-packages" to the %PYTHONPATH% environment variable.
207
201
@@ -210,41 +204,36 @@ To install PyTorch, please run the following command in a terminal:
[Chainer](https://chainer.org/) is a Python-based deep learning framework aiming at flexibility.
232
-
It provides automatic differentiation APIs based on the **define-by-run approach** (a.k.a. dynamic computational graphs) as well as object-oriented high-level APIs to build and train neural networks.
224
+
[Chainer](https://chainer.org/) is a Python-based deep learning framework aiming at flexibility. It provides automatic differentiation APIs based on the **define-by-run approach** (a.k.a. dynamic computational graphs) as well as object-oriented high-level APIs to build and train neural networks.
233
225
234
226
To enable CUDA support, install [CuPy](https://github.com/cupy/cupy):
227
+
235
228
```bash
236
229
pip3.5 install cupy
237
230
```
238
231
239
232
> [!NOTE]
240
-
>
241
-
> On Windows, you need **2015** version of [Microsoft Visual Studio](https://www.visualstudio.com/)
242
-
or [Microsoft Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools)
243
-
to compile CuPy with CUDA 8.0.
233
+
> On Windows, you need the 2015 version of [Visual Studio](https://visualstudio.microsoft.com/) or the [Microsoft Visual C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) to compile CuPy with CUDA 8.0.
244
234
245
235
To install Chainer, please run the following commandin a terminal:
Copy file name to clipboardExpand all lines: docs/code-quality/C26450.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ manager: douge
19
19
20
20
This warning indicates that an arithmetic operation was provably lossy at compile time. This can be asserted when the operands are all compile-time constants. Currently, we check left shift, multiplication, addition, and subtraction operations for such overflows.
21
21
22
-
Note: C4307 is a similar check in in the Microsoft C++ compiler.
22
+
Note: C4307 is a similar check in the Microsoft C++ compiler.
A method calls an overload of the <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=fullName> method that does not take a <xref:System.Windows.Forms.MessageBoxOptions?displayProperty=fullName> argument.
30
33
31
-
## Rule Description
32
-
To display a message box correctly for cultures that use a right-to-left reading order, the <xref:System.Windows.Forms.MessageBoxOptions> and <xref:System.Windows.Forms.MessageBoxOptions> members of the <xref:System.Windows.Forms.MessageBoxOptions> enumeration must be passed to the <xref:System.Windows.Forms.MessageBox.Show%2A> method. Examine the <xref:System.Windows.Forms.Control.RightToLeft%2A?displayProperty=fullName> property of the containing control to determine whether to use a right-to-left reading order.
34
+
A method calls an overload of the <xref:System.Windows.Forms.MessageBox.Show%2A?displayProperty=fullName> method that does not take a <xref:System.Windows.Forms.MessageBoxOptions?displayProperty=fullName> argument.
35
+
36
+
## Rule description
37
+
38
+
To display a message box correctly for cultures that use a right-to-left reading order, pass the [MessageBoxOptions.RightAlign](<xref:System.Windows.Forms.MessageBoxOptions.RightAlign>) and [MessageBoxOptions.RtlReading](<xref:System.Windows.Forms.MessageBoxOptions.RtlReading>) fields to the <xref:System.Windows.Forms.MessageBox.Show%2A> method. Examine the <xref:System.Windows.Forms.Control.RightToLeft%2A?displayProperty=fullName> property of the containing control to determine whether to use a right-to-left reading order.
39
+
40
+
## How to fix violations
33
41
34
-
## How to Fix Violations
35
-
To fix a violation of this rule, call an overload of the <xref:System.Windows.Forms.MessageBox.Show%2A> method that takes a <xref:System.Windows.Forms.MessageBoxOptions> argument.
42
+
To fix a violation of this rule, call an overload of the <xref:System.Windows.Forms.MessageBox.Show%2A> method that takes a <xref:System.Windows.Forms.MessageBoxOptions> argument.
36
43
37
-
## When to Suppress Warnings
38
-
It is safe to suppress a warning from this rule when the code library will not be localized for a culture that uses a right-to-left reading order.
44
+
## When to suppress warnings
45
+
46
+
It is safe to suppress a warning from this rule when the code library will not be localized for a culture that uses a right-to-left reading order.
39
47
40
48
## Example
41
-
The following example shows a method that displays a message box that has options that are appropriate for the reading order of the culture. A resource file, which is not shown, is required to build the example. Follow the comments in the example to build the example without a resource file and to test the right-to-left feature.
The following example shows a method that displays a message box that has options that are appropriate for the reading order of the culture. A resource file, which is not shown, is required to build the example. Follow the comments in the example to build the example without a resource file and to test the right-to-left feature.
0 commit comments