-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove Requires and move everything to extensions
- Loading branch information
Showing
11 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module NNlibForwardDiffExt | ||
|
||
using ForwardDiff: ForwardDiff | ||
using NNlib: NNlib | ||
|
||
NNlib.within_gradient(x::ForwardDiff.Dual) = true | ||
NNlib.within_gradient(x::AbstractArray{<:ForwardDiff.Dual}) = true | ||
|
||
end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module NNlibNNPACK_jllExt | ||
|
||
using NNPACK_jll, Pkg | ||
|
||
if isdefined(NNPACK_jll, :libnnpack) | ||
include("NNPACK.jl") | ||
else | ||
@warn "NNPACK not available for your platform: " * | ||
"$( Pkg.BinaryPlatforms.platform_name(Pkg.BinaryPlatforms.platform_key_abi()))" * | ||
"($( Pkg.BinaryPlatforms.triplet(Pkg.BinaryPlatforms.platform_key_abi()))) | ||
You will be able to use only the default Julia NNlib backend" | ||
end | ||
|
||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters