Skip to content

Commit db59d8e

Browse files
author
Dhairya Gandhi
committed
fallback return false
1 parent cd789e8 commit db59d8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nnpack/NNPACK.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const depsjl_path = joinpath(dirname(@__FILE__), "..", "..", "deps", "deps.jl")
88
if !isfile(depsjl_path)
99
error("NNPACK not installed properly, run Pkg.build(\"NNlib\"), restart Julia and try again")
1010
end
11-
include(depsjl_path)
1211

1312
const shared_threadpool_dict = Dict{UInt64, Base.RefValue}()
1413

@@ -18,7 +17,7 @@ const shared_threadpool_dict = Dict{UInt64, Base.RefValue}()
1817
Checks if the current hardware is supported by NNPACK.
1918
"""
2019
function is_nnpack_available()
21-
check_deps()
20+
check_deps() isa Nothing || return false
2221
status = nnp_initialize()
2322
if status == nnp_status_unsupported_hardware
2423
return false

0 commit comments

Comments
 (0)