1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Allowed int64 constants in ONNX parser (#25148)

* Removed automatic int64 to int32 conversion in ONNX parser

* Fixed wrong rebase code

* added tests, minor fixes

* fixed Cast layer

* Fixed Cast layer for fp16 backend

* Fixed Cast layer for fp16 backend

* Fixed Cast layer for fp16 backend

* Allowed uint32, int64, uint64 types in OpenCL

* Fixed Cast layer for fp16 backend

* Use randu in test_int

---------

Co-authored-by: Alexander Lyulkov <alexander.lyulkov@opencv.ai>
This commit is contained in:
alexlyulkov
2024-03-13 11:48:23 +03:00
committed by GitHub
parent de29223217
commit 85cc02f4de
12 changed files with 557 additions and 134 deletions
@@ -1188,6 +1188,11 @@ CV__DNN_INLINE_NS_BEGIN
static Ptr<GroupNormLayer> create(const LayerParams &params);
};
class CV_EXPORTS CastLayer : public Layer {
public:
static Ptr<CastLayer> create(const LayerParams &params);
};
//! @}
//! @}
CV__DNN_INLINE_NS_END