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
+13-14Lines changed: 13 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Installing AI Tools for Visual Studio
3
-
description: Installation of AI Tools for Visual Studio
2
+
title: Install AI Tools
3
+
description: Describes how to install AI Tools for Visual Studio
4
4
keywords: ai, visual studio
5
5
author: lisawong19
6
6
ms.author: liwong
@@ -21,19 +21,20 @@ Visual Studio Tools for AI can be installed on Windows 64-bit operating systems.
21
21
22
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
+
You can download the tools from the [Visual Studio Marketplace](http://aka.ms/vstoolsforai), or from within Visual Studio:
25
25
26
-
1.**Tools** > **Extensions and Updates**
26
+
1.Select **Tools** > **Extensions and Updates**.
27
27
28
-

28
+

29
29
30
-
1.**Search** in upper right-hand corner for "Tools for AI"
31
-
2. Select **Visual Studio Tools for AI**
32
-
3. Click **Download**
30
+
2. In the **Extensions and Updates** dialog box, select **Online** on the left-hand side.
31
+
3. In the search box in the upper right-hand corner, type or enter "tools for ai".
32
+
4. Select **Visual Studio Tools for AI** from the results.
33
+
5. Click **Download**.
33
34
34
35
## Prepare your local machine
35
36
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.
37
+
Before training deep learning models on your local computer, make sure you have the applicable prerequisites installed. This includes making sure you have the latest drivers and libraries for your NVIDIA GPU (if you have one). You should also ensure you've 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 Chainer, that you plan to use in your project.
37
38
38
39
> [!NOTE]
39
40
> Software introduction in the following subsections is excerpted from their homepages.
@@ -44,17 +45,15 @@ Deep learning frameworks take advantage of NVIDIA GPU to let machines learn at a
44
45
45
46
### CUDA
46
47
47
-
[CUDA](https://developer.nvidia.com/cuda-zone) is a parallel computing platform and programming model invented by NVIDIA.
48
-
It enables dramatic increases in computing performance by harnessing the power of the GPU.
49
-
Currently, CUDA Toolkit 8.0 is required by deep learning frameworks.
48
+
[CUDA](https://developer.nvidia.com/cuda-zone) is a parallel computing platform and programming model invented by NVIDIA. It enables dramatic increases in computing performance by harnessing the power of the GPU. Currently, CUDA Toolkit 8.0 is required by deep learning frameworks.
50
49
51
50
To install CUDA
52
51
53
52
- Visit this [site](https://developer.nvidia.com/cuda-80-ga2-download-archive), download CUDA and install it.
54
53
- Make sure to install the CUDA runtime libraries, and then add CUDA binary path to the %PATH% or $Path environment variable.
55
54
- On Windows, this path is "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin" by default.
56
55
57
-

56
+

58
57
59
58
### cuDNN
60
59
@@ -80,7 +79,7 @@ Python has been the primary programming language for deep learning applications.
80
79
81
80
Deep learning frameworks rely on pip for their own installation.
82
81
83
-

82
+

84
83
85
84
Then, we need to verify whether Python 3.5 is installed correctly, and upgrade pip to the latest version by executing the following commands in a terminal:
This walkthrough builds on the demonstration in [Add a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md) by showing how to add a submenu to the **TestMenu** menu.
22
-
23
-
A submenu is a secondary menu that appears in another menu. A submenu can be identified by the arrow that follows its name. Clicking the name causes the submenu and its commands to be displayed.
24
-
25
-
This walkthrough creates a submenu in a menu on the Visual Studio menu bar and puts a new command on the submenu. The walkthrough also implements the new command.
26
-
27
-
## Prerequisites
28
-
Starting in Visual Studio 2015, you do not install the Visual Studio SDK from the download center. It is included as an optional feature in Visual Studio setup. You can also install the VS SDK later on. For more information, see [Install the Visual Studio SDK](../extensibility/installing-the-visual-studio-sdk.md).
29
-
30
-
## Add a Submenu to a Menu
31
-
32
-
1. Follow the steps in [Add a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md) to create the project and menu item. The steps in this walkthrough assume that the name of the VSIX project is `TopLevelMenu`.
33
-
34
-
2. Open *TestCommandPackage.vsct*. In the `<Symbols>` section, add an `<IDSymbol>` element for the submenu, one for the submenu group, and one for the command, all in the `<GuidSymbol>` node named "guidTopLevelMenuCmdSet." This is the same node that contains the `<IDSymbol>` element for the top-level menu.
The GUID/ID pair of the parent specifies the menu group that was generated in [Add a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md), and is a child of the top-level menu.
55
-
56
-
4. Add the menu group defined in step 2 to the `<Groups>` section and make it a child of the submenu.
6. Build the solution and start debugging. You should see the experimental instance.
78
-
79
-
7. Click **TestMenu** to see a new submenu named **Sub Menu**. Click **Sub Menu** to open the submenu and see a new command, **Test Sub Command**. Notice that clicking **Test Sub Command** does nothing.
80
-
81
-
## Add a Command
82
-
83
-
1. Open *TestCommand.cs* and add the following command ID after the existing command ID.
84
-
85
-
```csharp
86
-
public const int cmdidTestSubCmd = 0x105;
87
-
```
88
-
89
-
2. Add the sub-command. Find the command constructor. Add the following lines just after the call to the `AddCommand` method.
90
-
91
-
```csharp
92
-
CommandID subCommandID = new CommandID(CommandSet, cmdidTestSubCmd);
93
-
MenuCommand subItem = new MenuCommand(
94
-
new EventHandler(SubItemCallback), subCommandID);
95
-
commandService.AddCommand(subItem);
96
-
97
-
```
98
-
99
-
The `SubItemCallback` command handler will be defined later. The constructor should now look like this:
100
-
101
-
```csharp
102
-
private TestCommand(Package package)
103
-
{
104
-
if (package == null)
105
-
{
106
-
throw new ArgumentNullException("package");
107
-
}
108
-
109
-
this.package = package;
110
-
111
-
OleMenuCommandService commandService = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
112
-
if (commandService != null)
113
-
{
114
-
var menuCommandID = new CommandID(CommandSet, CommandId);
115
-
var menuItem = new MenuCommand(this.MenuItemCallback, menuCommandID);
116
-
commandService.AddCommand(menuItem);
117
-
CommandID subCommandID = new CommandID(CommandSet, cmdidTestSubCmd);
118
-
MenuCommand subItem = new MenuCommand(
119
-
new EventHandler(SubItemCallback), subCommandID);
120
-
commandService.AddCommand(subItem);
121
-
}
122
-
```
123
-
124
-
3. Add `SubItemCallback()`. This is the method that is called when the new command in the submenu is clicked.
4. Build the project and start debugging. The experimental instance should appear.
151
-
152
-
5. On the **TestMenu** menu, click **Sub Menu** and then click **Test Sub Command**. A message box should appear and display the text, "Test Command Inside TestCommand.SubItemCallback()".
153
-
154
-
## See also
155
-
[Add a menu to the Visual Studio menu bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md)
21
+
This walkthrough builds on the demonstration in [Add a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md) by showing how to add a submenu to the **TestMenu** menu.
22
+
23
+
A submenu is a secondary menu that appears in another menu. A submenu can be identified by the arrow that follows its name. Clicking the name causes the submenu and its commands to be displayed.
24
+
25
+
This walkthrough creates a submenu in a menu on the Visual Studio menu bar and puts a new command on the submenu. The walkthrough also implements the new command.
26
+
27
+
## Prerequisites
28
+
Starting in Visual Studio 2015, you do not install the Visual Studio SDK from the download center. It is included as an optional feature in Visual Studio setup. You can also install the VS SDK later on. For more information, see [Install the Visual Studio SDK](../extensibility/installing-the-visual-studio-sdk.md).
29
+
30
+
## Add a Submenu to a Menu
31
+
32
+
1. Follow the steps in [Add a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md) to create the project and menu item. The steps in this walkthrough assume that the name of the VSIX project is `TopLevelMenu`.
33
+
34
+
2. Open *TestCommandPackage.vsct*. In the `<Symbols>` section, add an `<IDSymbol>` element for the submenu, one for the submenu group, and one for the command, all in the `<GuidSymbol>` node named "guidTopLevelMenuCmdSet." This is the same node that contains the `<IDSymbol>` element for the top-level menu.
The GUID/ID pair of the parent specifies the menu group that was generated in [Add a Menu to the Visual Studio Menu Bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md), and is a child of the top-level menu.
55
+
56
+
4. Add the menu group defined in step 2 to the `<Groups>` section and make it a child of the submenu.
6. Build the solution and start debugging. You should see the experimental instance.
78
+
79
+
7. Click **TestMenu** to see a new submenu named **Sub Menu**. Click **Sub Menu** to open the submenu and see a new command, **Test Sub Command**. Notice that clicking **Test Sub Command** does nothing.
80
+
81
+
## Add a Command
82
+
83
+
1. Open *TestCommand.cs* and add the following command ID after the existing command ID.
84
+
85
+
```csharp
86
+
public const int cmdidTestSubCmd = 0x0105;
87
+
```
88
+
89
+
2. Add the sub-command. Find the command constructor. Add the following lines just after the call to the `AddCommand` method.
90
+
91
+
```csharp
92
+
CommandID subCommandID = new CommandID(CommandSet, cmdidTestSubCmd);
93
+
MenuCommand subItem = new MenuCommand(new EventHandler(SubItemCallback), subCommandID);
94
+
commandService.AddCommand(subItem);
95
+
```
96
+
97
+
The `SubItemCallback` command handler will be defined later. The constructor should now look like this:
98
+
99
+
```csharp
100
+
private TestCommand(Package package)
101
+
{
102
+
if (package == null)
103
+
{
104
+
throw new ArgumentNullException("package");
105
+
}
106
+
107
+
this.package = package;
108
+
109
+
OleMenuCommandService commandService = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
110
+
if (commandService != null)
111
+
{
112
+
var menuCommandID = new CommandID(CommandSet, CommandId);
113
+
var menuItem = new MenuCommand(this.MenuItemCallback, menuCommandID);
114
+
commandService.AddCommand(menuItem);
115
+
116
+
CommandID subCommandID = new CommandID(CommandSet, cmdidTestSubCmd);
117
+
MenuCommand subItem = new MenuCommand(new EventHandler(SubItemCallback), subCommandID);
118
+
commandService.AddCommand(subItem);
119
+
}
120
+
}
121
+
```
122
+
123
+
3. Add `SubItemCallback()`. This is the method that is called when the new command in the submenu is clicked.
4. Build the project and start debugging. The experimental instance should appear.
149
+
150
+
5. On the **TestMenu** menu, click **Sub Menu** and then click **Test Sub Command**. A message box should appear and display the text, "Test Command Inside TestCommand.SubItemCallback()".
151
+
152
+
## See also
153
+
[Add a menu to the Visual Studio menu bar](../extensibility/adding-a-menu-to-the-visual-studio-menu-bar.md)
156
154
[Commands, menus, and toolbars](../extensibility/internals/commands-menus-and-toolbars.md)
0 commit comments