diff mbox series

[FFmpeg-devel,1/2] dnn-layer-conv2d-test.c: remove dependency of dnn_native_class

Message ID 20210122025510.16419-1-yejun.guo@intel.com
State Accepted
Commit 5235634b615110dc5cf6a23141a4bd72730f4ac6
Headers show
Series [FFmpeg-devel,1/2] dnn-layer-conv2d-test.c: remove dependency of dnn_native_class
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Guo, Yejun Jan. 22, 2021, 2:55 a.m. UTC
---
 tests/dnn/dnn-layer-conv2d-test.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/tests/dnn/dnn-layer-conv2d-test.c b/tests/dnn/dnn-layer-conv2d-test.c
index 378a05eafc..b623ddac0d 100644
--- a/tests/dnn/dnn-layer-conv2d-test.c
+++ b/tests/dnn/dnn-layer-conv2d-test.c
@@ -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;