Skip to content

Commit a4da632

Browse files
committed
version opencv
1 parent 1adbb7d commit a4da632

4 files changed

Lines changed: 2 additions & 52 deletions

File tree

3rdparty/opencv

Submodule opencv updated 160 files

app/Graph/graph_build.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ int main(int argc, char* argv[]) {
2020
std::cout << "Warning: oneDNN backend is not compatible with parallel "
2121
"execution. Disabling parallelism."
2222
<< '\n';
23-
options.setParallelBackend(
24-
ParBackend::kSeq); // Автоматически sets parallel=false
23+
options.setParallelBackend(ParBackend::kSeq);
2524
}
2625
} else if (std::string(argv[i]) == "--parallel" && i + 1 < argc) {
2726
if (options.backend == Backend::kOneDnn) {

src/layers/ConvLayer.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,9 @@ void ConvolutionalLayer::run(const std::vector<Tensor>& input,
3737
}
3838
if (options.parallel) {
3939
switch (options.par_backend) {
40-
/*case ParallelBackend::kTBB:
41-
implType_ = kTBB;
42-
break;*/
4340
case ParBackend::kThreads:
4441
implType_ = kSTL;
4542
break;
46-
// case ParallelBackend::kOMP:
47-
// implType = kOMP;
48-
// break;
49-
// case ParallelBackend::kKokkos:
50-
// implType = kKokkos;
51-
// break;
52-
// case ParallelBackend::kSycl:
53-
// implType = kSycl;
54-
// break;
5543
case ParBackend::kSeq:
5644
default:
5745
implType_ = kDefault;
@@ -114,11 +102,6 @@ void ConvolutionalLayer::run(const std::vector<Tensor>& input,
114102
group_, dilations_);
115103
break;
116104
}
117-
/*case kTBB: {
118-
Conv4DTBB<int>(input[0], kernel_, bias_, output[0], stride_, pads_,
119-
group_, dilations_);
120-
break;
121-
}*/
122105
default: {
123106
Conv4D<int>(input[0], kernel_, bias_, output[0], stride_, pads_,
124107
group_, dilations_);
@@ -187,10 +170,6 @@ void ConvolutionalLayer::run(const std::vector<Tensor>& input,
187170
pads_, group_, dilations_);
188171
break;
189172
}
190-
/*case kTBB: {
191-
Conv4DTBB<float>(input[0], kernel_, bias_, output[0], stride_,
192-
pads_, group_, dilations_); break;
193-
}*/
194173
default: {
195174
Conv4D<float>(input[0], kernel_, bias_, output[0], stride_, pads_,
196175
group_, dilations_);

src/layers/PoolingLayer.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ void PoolingLayer::run(const std::vector<Tensor>& input,
1919
case ParBackend::kTbb:
2020
implType_ = kTBB;
2121
break;
22-
/*case ParallelBackend::kSTL:
23-
implType_ = kSTL;
24-
break;*/
25-
// case ParallelBackend::kOMP:
26-
// implType = kOMP;
27-
// break;
28-
// case ParallelBackend::kKokkos:
29-
// implType = kKokkos;
30-
// break;
31-
// case ParallelBackend::kSycl:
32-
// implType = kSycl;
33-
// break;
3422
case ParBackend::kSeq:
3523
default:
3624
implType_ = kDefault;
@@ -48,14 +36,6 @@ void PoolingLayer::run(const std::vector<Tensor>& input,
4836
used_impl.get_output_shape());
4937
break;
5038
}
51-
/*case kSTL: {
52-
PoolingLayerImplSTL<int> used_impl(
53-
input[0].get_shape(), poolingShape_, strides_, pads_, dilations_,
54-
ceil_mode_, poolingType_);
55-
output[0] = make_tensor(used_impl.run(*input[0].as<int>()),
56-
used_impl.get_output_shape());
57-
break;
58-
}*/
5939
default: {
6040
PoolingLayerImpl<int> used_impl(input[0].get_shape(), poolingShape_,
6141
strides_, pads_, dilations_,
@@ -77,14 +57,6 @@ void PoolingLayer::run(const std::vector<Tensor>& input,
7757
used_impl.get_output_shape());
7858
break;
7959
}
80-
/*case kSTL: {
81-
PoolingLayerImplSTL<float> used_impl(
82-
input[0].get_shape(), poolingShape_, strides_, pads_, dilations_,
83-
ceil_mode_, poolingType_);
84-
output[0] = make_tensor(used_impl.run(*input[0].as<float>()),
85-
used_impl.get_output_shape());
86-
break;
87-
}*/
8860
default: {
8961
PoolingLayerImpl<float> used_impl(input[0].get_shape(), poolingShape_,
9062
strides_, pads_, dilations_,

0 commit comments

Comments
 (0)