tf.graph_util.extract_sub_graph
Извлечь подграф, который может достичь любого из узлов в 'dest_nodes'. (устарело)
tf.graph_util.extract_sub_graph(
graph_def, dest_nodes
)
| Аргументы | |
|---|---|
graph_def | Объект прото graph_pb2.GraphDef. |
dest_nodes | Список строк, определяющих имена узлов назначения. |
| Возвращаемое значение | |
|---|---|
| GraphDef подграфа. |
| Исключения | |
|---|---|
TypeError | Если 'graph_def' не является объектом прото graph_pb2.GraphDef. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/graph_util/extract_sub_graph