mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
Merge pull request #13735 from dkurt:fix_13725
This commit is contained in:
commit
fe33ce02af
@ -323,7 +323,7 @@ def writeTextGraph(modelPath, outputPath, outNodes):
|
|||||||
|
|
||||||
for node in graph_def.node:
|
for node in graph_def.node:
|
||||||
if node.op == 'Const':
|
if node.op == 'Const':
|
||||||
if 'value' in node.attr:
|
if 'value' in node.attr and node.attr['value'].tensor.tensor_content:
|
||||||
del node.attr['value']
|
node.attr['value'].tensor.tensor_content = ''
|
||||||
|
|
||||||
tf.train.write_graph(graph_def, "", outputPath, as_text=True)
|
tf.train.write_graph(graph_def, "", outputPath, as_text=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user