1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Add tests for stateful kernel functionality

This commit is contained in:
TolyaTalamanov
2022-09-04 20:15:53 +01:00
parent a3d6994afa
commit bf54a370e5
2 changed files with 97 additions and 1 deletions
@@ -432,7 +432,7 @@ try:
with self.assertRaises(Exception): create_op([cv.GMat, int], [cv.GMat]).on(cv.GMat())
def test_stateful_kernel(self):
def test_state_in_class(self):
@cv.gapi.op('custom.sum', in_types=[cv.GArray.Int], out_types=[cv.GOpaque.Int])
class GSum:
@staticmethod