]> git.sesse.net Git - ffmpeg/commitdiff
dnn-layer-conv2d-test.c: remove dependency of dnn_native_class
authorGuo, Yejun <yejun.guo@intel.com>
Fri, 22 Jan 2021 02:39:19 +0000 (10:39 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Fri, 22 Jan 2021 04:18:03 +0000 (12:18 +0800)
tests/dnn/dnn-layer-conv2d-test.c

index 378a05eafcec05e728168cb8f1a2710b24461e1b..b623ddac0d3bf23d865704f0691103a72089e01f 100644 (file)
@@ -25,8 +25,6 @@
 
 #define EPSON 0.00001
 
-extern const AVClass dnn_native_class;
-
 static int test_with_same_dilate(void)
 {
     // the input data and expected data are generated with below python code.
@@ -99,7 +97,7 @@ static int test_with_same_dilate(void)
     float bias[2] = { -1.6574852, -0.72915393 };
 
     NativeContext ctx;
-    ctx.class = &dnn_native_class;
+    ctx.class = NULL;
     ctx.options.conv2d_threads = 1;
 
     params.activation = TANH;
@@ -203,7 +201,7 @@ static int test_with_valid(void)
     float bias[2] = { -0.4773722, -0.19620377 };
 
     NativeContext ctx;
-    ctx.class = &dnn_native_class;
+    ctx.class = NULL;
     ctx.options.conv2d_threads = 1;
 
     params.activation = TANH;