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
cd53144e
Commit
cd53144e
authored
Jan 31, 2020
by
ashishiva3@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit: Corrected end tensor_content parsing for StridedSlice layer.
parent
3d5ca3ef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
tf_importer.cpp
modules/dnn/src/tensorflow/tf_importer.cpp
+2
-0
test_tf_importer.cpp
modules/dnn/test/test_tf_importer.cpp
+2
-0
No files found.
modules/dnn/src/tensorflow/tf_importer.cpp
View file @
cd53144e
...
...
@@ -1468,6 +1468,8 @@ void TFImporter::populateNet(Net dstNet)
int
end_mask
=
getLayerAttr
(
layer
,
"end_mask"
).
i
();
for
(
int
i
=
0
;
i
<
num
;
++
i
)
{
if
(
ends
.
at
<
int
>
(
i
)
<
0
)
ends
.
at
<
int
>
(
i
)
-=
1
;
if
(
end_mask
&
(
1
<<
i
))
ends
.
at
<
int
>
(
i
)
=
-
1
;
if
(
strides
.
at
<
int
>
(
i
)
!=
1
)
...
...
modules/dnn/test/test_tf_importer.cpp
View file @
cd53144e
...
...
@@ -756,6 +756,8 @@ TEST_P(Test_TensorFlow_layers, slice)
(
target
==
DNN_TARGET_OPENCL
||
target
==
DNN_TARGET_OPENCL_FP16
))
applyTestTag
(
target
==
DNN_TARGET_OPENCL
?
CV_TEST_TAG_DNN_SKIP_IE_OPENCL
:
CV_TEST_TAG_DNN_SKIP_IE_OPENCL_FP16
,
CV_TEST_TAG_DNN_SKIP_IE_NN_BUILDER
);
double
l1
=
target
==
DNN_TARGET_MYRIAD
?
4.9e-3
:
default_l1
;
runTensorFlowNet
(
"crop2d"
,
false
,
l1
);
runTensorFlowNet
(
"slice_4d"
);
runTensorFlowNet
(
"strided_slice"
);
}
...
...
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