Commit 8be7671 1 parent cc0f67d commit 8be7671 Copy full SHA for 8be7671
File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
name = " LossFunctions"
2
2
uuid = " 30fc2ffe-d236-52d8-8643-a9d8f7c094a7"
3
- version = " 0.11.1 "
3
+ version = " 0.11.2 "
4
4
5
5
[deps ]
6
6
Markdown = " d6f4376e-aef5-505a-96c1-9c027394607a"
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ using Markdown
8
8
9
9
import Base: sum
10
10
import Statistics: mean
11
- import Requires: @init , @require
11
+
12
+ if ! isdefined (Base, :get_extension )
13
+ import Requires: @require
14
+ end
12
15
13
16
# trait functions
14
17
include (" traits.jl" )
@@ -20,10 +23,12 @@ include("losses.jl")
20
23
include (" io.jl" )
21
24
22
25
# Extensions
23
- if ! isdefined (Base, :get_extension )
24
- @init @require CategoricalArrays = " 324d7699-5711-5eae-9e2f-1d82baa6b597" include (
25
- " ../ext/LossFunctionsCategoricalArraysExt.jl"
26
- )
26
+ @static if ! isdefined (Base, :get_extension )
27
+ function __init__ ()
28
+ @require CategoricalArrays = " 324d7699-5711-5eae-9e2f-1d82baa6b597" include (
29
+ " ../ext/LossFunctionsCategoricalArraysExt.jl"
30
+ )
31
+ end
27
32
end
28
33
29
34
export
You can’t perform that action at this time.
0 commit comments