Skip to content

Commit

Permalink
Minor spelling and formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-zheng committed Apr 26, 2018
1 parent afeb22c commit 6dfd997
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 93 deletions.
6 changes: 3 additions & 3 deletions Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ To install Swift for TensorFlow, download one of the packages below and follow t

5. Xcode uses the selected toolchain for building Swift code, debugging, and even code completion and syntax coloring. You’ll see a new toolchain indicator in Xcode’s toolbar when Xcode is using a Swift toolchain. Select the Xcode toolchain to go back to Xcode’s built-in tools.

<p align="center">
<img src="docs/images/Installation-XcodePreferences.png?raw=true" alt="Xcode preferences"/>
</p>
<span align="center">
<img src="docs/images/Installation-XcodePreferences.png?raw=true" alt="Select toolchain in Xcode preferences."/>
</span>

6. Selecting a Swift toolchain affects the Xcode IDE only. To use the Swift toolchain with command-line tools, add the Swift toolchain to your path as follows:

Expand Down
8 changes: 4 additions & 4 deletions Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ This was a simple demonstration of Swift for TensorFlow. To see example models w

To use Swift for TensorFlow with Xcode, you must have installed a toolchain from [this page](Installation.md).

1. Open Xcode’s `Preferences`, navigate to `Components > Toolchains`, and select the installed Swift for TensorFlow toolchain. The name of the toolchain should start with Swift for TensorFlow Development Snapshot.
1. Open Xcode’s `Preferences`, navigate to `Components > Toolchains`, and select the installed Swift for TensorFlow toolchain. The name of the toolchain should start with "Swift for TensorFlow Development Snapshot".

<span align="center">
<img src="docs/images/Installation-XcodePreferences.png?raw=true" alt="Xcode preferences"/>
<img src="docs/images/Installation-XcodePreferences.png?raw=true" alt="Select toolchain in Xcode preferences."/>
</span>

2. In the menu bar, select `File > New > Playground...`.

3. Then, select `macOS` and `Blank` and hit `Next`.

4. Choose a location for the Playground file and hit `Create`. Xcode should display your new Playground!
4. Choose a location for the Playground file and hit `Create`. Xcode should open your new Playground.

5. In the Playground, let’s try importing TensorFlow! Paste the following code:

Expand All @@ -141,4 +141,4 @@ print(x)
<img src="docs/images/Usage-Playground.png?raw=true" alt="Playground running Swift for TensorFlow."/>
</span>

Note: Xcode Playgrounds are a great interactive environment for prototyping code, but they often hang or crash. If that happens, try restarting Xcode. There are some documented bugs regarding Swift for TensorFlow and Playgrounds. If you discover a new bug, please create an issue.
**Note:** Xcode Playgrounds are a great interactive environment for prototyping code, but they often hang or crash. If that happens, try restarting Xcode. There are some documented bugs regarding Swift for TensorFlow and Playgrounds. If you discover a new bug, please file an issue.
Loading

0 comments on commit 6dfd997

Please sign in to comment.