Skip to content

Commit fdd4b5d

Browse files
Merge pull request #2 from MicrosoftDocs/master
Merge from master.
2 parents 1bbde2e + 0b2f505 commit fdd4b5d

File tree

1,717 files changed

+14952
-55609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,717 files changed

+14952
-55609
lines changed

.openpublishing.publish.config.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
{
22
"build_entry_point": "docs",
33
"docsets_to_publish": [
4-
{
5-
"docset_name": "b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70",
6-
"build_source_folder": "b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70",
7-
"build_output_subfolder": "b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70",
8-
"locale": "en-us",
9-
"monikers": [],
10-
"moniker_ranges": [],
11-
"open_to_public_contributors": false,
12-
"type_mapping": {
13-
"Conceptual": "Content",
14-
"ManagedReference": "Content",
15-
"RestApi": "Content"
16-
},
17-
"build_entry_point": "docs",
18-
"template_folder": "_themes"
19-
},
204
{
215
"docset_name": "connected-environment",
226
"build_source_folder": "connected-environment",
@@ -129,11 +113,11 @@
129113
]
130114
},
131115
"need_generate_pdf_url_template": true,
132-
"Targets": {
133-
"Pdf": {
134-
"template_folder": "_themes.pdf"
135-
}
136-
},
116+
"targets": {
117+
"Pdf": {
118+
"template_folder": "_themes.pdf"
119+
}
120+
},
137121
"need_generate_pdf": false,
138122
"need_generate_intellisense": false
139123
}

.openpublishing.redirection.json

Lines changed: 3074 additions & 3 deletions
Large diffs are not rendered by default.

b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70/TOC.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70/breadcrumb/toc.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70/docfx.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70/index.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/ai/installation.md

Lines changed: 28 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,25 @@ ms.workload:
1717

1818
Visual Studio Tools for AI can be installed on Windows 64-bit operating systems.
1919

20-
## Installing Visual Studio Tools for AI
20+
## Install Visual Studio Tools for AI
2121

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.
2323

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
2525

26-
1. **Tools**> **Extensions and Updates**
26+
1. **Tools** > **Extensions and Updates**
2727

2828
![install CUDA on Windows](media\installation\extensions.png)
2929

3030
1. **Search** in upper right-hand corner for "Tools for AI"
3131
2. Select **Visual Studio Tools for AI**
3232
3. Click **Download**
3333

34-
35-
## Preparing your local machine
34+
## Prepare your local machine
3635

3736
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.
3837

3938
> [!NOTE]
40-
>
4139
> Software introduction in the following subsections is excerpted from their homepages.
4240
4341
### NVIDIA GPU driver
@@ -62,23 +60,21 @@ To install CUDA
6260

6361
[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.
6462

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.
6766
- Ensure to add the directory containing cuDNN binary to the %PATH% or $Path environment variable.
6867
- On Windows, you can copy cudnn64_6.dll to "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin".
6968

7069
> [!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.
7571
7672
### Python
7773

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.
8075

8176
### To install Python on Windows
77+
8278
- We suggest installing the Python launcher for yourself only, and add Python to the %PATH% environment variable.
8379
- Ensure to install pip, which is the package management system to install and manage software packages written in Python.
8480

@@ -119,52 +115,47 @@ Learn more about install [Python for Visual Studio Tools](../python/installing-p
119115
120116
- **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.
121117
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.
124119
125120
To install NumPy and SciPy, run the following command in a terminal:
121+
126122
```bash
127123
pip3.5 install -U numpy scipy
128124
```
129125

130126
> [!NOTE]
131-
>
132127
> 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.
133128
134129
### Microsoft Cognitive Toolkit (CNTK)
135130

136131
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.
137132

138133
> [!NOTE]
139-
>
140134
> CNTK currently does not support macOS.
141135
142136
To install CNTK Python package, see [how to install CNTK](https://docs.microsoft.com/cognitive-toolkit/Setup-CNTK-on-your-machine)
143137

144138
### TensorFlow
145139

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.
148141

149142
> [!NOTE]
150-
>
151143
> As of version 1.2, TensorFlow no longer provides GPU support for macOS.
152144
153145
### Caffe2
154146

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.
157148

158149
Currently, there's no prebuilt Caffe2 python wheel package available.
159150

160151
Visit [here](https://caffe2.ai/docs/getting-started.html) to build from source code.
161152

162153
### MXNet
163154

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.
166156

167157
To install MXNet, run the following command in a terminal:
158+
168159
- With GPU
169160
```bash
170161
pip3.5 install mxnet-cu80==0.12.0
@@ -179,6 +170,7 @@ To install MXNet, run the following command in a terminal:
179170
[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.
180171

181172
To install Keras, please run the following command in a terminal:
173+
182174
```bash
183175
pip3.5 install Keras==2.0.9
184176
```
@@ -188,20 +180,22 @@ pip3.5 install Keras==2.0.9
188180
[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.
189181

190182
To install Theano, please run the following command in a terminal:
183+
191184
```bash
192185
pip3.5 install Theano==0.9.0
193186
```
194187

195188
### PyTorch
196189

197190
[PyTorch](http://pytorch.org/) is a python package that provides two high-level features:
191+
198192
- Tensor computation (like numpy) with strong GPU acceleration
199193
- Deep Neural Networks built on a tape-based autograd system
200194

201-
To install PyTorch, please run the following command in a terminal:
195+
To install PyTorch, run the following command in a terminal:
202196

203197
- **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).
205199
- Decompress it to your home directory, e.g. "C:\Users\test\pytorch".
206200
- Add "C:\Users\test\pytorch\Lib\site-packages" to the %PYTHONPATH% environment variable.
207201
@@ -210,41 +204,36 @@ To install PyTorch, please run the following command in a terminal:
210204
pip3.5 install http://download.pytorch.org/whl/torch-0.2.0.post3-cp35-cp35m-macosx_10_7_x86_64.whl
211205
```
212206
> [!NOTE]
213-
>
214207
> macOS binaries don't support CUDA, install from source if CUDA is needed
215208

216209
- **Linux**
217210
```bash
218211
pip3.5 install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
219212
```
220213
> [!NOTE]
221-
>
222214
> This single package supports both GPU and CPU.
223215

224216
Finally, install torchvision on non-Windows:
217+
225218
```bash
226219
pip3.5 install torchvision
227220
```
228221

229222
### Chainer
230223

231-
[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.
233225

234226
To enable CUDA support, install [CuPy](https://github.com/cupy/cupy):
227+
235228
```bash
236229
pip3.5 install cupy
237230
```
238231

239232
> [!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.
244234

245235
To install Chainer, please run the following command in a terminal:
236+
246237
```bash
247238
pip3.5 install chainer==3.0.0
248-
```
249-
250-
239+
```

docs/code-quality/C26450.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ manager: douge
1919

2020
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.
2121

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.
2323

2424
## Example 1
2525

docs/code-quality/ca1300-specify-messageboxoptions.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ ms.assetid: 9357a724-026e-4a3d-a03a-f14635064ec6
1414
author: gewarren
1515
ms.author: gewarren
1616
manager: douge
17+
dev_langs:
18+
- CSharp
19+
- VB
1720
ms.workload:
1821
- "multiple"
1922
---
2023
# CA1300: Specify MessageBoxOptions
24+
2125
|||
2226
|-|-|
2327
|TypeName|SpecifyMessageBoxOptions|
@@ -26,23 +30,29 @@ ms.workload:
2630
|Breaking Change|Non-breaking|
2731

2832
## Cause
29-
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.
3033

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
3341

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.
3643

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.
3947

4048
## 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.
4249

43-
[!code-vb[FxCop.Globalization.SpecifyMBOptions#1](../code-quality/codesnippet/VisualBasic/ca1300-specify-messageboxoptions_1.vb)]
44-
[!code-csharp[FxCop.Globalization.SpecifyMBOptions#1](../code-quality/codesnippet/CSharp/ca1300-specify-messageboxoptions_1.cs)]
50+
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.
51+
52+
[!code-vb[FxCop.Globalization.SpecifyMBOptions#1](../code-quality/codesnippet/VisualBasic/ca1300-specify-messageboxoptions_1.vb)]
53+
[!code-csharp[FxCop.Globalization.SpecifyMBOptions#1](../code-quality/codesnippet/CSharp/ca1300-specify-messageboxoptions_1.cs)]
54+
55+
## See also
4556

46-
## See Also
47-
<xref:System.Resources.ResourceManager?displayProperty=fullName>
48-
[Resources in Desktop Apps](/dotnet/framework/resources/index)
57+
- <xref:System.Resources.ResourceManager?displayProperty=fullName>
58+
- [Resources in desktop apps (.NET Framework)](/dotnet/framework/resources/index)

0 commit comments

Comments
 (0)