Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wux_labs
Tensorflow
提交
08bbfa18
T
Tensorflow
项目概览
wux_labs
/
Tensorflow
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
08bbfa18
编写于
8月 11, 2017
作者:
T
Taehoon Lee
提交者:
Rasmus Munk Larsen
8月 10, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos (#12195)
上级
ab96f41f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
11 addition
and
11 deletion
+11
-11
tensorflow/contrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_ops_test.py
...ntrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_ops_test.py
+6
-6
tensorflow/contrib/mpi/mpi_utils.cc
tensorflow/contrib/mpi/mpi_utils.cc
+1
-1
tensorflow/core/common_runtime/simple_placer.cc
tensorflow/core/common_runtime/simple_placer.cc
+1
-1
tensorflow/core/protobuf/rewriter_config.proto
tensorflow/core/protobuf/rewriter_config.proto
+1
-1
tensorflow/python/framework/function.py
tensorflow/python/framework/function.py
+1
-1
tensorflow/tools/docker/parameterized_docker_build.sh
tensorflow/tools/docker/parameterized_docker_build.sh
+1
-1
未找到文件。
tensorflow/contrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_ops_test.py
浏览文件 @
08bbfa18
...
...
@@ -286,14 +286,14 @@ class CudnnRNNTestSaveRestore(TensorFlowTestCase):
save_path
=
os
.
path
.
join
(
self
.
get_temp_dir
(),
"save-restore-variable-test"
)
saver
=
saver_lib
.
Saver
(
write_version
=
saver_pb2
.
SaverDef
.
V2
)
# Passing graph explictly, otherwise an old sess would be reused.
# Passing graph explic
i
tly, otherwise an old sess would be reused.
with
self
.
test_session
(
use_gpu
=
True
,
graph
=
ops
.
get_default_graph
())
as
sess
:
sess
.
run
(
variables
.
global_variables_initializer
())
params_v
=
sess
.
run
(
params
)
val
=
saver
.
save
(
sess
,
save_path
)
self
.
assertEqual
(
save_path
,
val
)
# Passing graph explictly, otherwise an old sess would be reused.
# Passing graph explic
i
tly, otherwise an old sess would be reused.
with
self
.
test_session
(
use_gpu
=
True
,
graph
=
ops
.
get_default_graph
())
as
sess
:
reset_params
=
state_ops
.
assign
(
...
...
@@ -328,14 +328,14 @@ class CudnnRNNTestSaveRestore(TensorFlowTestCase):
save_path
=
os
.
path
.
join
(
self
.
get_temp_dir
(),
"save-restore-variable-test"
)
saver
=
saver_lib
.
Saver
(
write_version
=
saver_pb2
.
SaverDef
.
V2
)
# Passing graph explictly, otherwise an old sess would be reused.
# Passing graph explic
i
tly, otherwise an old sess would be reused.
with
self
.
test_session
(
use_gpu
=
True
,
graph
=
ops
.
get_default_graph
())
as
sess
:
sess
.
run
(
variables
.
global_variables_initializer
())
params_v
=
sess
.
run
(
param_vars
)
val
=
saver
.
save
(
sess
,
save_path
)
self
.
assertEqual
(
save_path
,
val
)
# Passing graph explictly, otherwise an old sess would be reused.
# Passing graph explic
i
tly, otherwise an old sess would be reused.
with
self
.
test_session
(
use_gpu
=
True
,
graph
=
ops
.
get_default_graph
())
as
sess
:
reset_params
=
[
...
...
@@ -398,14 +398,14 @@ class CudnnRNNTestSaveRestore(TensorFlowTestCase):
params
=
params
,
is_training
=
False
)
total_sum
=
sum
(
map
(
math_ops
.
reduce_sum
,
outputs
))
# Passing graph explictly, otherwise an old sess would be reused.
# Passing graph explic
i
tly, otherwise an old sess would be reused.
with
self
.
test_session
(
use_gpu
=
True
,
graph
=
ops
.
get_default_graph
())
as
sess
:
sess
.
run
(
variables
.
global_variables_initializer
())
total_sum_v
=
sess
.
run
(
total_sum
)
val
=
saver
.
save
(
sess
,
save_path
)
self
.
assertEqual
(
save_path
,
val
)
# Passing graph explictly, otherwise an old sess would be reused.
# Passing graph explic
i
tly, otherwise an old sess would be reused.
with
self
.
test_session
(
use_gpu
=
True
,
graph
=
ops
.
get_default_graph
())
as
sess
:
reset_params
=
state_ops
.
assign
(
...
...
tensorflow/contrib/mpi/mpi_utils.cc
浏览文件 @
08bbfa18
...
...
@@ -61,7 +61,7 @@ void MPIUtils::InitMPI() {
MPI_CHECK
(
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
number_of_procs
));
MPI_CHECK
(
MPI_Get_processor_name
(
my_host_name
,
&
len
));
fprintf
(
stderr
,
"MPI Environment initiali
s
ed. Process id: %d Total processes: %d "
"MPI Environment initiali
z
ed. Process id: %d Total processes: %d "
"|| Hostname: %s
\n
"
,
proc_id
,
number_of_procs
,
my_host_name
);
}
...
...
tensorflow/core/common_runtime/simple_placer.cc
浏览文件 @
08bbfa18
...
...
@@ -682,7 +682,7 @@ Status SimplePlacer::Run() {
int
dst_root_id
=
colocation_graph
.
FindRoot
(
dst
->
id
());
auto
&
src_root
=
colocation_graph
.
members_
[
src_root_id
];
auto
&
dst_root
=
colocation_graph
.
members_
[
dst_root_id
];
// If both the source node and this node have par
it
ally
// If both the source node and this node have par
ti
ally
// specified a device, then 'node's device should be
// cleared: the reference edge forces 'node' to be on the
// same device as the source node.
...
...
tensorflow/core/protobuf/rewriter_config.proto
浏览文件 @
08bbfa18
...
...
@@ -30,7 +30,7 @@ message RewriterConfig {
// Fold constants (default is OFF)
Toggle
constant_folding
=
3
;
// If true, don't remove unecessary ops from the graph
// If true, don't remove un
n
ecessary ops from the graph
bool
disable_model_pruning
=
2
;
enum
MemOptType
{
...
...
tensorflow/python/framework/function.py
浏览文件 @
08bbfa18
...
...
@@ -584,7 +584,7 @@ class _FuncGraph(ops.Graph):
_FuncGraph overrides ops.Graph's create_op() so that we can keep
track of all inputs into every op created inside the function. If
any input is from other graphs, we keep track of it in self.capture
and substitue the input with a place holder.
and substitu
t
e the input with a place holder.
Each captured input's corresponding place holder is converted into a
function argument and the caller passes in the captured tensor.
...
...
tensorflow/tools/docker/parameterized_docker_build.sh
浏览文件 @
08bbfa18
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
# Paramterized build and test for TensorFlow Docker images.
# Param
e
terized build and test for TensorFlow Docker images.
#
# Usage:
# parameterized_docker_build.sh
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录