mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 01:47:12 +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:
|
||||
if node.op == 'Const':
|
||||
if 'value' in node.attr:
|
||||
del node.attr['value']
|
||||
if 'value' in node.attr and node.attr['value'].tensor.tensor_content:
|
||||
node.attr['value'].tensor.tensor_content = ''
|
||||
|
||||
tf.train.write_graph(graph_def, "", outputPath, as_text=True)
|
||||
|
Loading…
Reference in New Issue
Block a user