Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
tensorflow
提交
9ee1e726
T
tensorflow
项目概览
xxadev
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9ee1e726
编写于
3月 13, 2017
作者:
A
A. Unique TensorFlower
提交者:
TensorFlower Gardener
3月 13, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Sync the "Validate your Installation" sections
Change: 150006513
上级
2dbadb25
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
52 addition
and
57 deletion
+52
-57
tensorflow/docs_src/install/install_linux.md
tensorflow/docs_src/install/install_linux.md
+12
-16
tensorflow/docs_src/install/install_mac.md
tensorflow/docs_src/install/install_mac.md
+1
-3
tensorflow/docs_src/install/install_sources.md
tensorflow/docs_src/install/install_sources.md
+20
-19
tensorflow/docs_src/install/install_windows.md
tensorflow/docs_src/install/install_windows.md
+19
-19
未找到文件。
tensorflow/docs_src/install/install_linux.md
浏览文件 @
9ee1e726
...
...
@@ -489,31 +489,27 @@ $ <b>docker run -it gcr.io/tensorflow/tensorflow bash</b>
Invoke python from your shell as follows:
<pre>
$
<b>
python
</b>
</pre>
<pre>
$
<b>
python
</b></pre>
Then, e
nter the following short program inside the python interactive shell:
E
nter the following short program inside the python interactive shell:
<pre>
>>>
<b>import tensorflow as tf</b>
>>>
<b>hello = tf.constant('Hello, TensorFlow!')</b>
>>>
<b>sess = tf.Session()</b>
>>>
<b>print(sess.run(hello))</b>
</pre>
```
python
>>>
import
tensorflow
as
tf
>>>
hello
=
tf
.
constant
(
'Hello, TensorFlow!'
)
>>>
sess
=
tf
.
Session
()
>>>
print
(
sess
.
run
(
hello
))
```
If the system outputs the following, then you are ready to begin
running
TensorFlow programs:
If the system outputs the following, then you are ready to begin
writing
TensorFlow programs:
<pre>
Hello, TensorFlow!
</pre>
If you are new to TensorFlow, see @{$get_started$Getting Started with TensorFlow}.
If the system outputs an error message instead of a greeting, see
[
Common installation problems
](
#CommonInstallationProblems
)
.
If the system outputs an error message instead of a greeting, see
[
Common
installation problems
](
#common_installation_problems
)
.
<a
name=
"CommonInstallationProblems"
></a>
## Common installation problems
We are relying on Stack Overflow to document TensorFlow installation problems
...
...
tensorflow/docs_src/install/install_mac.md
浏览文件 @
9ee1e726
...
...
@@ -451,10 +451,8 @@ If you are new to TensorFlow, see
@{$get_started$Getting Started with TensorFlow}.
If the system outputs an error message instead of a greeting, see
[
Common installation problems
](
#
CommonInstallationP
roblems
)
.
[
Common installation problems
](
#
common_installation_p
roblems
)
.
<a
name=
"CommonInstallationProblems"
></a>
## Common installation problems
We are relying on Stack Overflow to document TensorFlow installation problems
...
...
tensorflow/docs_src/install/install_sources.md
浏览文件 @
9ee1e726
...
...
@@ -315,7 +315,7 @@ $ <b>bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pk
## Install the pip package
Invoke
`pip install`
to install that pip package.
The filename of the
`.whl
`
file depends on your platform.
The filename of the
`.whl
`
file depends on your platform.
For example, the following command will install the pip package
for TensorFlow 1.0.1 on Linux:
...
...
@@ -327,37 +327,38 @@ $ <b>sudo pip install /tmp/tensorflow_pkg/tensorflow-1.0.1-py2-none-any.whl</b>
available on the TensorFlow website are built with gcc4 that uses the older ABI.
To make the library compatible with the older abi you have to add
`-cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"`
<a
name=
"#ValidateYourInstallation"
></a>
## Validate your installation
Validate your TensorFlow installation by doing the following:
1.
Start a terminal.
Start a terminal.
2.
Change directory (
`cd`
) to any directory on your system other than
the
`tensorflow`
subdirectory from which you invoked the
`configure`
command.
Change directory (
`cd`
) to any directory on your system other than the
`tensorflow`
subdirectory from which you invoked the
`configure`
command.
3.
Invoke python:
Invoke python:
<pre>
$
<b>
python
</b></pre>
<pre>
$
<b>
python
</b></pre>
4.
Enter the following short program inside the python interactive shell:
Enter the following short program inside the python interactive shell:
<pre>
>>>
<b>
import tensorflow as tf
</b>
>>> <b>hello = tf.constant('Hello, TensorFlow!')</b>
>>> <b>sess = tf.Session()</b>
>>> <b>print(sess.run(hello))</b></pre>
```
python
>>>
import
tensorflow
as
tf
>>>
hello
=
tf
.
constant
(
'Hello, TensorFlow!'
)
>>>
sess
=
tf
.
Session
()
>>>
print
(
sess
.
run
(
hello
))
```
If the Python program outputs the following, then the installation
is successful and you can begin writing TensorFlow programs. (If you
are new to TensorFlow, see
*Getting Started with TensorFlow*
):
If the system outputs the following, then you are ready to begin writing
TensorFlow programs:
<pre>
Hello, TensorFlow!
</pre>
<pre>
Hello, TensorFlow!
</pre>
If the system generates an error message instead of a greeting, see
the next section
.
If you are new to TensorFlow, see @{$get_started$Getting Started with
TensorFlow}
.
If the system outputs an error message instead of a greeting, see
[
Common
installation problems
](
#common_installation_problems
)
.
## Common installation problems
...
...
tensorflow/docs_src/install/install_windows.md
浏览文件 @
9ee1e726
...
...
@@ -121,35 +121,35 @@ Take the following steps to install TensorFlow in an Anaconda environment:
<pre>(tensorflow)C:\> <b>pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.1-cp35-cp35m-win_amd64.whl</b> </pre>
<a
name=
"#ValidateYourInstallation"
></a>
## Validate your installation
Validate your TensorFlow installation by doing the following:
Start a terminal.
1.
Start a terminal.
2.
If you installed through Anaconda, activate your Anaconda environment.
3.
Inside that terminal, invoke python:
If you installed through Anaconda, activate your Anaconda environment.
<pre>C:\> <b>python</b> </pre>
Invoke python from your shell as follows:
4.
Enter the following short program inside the python interactive shell:
<pre>
$
<b>
python
</b></pre>
<pre>>>> <b>import tensorflow as tf</b>
>>> <b>hello = tf.constant('Hello, TensorFlow!')</b>
>>> <b>sess = tf.Session()</b>
>>> <b>print(sess.run(hello))</b>
</pre>
Enter the following short program inside the python interactive shell:
If the Python program outputs the following, then the installation
is successful and you can begin writing TensorFlow programs. (If you
are new to TensorFlow, see
@{$get_started$Getting Started with TensorFlow}.)
```
python
>>>
import
tensorflow
as
tf
>>>
hello
=
tf
.
constant
(
'Hello, TensorFlow!'
)
>>>
sess
=
tf
.
Session
()
>>>
print
(
sess
.
run
(
hello
))
```
<pre>Hello, TensorFlow!</pre>
If the system outputs the following, then you are ready to begin writing
TensorFlow programs:
If the system generates an error message instead of a greeting,
see the next section.
<pre>
Hello, TensorFlow!
</pre>
If you are new to TensorFlow, see @{$get_started$Getting Started with
TensorFlow}.
If the system outputs an error message instead of a greeting, see
[
Common
installation problems
](
#common_installation_problems
)
.
## Common installation problems
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录