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

(4.x) Merge 3.4 #21535

Merged
merged 37 commits into from
Jan 31, 2022
Merged

(4.x) Merge 3.4 #21535

merged 37 commits into from
Jan 31, 2022

Conversation

alalek
Copy link
Member

@alalek alalek commented Jan 28, 2022

#21349 from alalek:cmake_link_no_undefined
#21429 from alalek:dnn_api_explicit_const_3.4
#21478 from VadimLevin:dev/vlevin/pysubmodules-initialization-fix
#21483 from alalek:cmake_highgui_opengl_update_3.4
#21490 from rogday:optional_outputs
#21497 from alalek:fix_build_gcc12_3.4
#21499 from sturkmen72:update_documentation
#21501 from sturkmen72:update_samples
#21505 from georgthegreat:patch-1
#21506 from alalek:core_fp_denormals
#21512 from vrabaud:3.4_ub_drawing
#21514 from pkubaj:patch-1
#21517 from alalek:cmake_dont_force_werror
#21521 from alalek:dnn_ignore_denormals
#21525 from VadimLevin:dev/vlevin/pysubmodules-refcounter-fix
#21527 from vrabaud:3.4_msan
#21540 from alalek:dnn_support_outputs_registration_3.4

Previous "Merge 3.4": #21480

Blocked by changes from #21490. More fixes are required. Done #21540

ci_branch=merge-3.4

force_builders=Custom,Custom Win

buildworker:Custom Win=windows-3
build_image:Custom Win=msvs2019-opengl

build_image:Custom=qt:16.04
buildworker:Custom=linux-1,linux-4,linux-6

buildworker:Docs=linux-4,linux-6
build_image:Docs=docs-js:18.04

build_image:Custom Mac=openvino-2021.4.2

alalek and others added 30 commits January 17, 2022 21:45
- Add special case handling when submodule has the same name as parent
- `PyDict_SetItemString` doesn't steal reference, so reference count
  should be explicitly decremented to transfer object life-time
  ownership
- Add sanity checks for module registration input
- avoid missing of necessary library dependencies
clang-cl defines both __clang__ and _MSC_VER, yet uses `#pragma GCC` to disable certain diagnostics.

At the time `-Wreturn-type-c-linkage` was reported by clang-cl.
This PR fixes this behavior by reordering defines.
Left shift of negative values is undefined.
hwcap should actually be long.
- improve compatibility with further compiler versions
- warnings are not errors by default
alalek and others added 2 commits January 28, 2022 15:31
* Fix wrong MSAN errors.

Because Fortran is called in Lapack, MSAN does not think the memory
has been written even though it is the case.
MSAN does no support well cross-language memory analysis.

* Make a dedicated check.
@@ -1619,7 +1654,7 @@ void ONNXImporter::parseGRU(LayerParams& layerParams, const opencv_onnx::NodePro
layerParams.type = "Reshape";
layerParams.set("dim", DictValue::arrayInt(&gruShape[0], gruShape.size()));
node_proto.set_input(0, gruParams.name); // redirect input to GRU
node_proto.set_output(0, layerParams.name); // keep origin GRU's name
node_proto.set_output(0, output_name); // keep origin GRU's name
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed to support changes from #21490

@alalek
Copy link
Member Author

alalek commented Jan 31, 2022

👍

@alalek alalek merged commit 870c8d3 into opencv:4.x Jan 31, 2022
@alalek alalek mentioned this pull request Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants