TensorFlow如何在Python中操作張量圖

2018-10-17 17:22 更新

#版權(quán)所有2015 TensorFlow作者.版權(quán)所有.

#根據(jù)Apache許可證版本2.0(“許可證”)許可;

#除非符合許可證,否則您不得使用此文件.

#您可以獲得許可證的副本

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

#除非適用法律要求或書面同意軟件

根據(jù)許可證分發(fā)的#分發(fā)在“按原樣”基礎(chǔ)上,

#無明示或暗示的任何種類的保證或條件.

#查看有關(guān)權(quán)限的特定語言的許可證

許可證下的#限制.

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

"" 操縱 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)
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號