Skip to content

Commit

Permalink
fix(clippy): On clippy fix tests if opencl not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Oct 8, 2024
1 parent 3df9c3d commit b54976f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/segfault.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use mnn::*;

/// This segfault on OpenCL backend if we print the tensorinfo
#[cfg(feature = "opencl")]
#[test]
fn test_segfault_case_1_() -> Result<(), Box<dyn std::error::Error>> {
use mnn::*;
let backend = ForwardType::OpenCL;
let realesr = std::path::Path::new("tests/assets/realesr.mnn");

Expand Down

0 comments on commit b54976f

Please sign in to comment.