阅读(308) (0)

TensorFlow如何在Python中操作张量图

2017-10-17 17:16:32 更新

#版权所有2015 TensorFlow作者.版权所有.

#根据Apache许可证版本2.0(“许可证”)许可;

#除非符合许可证,否则您不得使用此文件.

#您可以获得许可证的副本

#http://www.apache.org/licenses/LICENSE-2.0

#除非适用法律要求或书面同意软件

根据许可证分发的#分发在“按原样”基础上,

#无明示或暗示的任何种类的保证或条件.

#查看有关权限的特定语言的许可证

许可证下的#限制.

# =============================================== =============================

"" 操纵 python 中的张量图的帮助器.""

from __future__ import absolute_import from __future__ import division from __future__ import print_function # pylint: disable=unused-import from tensorflow.python.framework.graph_util_impl import convert_variables_to_constants from tensorflow.python.framework.graph_util_impl import extract_sub_graph from tensorflow.python.framework.graph_util_impl import must_run_on_cpu from tensorflow.python.framework.graph_util_impl import remove_training_nodes from tensorflow.python.framework.graph_util_impl import tensor_shape_from_node_def_name # pylint: enable=unused-import from tensorflow.python.util.all_util import remove_undocumented _allowed_symbols = [ # TODO(drpng): find a good place to reference this. "convert_variables_to_constants", "extract_sub_graph", "must_run_on_cpu", "tensor_shape_from_node_def_name", "remove_training_nodes", ] remove_undocumented(__name__, _allowed_symbols)