Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
tensorflow
提交
1a52bb10
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,体验更适合开发者的 AI 搜索 >>
提交
1a52bb10
编写于
10月 24, 2016
作者:
Y
Yifei Feng
提交者:
GitHub
10月 24, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5146 from gunan/r0.11
Cherrypicks and rc2.
上级
40d28e24
b5a169f3
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
92 addition
and
50 deletion
+92
-50
README.md
README.md
+4
-4
tensorflow/contrib/cmake/setup.py
tensorflow/contrib/cmake/setup.py
+1
-1
tensorflow/contrib/cudnn_rnn/ops/cudnn_rnn_ops.cc
tensorflow/contrib/cudnn_rnn/ops/cudnn_rnn_ops.cc
+4
-1
tensorflow/contrib/cudnn_rnn/ops/cudnn_rnn_ops_test.cc
tensorflow/contrib/cudnn_rnn/ops/cudnn_rnn_ops_test.cc
+1
-1
tensorflow/contrib/makefile/Makefile
tensorflow/contrib/makefile/Makefile
+2
-0
tensorflow/core/public/version.h
tensorflow/core/public/version.h
+1
-1
tensorflow/core/util/strided_slice_op.cc
tensorflow/core/util/strided_slice_op.cc
+11
-4
tensorflow/g3doc/get_started/os_setup.md
tensorflow/g3doc/get_started/os_setup.md
+32
-32
tensorflow/models/rnn/translate/data_utils.py
tensorflow/models/rnn/translate/data_utils.py
+2
-0
tensorflow/python/kernel_tests/slice_op_test.py
tensorflow/python/kernel_tests/slice_op_test.py
+28
-0
tensorflow/tools/dist_test/server/Dockerfile
tensorflow/tools/dist_test/server/Dockerfile
+1
-1
tensorflow/tools/dist_test/server/Dockerfile.test
tensorflow/tools/dist_test/server/Dockerfile.test
+1
-1
tensorflow/tools/docker/Dockerfile
tensorflow/tools/docker/Dockerfile
+1
-1
tensorflow/tools/docker/Dockerfile.gpu
tensorflow/tools/docker/Dockerfile.gpu
+1
-1
tensorflow/tools/gcs_test/Dockerfile
tensorflow/tools/gcs_test/Dockerfile
+1
-1
tensorflow/tools/pip_package/setup.py
tensorflow/tools/pip_package/setup.py
+1
-1
未找到文件。
README.md
浏览文件 @
1a52bb10
...
...
@@ -33,10 +33,10 @@ and discussion.**
People who are a little more adventurous can also try our nightly binaries:
*
Linux CPU-only:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
1-cp27-none-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave)) /
[
Python 3.4
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc1-cp34-cp34m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=cpu-slave/)) /
[
Python 3.5
](
https://ci.tensorflow.org/view/Nightly/job/nightly-python35-linux-cpu/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc1
-cp35-cp35m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-python35-linux-cpu/))
*
Linux GPU:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
1-cp27-none-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-linux/)) /
[
Python 3.4
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc1-cp34-cp34m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-linux/)) /
[
Python 3.5
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3.5,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc1
-cp35-cp35m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3.5,label=gpu-linux/))
*
Mac CPU-only:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=mac1-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
1-py2-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=mac1-slave/)) /
[
Python 3
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=mac1-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc1
-py3-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=mac1-slave/))
*
Mac GPU:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-mac/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
1-py2-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-mac/)) /
[
Python 3
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-mac/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc1
-py3-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-mac/))
*
Linux CPU-only:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
2-cp27-none-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave)) /
[
Python 3.4
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc2-cp34-cp34m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=cpu-slave/)) /
[
Python 3.5
](
https://ci.tensorflow.org/view/Nightly/job/nightly-python35-linux-cpu/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc2
-cp35-cp35m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-python35-linux-cpu/))
*
Linux GPU:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
2-cp27-none-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-linux/)) /
[
Python 3.4
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc2-cp34-cp34m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-linux/)) /
[
Python 3.5
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3.5,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc2
-cp35-cp35m-linux_x86_64.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3.5,label=gpu-linux/))
*
Mac CPU-only:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=mac1-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
2-py2-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=mac1-slave/)) /
[
Python 3
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=mac1-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc2
-py3-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=mac1-slave/))
*
Mac GPU:
[
Python 2
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-mac/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
2-py2-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-mac/)) /
[
Python 3
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-mac/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc2
-py3-none-any.whl
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-mac-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON3,label=gpu-mac/))
*
[
Android
](
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-android/TF_BUILD_CONTAINER_TYPE=ANDROID,TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=NO_PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=android-slave/lastSuccessfulBuild/artifact/bazel-out/local_linux/bin/tensorflow/examples/android/tensorflow_demo.apk
)
(
[build
history](https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-android/TF_BUILD_CONTAINER_TYPE=ANDROID,TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=NO_PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=android-slave/))
#### *Try your first TensorFlow program*
...
...
tensorflow/contrib/cmake/setup.py
浏览文件 @
1a52bb10
...
...
@@ -26,7 +26,7 @@ from setuptools import find_packages, setup, Command
from
setuptools.command.install
import
install
as
InstallCommandBase
from
setuptools.dist
import
Distribution
_VERSION
=
'0.11.0rc
1
-cmake-experimental'
_VERSION
=
'0.11.0rc
2
-cmake-experimental'
REQUIRED_PACKAGES
=
[
'numpy >= 1.11.0'
,
...
...
tensorflow/contrib/cudnn_rnn/ops/cudnn_rnn_ops.cc
浏览文件 @
1a52bb10
...
...
@@ -72,7 +72,10 @@ REGISTER_OP("CudnnRNNParamsSize")
.
Attr
(
kRNNInputModeAttrs
)
.
Attr
(
kRNNDirectionAttrs
)
.
Output
(
"params_size: S"
)
.
SetShapeFn
(
shape_inference
::
ScalarShape
)
.
SetShapeFn
([](
InferenceContext
*
c
)
{
c
->
set_output
(
0
,
c
->
Vector
(
1
));
return
Status
::
OK
();
})
.
Doc
(
strings
::
StrCat
(
R"doc(
Return the params size that can be used by the Cudnn RNN model. Subsequent
weight allocation and initialization should use this size.
...
...
tensorflow/contrib/cudnn_rnn/ops/cudnn_rnn_ops_test.cc
浏览文件 @
1a52bb10
...
...
@@ -26,7 +26,7 @@ namespace tensorflow {
TEST
(
CudnnRNNOpsTest
,
ParamsSize_ShapeFn
)
{
ShapeInferenceTestOp
op
(
"CudnnRNNParamsSize"
);
INFER_OK
(
op
,
"[1];[1];[1]"
,
"[]"
);
INFER_OK
(
op
,
"[1];[1];[1]"
,
"[
1
]"
);
}
TEST
(
CudnnRNNOpsTest
,
ForwardLstm_ShapeFn
)
{
...
...
tensorflow/contrib/makefile/Makefile
浏览文件 @
1a52bb10
...
...
@@ -426,6 +426,8 @@ $(wildcard tensorflow/core/platform/*/*/*.cc) \
$(
wildcard
tensorflow/core/util/
*
.cc
)
\
$(
wildcard
tensorflow/core/util/
*
/
*
.cc
)
\
tensorflow/core/util/version_info.cc
# Remove duplicates (for version_info.cc)
CORE_CC_ALL_SRCS
:=
$(
sort
$(CORE_CC_ALL_SRCS)
)
CORE_CC_EXCLUDE_SRCS
:=
\
$(
wildcard
tensorflow/core/
*
/
*
test.cc
)
\
$(
wildcard
tensorflow/core/
*
/
*
testutil
*
)
\
...
...
tensorflow/core/public/version.h
浏览文件 @
1a52bb10
...
...
@@ -20,7 +20,7 @@ limitations under the License.
#define TF_MAJOR_VERSION 0
#define TF_MINOR_VERSION 11
#define TF_PATCH_VERSION 0rc
1
#define TF_PATCH_VERSION 0rc
2
// TF_VERSION_SUFFIX is non-empty for pre-releases (e.g. "-alpha", "-alpha.1",
// "-beta", "-rc", "-rc.1")
...
...
tensorflow/core/util/strided_slice_op.cc
浏览文件 @
1a52bb10
...
...
@@ -94,8 +94,8 @@ struct StridedSliceDenseSpec {
}
// namespace
template
<
class
T
>
static
void
BuildDenseSpec
(
const
StridedSliceSparseSpec
&
sparse
,
StridedSliceDenseSpec
*
dense
)
{
static
Status
TF_MUST_USE_RESULT
BuildDenseSpec
(
const
StridedSliceSparseSpec
&
sparse
,
StridedSliceDenseSpec
*
dense
)
{
// Build expanded begin, end, strides, begin_mask, end_mask
// to remove any ellipsis
dense
->
begin
.
resize
(
dense
->
dims
);
...
...
@@ -130,6 +130,12 @@ static void BuildDenseSpec(const StridedSliceSparseSpec& sparse,
}
else
if
((
1
<<
i
)
&
sparse
.
new_axis_mask
)
{
dense
->
final_shape_gather_indices
.
push_back
(
kNewAxis
);
}
else
{
if
(
full_index
==
dense
->
begin
.
size
())
{
return
errors
::
InvalidArgument
(
"Index out of range using input dim "
,
full_index
,
"; input has only "
,
dense
->
dims
,
" dims"
);
}
// Gather slicing spec into appropriate index
dense
->
begin
[
full_index
]
=
internal
::
SubtleMustCopy
<
T
>
(
begin_flat
(
i
));
dense
->
end
[
full_index
]
=
internal
::
SubtleMustCopy
<
T
>
(
end_flat
(
i
));
...
...
@@ -154,6 +160,7 @@ static void BuildDenseSpec(const StridedSliceSparseSpec& sparse,
}
}
}
return
Status
::
OK
();
}
Status
ValidateStridedSliceOp
(
...
...
@@ -233,9 +240,9 @@ Status ValidateStridedSliceOp(
input_shape
.
dims
(),
0
,
0
,
*
begin
,
*
end
,
*
strides
};
if
(
begin_tensor
.
dtype
()
==
DT_INT32
)
{
BuildDenseSpec
<
int32
>
(
sparse_spec
,
&
dense_spec
);
TF_RETURN_IF_ERROR
(
BuildDenseSpec
<
int32
>
(
sparse_spec
,
&
dense_spec
)
);
}
else
if
(
begin_tensor
.
dtype
()
==
DT_INT64
)
{
BuildDenseSpec
<
int64
>
(
sparse_spec
,
&
dense_spec
);
TF_RETURN_IF_ERROR
(
BuildDenseSpec
<
int64
>
(
sparse_spec
,
&
dense_spec
)
);
}
else
{
LOG
(
FATAL
)
<<
"begin must be either int32 or int64"
;
}
...
...
tensorflow/g3doc/get_started/os_setup.md
浏览文件 @
1a52bb10
...
...
@@ -63,37 +63,37 @@ Then, select the correct binary to install:
```
bash
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only, Python 2.7:
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
1
-py2-none-any.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
2
-py2-none-any.whl
# Mac OS X, GPU enabled, Python 2.7:
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
1
-py2-none-any.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
2
-py2-none-any.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp34-cp34m-linux_x86_64.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp34-cp34m-linux_x86_64.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp35-cp35m-linux_x86_64.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp35-cp35m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp35-cp35m-linux_x86_64.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp35-cp35m-linux_x86_64.whl
# Mac OS X, CPU only, Python 3.4 or 3.5:
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
1
-py3-none-any.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
2
-py3-none-any.whl
# Mac OS X, GPU enabled, Python 3.4 or 3.5:
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
1
-py3-none-any.whl
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
2
-py3-none-any.whl
```
Install TensorFlow:
...
...
@@ -159,37 +159,37 @@ Now, install TensorFlow just as you would for a regular Pip installation. First
```
bash
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only, Python 2.7:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
1
-py2-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
2
-py2-none-any.whl
# Mac OS X, GPU enabled, Python 2.7:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
1
-py2-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
2
-py2-none-any.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp34-cp34m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp34-cp34m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp35-cp35m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp35-cp35m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp35-cp35m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp35-cp35m-linux_x86_64.whl
# Mac OS X, CPU only, Python 3.4 or 3.5:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
1
-py3-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
2
-py3-none-any.whl
# Mac OS X, GPU enabled, Python 3.4 or 3.5:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
1
-py3-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
2
-py3-none-any.whl
```
Finally install TensorFlow:
...
...
@@ -298,37 +298,37 @@ select the correct binary to install:
```
bash
# Ubuntu/Linux 64-bit, CPU only, Python 2.7
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Mac OS X, CPU only, Python 2.7:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
1
-py2-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
2
-py2-none-any.whl
# Mac OS X, GPU enabled, Python 2.7:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
1
-py2-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
2
-py2-none-any.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.4
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp34-cp34m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp34-cp34m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp34-cp34m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, CPU only, Python 3.5
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
1
-cp35-cp35m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc
2
-cp35-cp35m-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5
# Requires CUDA toolkit 8.0 and CuDNN v5. For other versions, see "Install from sources" below.
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
1
-cp35-cp35m-linux_x86_64.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc
2
-cp35-cp35m-linux_x86_64.whl
# Mac OS X, CPU only, Python 3.4 or 3.5:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
1
-py3-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0rc
2
-py3-none-any.whl
# Mac OS X, GPU enabled, Python 3.4 or 3.5:
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
1
-py3-none-any.whl
(
tensorflow
)
$
export
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.11.0rc
2
-py3-none-any.whl
```
Finally install TensorFlow:
...
...
@@ -396,7 +396,7 @@ code.
code.
We also have tags with
`latest`
replaced by a released version (e.g.,
`0.11.0rc
1
-gpu`
).
`0.11.0rc
2
-gpu`
).
With Docker the installation is as follows:
...
...
@@ -785,7 +785,7 @@ $ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_pack
$
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
# The name of the .whl file will depend on your platform.
$
sudo
pip
install
/tmp/tensorflow_pkg/tensorflow-0.11.0rc
1
-py2-none-any.whl
$
sudo
pip
install
/tmp/tensorflow_pkg/tensorflow-0.11.0rc
2
-py2-none-any.whl
```
## Setting up TensorFlow for Development
...
...
tensorflow/models/rnn/translate/data_utils.py
浏览文件 @
1a52bb10
...
...
@@ -26,6 +26,7 @@ import tarfile
from
six.moves
import
urllib
from
tensorflow.python.platform
import
gfile
import
tensorflow
as
tf
# Special vocabulary symbols - we always put them at the start.
_PAD
=
b
"_PAD"
...
...
@@ -137,6 +138,7 @@ def create_vocabulary(vocabulary_path, data_path, max_vocabulary_size,
counter
+=
1
if
counter
%
100000
==
0
:
print
(
" processing line %d"
%
counter
)
line
=
tf
.
compat
.
as_bytes
(
line
)
tokens
=
tokenizer
(
line
)
if
tokenizer
else
basic_tokenizer
(
line
)
for
w
in
tokens
:
word
=
_DIGIT_RE
.
sub
(
b
"0"
,
w
)
if
normalize_digits
else
w
...
...
tensorflow/python/kernel_tests/slice_op_test.py
浏览文件 @
1a52bb10
...
...
@@ -77,6 +77,34 @@ class SliceTest(tf.test.TestCase):
slice_val
=
slice_t
.
eval
()
self
.
assertAllEqual
(
slice_val
,
inp
[
lo
:
hi
])
def
testScalarInput
(
self
):
input_val
=
0
with
self
.
test_session
()
as
sess
:
# Test with constant input; shape inference fails.
with
self
.
assertRaisesWithPredicateMatch
(
ValueError
,
"out of range"
):
tf
.
constant
(
input_val
)[:].
get_shape
()
# Test evaluating with non-constant input; kernel execution fails.
input_t
=
tf
.
placeholder
(
tf
.
int32
)
slice_t
=
input_t
[:]
with
self
.
assertRaisesWithPredicateMatch
(
tf
.
errors
.
InvalidArgumentError
,
"out of range"
):
sess
.
run
([
slice_t
],
feed_dict
=
{
input_t
:
input_val
})
def
testInvalidIndex
(
self
):
input_val
=
[
1
,
2
]
with
self
.
test_session
()
as
sess
:
# Test with constant input; shape inference fails.
with
self
.
assertRaisesWithPredicateMatch
(
ValueError
,
"out of range"
):
tf
.
constant
(
input_val
)[
1
:,
1
:].
get_shape
()
# Test evaluating with non-constant input; kernel execution fails.
input_t
=
tf
.
placeholder
(
tf
.
int32
)
slice_t
=
input_t
[
1
:,
1
:]
with
self
.
assertRaisesWithPredicateMatch
(
tf
.
errors
.
InvalidArgumentError
,
"out of range"
):
sess
.
run
([
slice_t
],
feed_dict
=
{
input_t
:
input_val
})
def
_testSliceMatrixDim0
(
self
,
x
,
begin
,
size
):
with
self
.
test_session
(
use_gpu
=
True
):
tf_ans
=
tf
.
slice
(
x
,
[
begin
,
0
],
[
size
,
x
.
shape
[
1
]]).
eval
()
...
...
tensorflow/tools/dist_test/server/Dockerfile
浏览文件 @
1a52bb10
...
...
@@ -36,7 +36,7 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
# Install TensorFlow CPU version from nightly build
RUN
pip
--no-cache-dir
install
\
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT
=
OPT,TF_BUILD_IS_PIP
=
PIP,TF_BUILD_PYTHON_VERSION
=
PYTHON2,label
=
cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT
=
OPT,TF_BUILD_IS_PIP
=
PIP,TF_BUILD_PYTHON_VERSION
=
PYTHON2,label
=
cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Copy files, including the GRPC server binary at
# server/grpc_tensorflow_server.py
...
...
tensorflow/tools/dist_test/server/Dockerfile.test
浏览文件 @
1a52bb10
...
...
@@ -42,7 +42,7 @@ RUN pip install --upgrade pandas==0.18.1
# Install TensorFlow CPU version.
RUN
pip
--
no
-
cache
-
dir
install
\
https
://
ci
.
tensorflow
.
org
/
view
/
Nightly
/
job
/
nightly
-
matrix
-
cpu
/
TF_BUILD_IS_OPT
=
OPT
,
TF_BUILD_IS_PIP
=
PIP
,
TF_BUILD_PYTHON_VERSION
=
PYTHON2
,
label
=
cpu
-
slave
/
lastSuccessfulBuild
/
artifact
/
pip_test
/
whl
/
tensorflow
-
0.11.0
rc
1
-
cp27
-
none
-
linux_x86_64
.
whl
https
://
ci
.
tensorflow
.
org
/
view
/
Nightly
/
job
/
nightly
-
matrix
-
cpu
/
TF_BUILD_IS_OPT
=
OPT
,
TF_BUILD_IS_PIP
=
PIP
,
TF_BUILD_PYTHON_VERSION
=
PYTHON2
,
label
=
cpu
-
slave
/
lastSuccessfulBuild
/
artifact
/
pip_test
/
whl
/
tensorflow
-
0.11.0
rc
2
-
cp27
-
none
-
linux_x86_64
.
whl
# Copy files, including the GRPC server binary at
# server/grpc_tensorflow_server.py
...
...
tensorflow/tools/docker/Dockerfile
浏览文件 @
1a52bb10
...
...
@@ -32,7 +32,7 @@ RUN pip --no-cache-dir install \
&&
\
python
-m
ipykernel.kernelspec
ENV
TENSORFLOW_VERSION 0.11.0rc
1
ENV
TENSORFLOW_VERSION 0.11.0rc
2
# --- DO NOT EDIT OR DELETE BETWEEN THE LINES --- #
# These lines will be edited automatically by parameterized_docker_build.sh. #
...
...
tensorflow/tools/docker/Dockerfile.gpu
浏览文件 @
1a52bb10
...
...
@@ -32,7 +32,7 @@ RUN pip --no-cache-dir install \
&& \
python -m ipykernel.kernelspec
ENV TENSORFLOW_VERSION 0.11.0rc
1
ENV TENSORFLOW_VERSION 0.11.0rc
2
# --- DO NOT EDIT OR DELETE BETWEEN THE LINES --- #
# These lines will be edited automatically by parameterized_docker_build.sh. #
...
...
tensorflow/tools/gcs_test/Dockerfile
浏览文件 @
1a52bb10
...
...
@@ -16,7 +16,7 @@ RUN ./install_google_cloud_sdk.bash --disable-prompts --install-dir=/var/gcloud
# Install nightly TensorFlow pip
RUN
pip
install
\
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT
=
OPT,TF_BUILD_IS_PIP
=
PIP,TF_BUILD_PYTHON_VERSION
=
PYTHON2,label
=
cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
1
-cp27-none-linux_x86_64.whl
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT
=
OPT,TF_BUILD_IS_PIP
=
PIP,TF_BUILD_PYTHON_VERSION
=
PYTHON2,label
=
cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc
2
-cp27-none-linux_x86_64.whl
# Copy test files
RUN
mkdir
-p
/gcs-smoke/python
...
...
tensorflow/tools/pip_package/setup.py
浏览文件 @
1a52bb10
...
...
@@ -26,7 +26,7 @@ from setuptools import find_packages, setup, Command
from
setuptools.command.install
import
install
as
InstallCommandBase
from
setuptools.dist
import
Distribution
_VERSION
=
'0.11.0rc
1
'
_VERSION
=
'0.11.0rc
2
'
REQUIRED_PACKAGES
=
[
'numpy >= 1.11.0'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录