Skip to content

Commit 5744a4a

Browse files
authored
fix: update tracing to new Reactant API (#1636)
1 parent ae6be50 commit 5744a4a

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Lux"
22
uuid = "b2108857-7c20-44ae-9111-449ecde12c47"
33
authors = ["Avik Pal <avikpal@mit.edu> and contributors"]
4-
version = "1.29.3"
4+
version = "1.29.4"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
@@ -89,7 +89,7 @@ ZygoteExt = "Zygote"
8989

9090
[compat]
9191
ADTypes = "1.15"
92-
Adapt = "4.1"
92+
Adapt = "4.4"
9393
ArrayInterface = "7.17.1"
9494
CUDA = "5.8"
9595
ChainRulesCore = "1.25.1"
@@ -122,12 +122,12 @@ Optimisers = "0.4.6"
122122
PrecompileTools = "1.2.1"
123123
Preferences = "1.4.3"
124124
Random = "1.10"
125-
Reactant = "0.2.190"
125+
Reactant = "0.2.200"
126126
ReactantCore = "0.1.16"
127127
Reexport = "1.2.2"
128128
ReverseDiff = "1.15"
129129
SciMLPublic = "1.0.0"
130-
Setfield = "1.1.1"
130+
Setfield = "1.1.2"
131131
SimpleChains = "0.4.7"
132132
Static = "1.1.1"
133133
StaticArraysCore = "1.4.3"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ NPZ = "0.4.3"
6868
Optimisers = "0.4.6"
6969
Printf = "1.10"
7070
Random = "1.10"
71-
Reactant = "0.2.173"
71+
Reactant = "0.2.200"
7272
StableRNGs = "1"
7373
StaticArrays = "1"
7474
WeightInitializers = "1.3"

ext/ReactantExt/tracing.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ function Reactant.traced_type_inner(
33
seen,
44
@nospecialize(mode::Reactant.TraceMode),
55
@nospecialize(track_numbers::Type),
6-
@nospecialize(sharding),
6+
@nospecialize(ndevices),
77
@nospecialize(runtime)
88
) where {ST,M,psT,stT}
9-
args = (Val(mode), track_numbers, sharding, runtime)
109
return StatefulLuxLayer{
11-
ST,M,Reactant.traced_type(psT, args...),Reactant.traced_type(stT, args...)
10+
ST,
11+
M,
12+
Reactant.traced_type_inner(psT, seen, mode, track_numbers, ndevices, runtime),
13+
Reactant.traced_type_inner(stT, seen, mode, track_numbers, ndevices, runtime),
1214
}
1315
end
1416

lib/LuxCore/Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LuxCore"
22
uuid = "bb33d45b-7691-41d6-9220-0943567d0623"
33
authors = ["Avik Pal <avikpal@mit.edu> and contributors"]
4-
version = "1.5.2"
4+
version = "1.5.3"
55

66
[deps]
77
DispatchDoctor = "8d63f2c5-f18a-4cf2-ba9d-b3f60fc568c8"
@@ -33,7 +33,7 @@ ReactantExt = "Reactant"
3333
SetfieldExt = "Setfield"
3434

3535
[compat]
36-
Adapt = "4.1"
36+
Adapt = "4.4"
3737
ArrayInterface = "7.9"
3838
ChainRulesCore = "1.25.1"
3939
DispatchDoctor = "0.4.10"
@@ -42,7 +42,7 @@ Flux = "0.16.3"
4242
Functors = "0.5"
4343
MLDataDevices = "1.17"
4444
Random = "1.10"
45-
Reactant = "0.2.170"
45+
Reactant = "0.2.200"
4646
ReverseDiff = "1.15"
4747
SciMLPublic = "1.0.0"
4848
Setfield = "1"

lib/LuxCore/ext/ReactantExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Reactant.traced_type_inner(
1515
seen,
1616
@nospecialize(mode::Reactant.TraceMode),
1717
@nospecialize(track_numbers::Type),
18-
@nospecialize(sharding),
18+
@nospecialize(ndevices),
1919
@nospecialize(runtime)
2020
)
2121
return T

lib/LuxTestUtils/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ MLDataDevices = {path = "../MLDataDevices"}
2626

2727
[compat]
2828
ADTypes = "1.10"
29-
Adapt = "4.1"
29+
Adapt = "4.4"
3030
ArrayInterface = "7.17.1"
3131
ChainRulesCore = "1.25.1"
3232
ComponentArrays = "0.15.22"

lib/MLDataDevices/Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLDataDevices"
22
uuid = "7e8f7934-dd98-4c1a-8fe8-92b47a384d40"
33
authors = ["Avik Pal <avikpal@mit.edu> and contributors"]
4-
version = "1.17.1"
4+
version = "1.17.2"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -54,7 +54,7 @@ OpenCLExt = ["GPUArrays", "OpenCL"]
5454

5555
[compat]
5656
AMDGPU = "1, 2"
57-
Adapt = "4.1"
57+
Adapt = "4.4"
5858
CUDA = "5.8"
5959
ChainRules = "1.51"
6060
ChainRulesCore = "1.25.1"
@@ -67,7 +67,7 @@ Metal = "1"
6767
OneHotArrays = "0.2.10"
6868
Preferences = "1.4.3"
6969
Random = "1.10"
70-
Reactant = "0.2.170"
70+
Reactant = "0.2.200"
7171
RecursiveArrayTools = "3.8"
7272
ReverseDiff = "1.15"
7373
SciMLPublic = "1.0.0"

lib/MLDataDevices/ext/ReactantExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Reactant.traced_type_inner(
1515
seen,
1616
@nospecialize(mode::Reactant.TraceMode),
1717
@nospecialize(track_numbers::Type),
18-
@nospecialize(sharding),
18+
@nospecialize(ndevices),
1919
@nospecialize(runtime)
2020
)
2121
return T

0 commit comments

Comments
 (0)