Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement reference nGraph implementation for operations "ExperimentalDetectronDetectionOutput", "ExperimentalDetectronPriorGridGenerator" #4004

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
066daac
Commit.
vgavrilo Jul 30, 2020
c212c50
Merge remote-tracking branch 'upstream/master'
vgavrilo Jul 30, 2020
228af66
Merge remote-tracking branch 'upstream/master'
vgavrilo Aug 15, 2020
66b99ac
Merge remote-tracking branch 'upstream/master'
vgavrilo Aug 20, 2020
62b2452
Merge remote-tracking branch 'upstream/master'
vgavrilo Aug 26, 2020
dd5a343
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 1, 2020
146cfcb
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 2, 2020
11cfd32
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 2, 2020
f135fdc
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 4, 2020
14b3b49
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 11, 2020
29d798a
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 16, 2020
5aa69a3
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 16, 2020
3754f40
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 17, 2020
a211ce8
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 18, 2020
e7ae609
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 21, 2020
2ed2d5c
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 21, 2020
bdbfb81
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 25, 2020
29cfcfc
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 28, 2020
e64b285
Merge remote-tracking branch 'upstream/master'
vgavrilo Sep 29, 2020
ebf97c4
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 6, 2020
42de39d
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 13, 2020
88daad2
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 15, 2020
7084963
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 24, 2020
7f7de48
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 26, 2020
e58295d
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 28, 2020
429cf23
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 29, 2020
b9da719
Merge branch 'master' of https://github.com/vgavrilo/openvino
vgavrilo Oct 29, 2020
b9f8f9f
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 30, 2020
f61aef8
Merge remote-tracking branch 'upstream/master'
vgavrilo Oct 30, 2020
1b8a2c5
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 2, 2020
6676840
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 3, 2020
a317f50
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 9, 2020
c43795b
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 9, 2020
f55363c
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 10, 2020
ec40ea5
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 11, 2020
131eb6d
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 12, 2020
65f385f
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 16, 2020
d96448d
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 19, 2020
21716b2
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 20, 2020
f74d471
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 24, 2020
1608f4b
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 24, 2020
301148d
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 24, 2020
bc71ef8
Merge remote-tracking branch 'upstream/master'
vgavrilo Nov 26, 2020
a3261cd
Merge remote-tracking branch 'upstream/master'
vgavrilo Dec 1, 2020
748cef0
Merge remote-tracking branch 'upstream/master'
vgavrilo Dec 14, 2020
eabfc05
Merge remote-tracking branch 'upstream/master'
vgavrilo Dec 18, 2020
44dd347
Merge remote-tracking branch 'upstream/master'
vgavrilo Dec 23, 2020
4f979e0
Merge remote-tracking branch 'upstream/master'
vgavrilo Dec 25, 2020
3f1a97b
Merge remote-tracking branch 'upstream/master'
vgavrilo Dec 30, 2020
555f63c
Merge remote-tracking branch 'upstream/master'
vgavrilo Dec 31, 2020
f3d8290
Merge remote-tracking branch 'upstream/master'
vgavrilo Jan 11, 2021
2621b8c
Merge remote-tracking branch 'upstream/master'
vgavrilo Jan 14, 2021
ed5fe6f
Merge remote-tracking branch 'upstream/master'
vgavrilo Jan 19, 2021
cab4024
Merge remote-tracking branch 'upstream/master'
vgavrilo Jan 20, 2021
7fa0602
Merge remote-tracking branch 'upstream/master'
vgavrilo Jan 20, 2021
ecb6d7e
Merge remote-tracking branch 'upstream/master'
vgavrilo Jan 22, 2021
da6fd45
Merge remote-tracking branch 'upstream/master'
vgavrilo Jan 25, 2021
eeb2da7
Started to write the reference implementation for ExperimentalDetectr…
vgavrilo Jan 25, 2021
a49a4dd
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Jan 26, 2021
4722a3f
Written an implementation of the reference implementation of the nGra…
vgavrilo Jan 26, 2021
9aa0418
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Jan 26, 2021
a324079
Small fixes.
vgavrilo Jan 26, 2021
35ba20b
Started to add ExperimentalDetectronPriorGridGenerator into evaluates…
vgavrilo Jan 26, 2021
c148301
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Jan 26, 2021
a067e05
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Jan 26, 2021
9a12926
Added the reference implementation of the nGraph operation Experiment…
vgavrilo Jan 26, 2021
32e9cd9
Some code style fixes.
vgavrilo Jan 26, 2021
ca46011
Some fixes.
vgavrilo Jan 26, 2021
ef930c1
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Jan 26, 2021
574c02d
Small fix.
vgavrilo Jan 26, 2021
1f2a8a4
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Jan 26, 2021
f8dc025
Started to write the header file for the reference implementation of …
vgavrilo Jan 26, 2021
1805dbe
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 9, 2021
e09654a
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 10, 2021
22a825d
Written the calculations for the reference implementation of the nGra…
vgavrilo Feb 10, 2021
a437ef0
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 10, 2021
a3f43fa
Written postprocessing function for the reference implementation of t…
vgavrilo Feb 10, 2021
cf855c8
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 10, 2021
1f0e5c4
Code style fixes.
vgavrilo Feb 10, 2021
7d5d9b9
Code style fixes.
vgavrilo Feb 10, 2021
be21acc
Added ExperimentalDetecronDetectionOutput into evaluates_map.cpp.
vgavrilo Feb 10, 2021
020dc89
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 10, 2021
53b5551
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 11, 2021
eb79eba
Written the header file of the reference implementation of the nGraph…
vgavrilo Feb 11, 2021
d86865c
Written the draft of the calculations for the reference implementatio…
vgavrilo Feb 11, 2021
710a874
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 11, 2021
278d28f
Code style fixes.
vgavrilo Feb 11, 2021
17a9da3
Small fixes.
vgavrilo Feb 11, 2021
e31d3b6
Code style fixes.
vgavrilo Feb 11, 2021
091af08
Small fix.
vgavrilo Feb 11, 2021
2a90719
Written postprocessing for the nGraph operation ExperimentalDetectron…
vgavrilo Feb 11, 2021
a46f7aa
Code style fix.
vgavrilo Feb 11, 2021
dc2845b
Added the reference implementation of the nGraph operation Experiment…
vgavrilo Feb 11, 2021
cb68105
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 11, 2021
b682a1c
Code style fix.
vgavrilo Feb 11, 2021
aa55932
Some fixes.
vgavrilo Feb 11, 2021
4d244ea
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 12, 2021
b00f9fe
Started to write tests for evaluation of the nGraph operation Experim…
vgavrilo Feb 12, 2021
ef9c647
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 12, 2021
90d4630
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 15, 2021
70ffa88
Some fix.
vgavrilo Feb 15, 2021
3eab9f2
Code style fixes.
vgavrilo Feb 15, 2021
3852aa3
Small fix.
vgavrilo Feb 15, 2021
ab5b600
Added more tests for ExperimentalDetectronPriorGridGenerator evaluation.
vgavrilo Feb 15, 2021
4011f0d
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 15, 2021
89049ec
Code style fix.
vgavrilo Feb 15, 2021
a766d8b
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 15, 2021
5bdf58b
Written tests for evaluation of the nGraph operation ExperimentalDete…
vgavrilo Feb 16, 2021
d06eacb
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 16, 2021
1f7582b
Code style fixes.
vgavrilo Feb 16, 2021
e5f866a
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 16, 2021
0a4320a
Started to add debug prints.
vgavrilo Feb 16, 2021
73f96fc
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 16, 2021
712d122
Added more debug prints.
vgavrilo Feb 16, 2021
6445b39
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 16, 2021
e72b1aa
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 16, 2021
eeb5287
Some fixes.
vgavrilo Feb 16, 2021
5059e0e
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Feb 16, 2021
a85169a
Deleted debug prints.
vgavrilo Feb 16, 2021
ee9ebc0
Deleted redundant includes from header and implementation files of th…
vgavrilo Feb 16, 2021
8f2a251
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 3, 2021
c90a50d
Started to write tests for the reference implementation of the operat…
vgavrilo Mar 3, 2021
445108e
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 3, 2021
710ca6d
Continued to write tests for the reference implementation of the oper…
vgavrilo Mar 3, 2021
250b2ab
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 3, 2021
70a7dc1
Continued to write tests for the reference implementation of the oper…
vgavrilo Mar 3, 2021
51fbfb9
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 3, 2021
32f575f
Code style fixes.
vgavrilo Mar 3, 2021
1494727
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 3, 2021
9dceb6b
Fixed CMakeLists.txt.
vgavrilo Mar 3, 2021
0d51cc2
Continued to write tests for the reference implementation of the oper…
vgavrilo Mar 3, 2021
27e6c14
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 4, 2021
5f0cc67
Added ExperimentalDetectronDetectionOutput into runtime/interpreter/o…
vgavrilo Mar 4, 2021
c0e9cbe
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 4, 2021
95df21e
Some fix.
vgavrilo Mar 4, 2021
832f6a0
Code style fixes.
vgavrilo Mar 4, 2021
0eabb5c
Written tests for the evaluation of ExperimentalDetectronDetectionOut…
vgavrilo Mar 23, 2021
40d4cbf
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 23, 2021
269c93b
Some addition.
vgavrilo Mar 23, 2021
08ad1ff
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 23, 2021
0289d76
Started to write tests for evaluation of the nGraph operation Experim…
vgavrilo Mar 23, 2021
38de5c5
Continued to write tests for ExperimentalDetectronROIFeatureExtractor.
vgavrilo Mar 23, 2021
fd56d37
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 23, 2021
626e561
Small fix.
vgavrilo Mar 23, 2021
6d37f4c
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 23, 2021
da8d5e5
Continued to write tests for ExperimentalDetectronROIFeatureExtractor.
vgavrilo Mar 23, 2021
1924d66
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 23, 2021
a2843f5
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Mar 29, 2021
b0a7da3
Small fixes.
vgavrilo Mar 29, 2021
624c4d3
Small fixes.
vgavrilo Mar 29, 2021
1d4095d
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 5, 2021
4d8da7a
Deleted redundant includes.
vgavrilo Apr 5, 2021
fa70fec
Deleted redundant includes.
vgavrilo Apr 5, 2021
cd9a3e8
Small fix.
vgavrilo Apr 5, 2021
189c50f
Enabled some ONNX Importer tests.
vgavrilo Apr 6, 2021
27ed869
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 6, 2021
e7e7861
Enabled some test for ONNX Importer.
vgavrilo Apr 6, 2021
7e70701
Resolved merge conflicts.
vgavrilo Apr 19, 2021
818cb1c
Small fix.
vgavrilo Apr 19, 2021
3068573
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 19, 2021
db18547
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 19, 2021
542da45
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 20, 2021
3896837
Small changes.
vgavrilo Apr 20, 2021
8b5da36
Added some debug prints.
vgavrilo Apr 20, 2021
5ff5e0e
Added more debug prints.
vgavrilo Apr 20, 2021
2d56b6e
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 20, 2021
bb32454
Added more debug prints.
vgavrilo Apr 20, 2021
b02a58c
Added more debug prints.
vgavrilo Apr 20, 2021
afca48b
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 20, 2021
02d1c90
Some fixes. Added more debug prints.
vgavrilo Apr 20, 2021
f1a6b8a
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 20, 2021
e111c0d
Some changes.
vgavrilo Apr 20, 2021
547ad0d
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 20, 2021
e26cde4
Some changes.
vgavrilo Apr 21, 2021
6505080
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 21, 2021
df8aa40
Small fix.
vgavrilo Apr 21, 2021
a592f03
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo Apr 22, 2021
def3441
Added more debug prints.
vgavrilo Apr 22, 2021
1187082
Added more debug prints.
vgavrilo Apr 22, 2021
57df2e4
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 18, 2021
3f7d3b9
Deleted the reference implementation of ExperimentalDetectronROIFeatu…
vgavrilo May 18, 2021
3f2d763
Code style fixes.
vgavrilo May 18, 2021
7c6c59b
Resolved merge conflicts.
vgavrilo May 21, 2021
bfcf135
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 24, 2021
0b88a97
Small fix.
vgavrilo May 24, 2021
349cb1f
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 25, 2021
eba8ef8
Now the nGraph reference implementation of ExperimentalDetectronPrior…
vgavrilo May 25, 2021
4200510
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 25, 2021
53afa48
Small fixes.
vgavrilo May 25, 2021
d564eec
Deleted type conversion in ngraph::runtime::reference::experimental_d…
vgavrilo May 25, 2021
501d5ed
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 25, 2021
ba1edd2
Deleted commented code.
vgavrilo May 25, 2021
d656caf
Functions get_floats() and get_integers() were moved in the separate …
vgavrilo May 26, 2021
5da6ef8
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 26, 2021
e3fcecd
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 26, 2021
4b8e263
Rewritten postprocessing of the reference implementation of the opera…
vgavrilo May 26, 2021
3c42b6f
Deleted commented code.
vgavrilo May 26, 2021
dd643c7
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 26, 2021
ba9dcab
Resolved merge conflicts.
vgavrilo May 26, 2021
f897b27
Merge remote-tracking branch 'upstream/master' into vgavrilo/referenc…
vgavrilo May 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
//*****************************************************************************
// Copyright 2017-2021 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//*****************************************************************************

#pragma once

#include <cmath>
#include <cstddef>
#include <cstdint>
#include <ngraph/runtime/host_tensor.hpp>
#include <vector>
#include "ngraph/node.hpp"
#include "ngraph/op/util/op_types.hpp"
#include "ngraph/ops.hpp"
#include "ngraph/shape_util.hpp"

namespace ngraph
{
namespace runtime
{
namespace reference
{
void experimental_detectron_detection_output(
const float* input_rois,
const float* input_deltas,
const float* input_scores,
const float* input_im_info,
const op::v6::ExperimentalDetectronDetectionOutput::Attributes& attrs,
float* output_boxes,
float* output_scores,
int32_t* output_classes);

void experimental_detectron_detection_output_postprocessing(
void* pboxes,
void* pclasses,
void* pscores,
const ngraph::element::Type output_type,
const std::vector<float>& output_boxes,
const std::vector<int32_t>& output_classes,
const std::vector<float>& output_scores,
const Shape& output_boxes_shape,
const Shape& output_classes_shape,
const Shape& output_scores_shape);
} // namespace reference
} // namespace runtime
} // namespace ngraph
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
//*****************************************************************************
// Copyright 2017-2021 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//*****************************************************************************

#pragma once

#include <cstddef>
#include <cstdint>
#include <ngraph/runtime/host_tensor.hpp>
#include <vector>
#include "ngraph/node.hpp"
#include "ngraph/op/util/op_types.hpp"
#include "ngraph/ops.hpp"
#include "ngraph/shape_util.hpp"

namespace ngraph
{
namespace runtime
{
namespace reference
{
template <typename T>
void experimental_detectron_prior_grid_generator(const T* priors,
const Shape& priors_shape,
const Shape& feature_map_shape,
const Shape& im_data_shape,
T* output_rois,
int64_t grid_h,
int64_t grid_w,
float stride_h,
float stride_w)
{
const int64_t num_priors = static_cast<int64_t>(priors_shape[0]);
const int64_t layer_width = grid_w ? grid_w : feature_map_shape[3];
const int64_t layer_height = grid_h ? grid_h : feature_map_shape[2];
const float step_w =
stride_w ? stride_w : static_cast<float>(im_data_shape[3]) / layer_width;
const float step_h =
stride_h ? stride_h : static_cast<float>(im_data_shape[2]) / layer_height;

for (int64_t h = 0; h < layer_height; ++h)
{
for (int64_t w = 0; w < layer_width; ++w)
{
for (int64_t s = 0; s < num_priors; ++s)
{
output_rois[0] = priors[4 * s + 0] + step_w * (w + 0.5f);
output_rois[1] = priors[4 * s + 1] + step_h * (h + 0.5f);
output_rois[2] = priors[4 * s + 2] + step_w * (w + 0.5f);
output_rois[3] = priors[4 * s + 3] + step_h * (h + 0.5f);
output_rois += 4;
}
}
}
}
} // namespace reference
} // namespace runtime
} // namespace ngraph
Loading