Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
fe33ce02
Commit
fe33ce02
authored
6 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13735 from dkurt:fix_13725
parents
93626394
252fd631
master
4.3.0
4.2.0
4.1.2
4.1.2-openvino
4.1.1
4.1.1-openvino
4.1.0
4.1.0-openvino
3.4.10
3.4.9
3.4.8
3.4.7
3.4.6
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tf_text_graph_common.py
samples/dnn/tf_text_graph_common.py
+2
-2
No files found.
samples/dnn/tf_text_graph_common.py
View file @
fe33ce02
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment