Skip to content

Commit 7900af5

Browse files
authored
fix: bypass reactant in get_device (#1649)
1 parent 5b24b62 commit 7900af5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/MLDataDevices/Project.toml

Lines changed: 1 addition & 1 deletion
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.2"
4+
version = "1.17.3"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

lib/MLDataDevices/src/internal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ for op in (:get_device, :get_device_type)
201201
@warn $(some_not_assigned_msg)
202202
x = x[is_assigned_idxs]
203203
end
204-
return mapreduce(MLDataDevices.$(op), combine_devices, x)
204+
return mapfoldl(MLDataDevices.$(op), combine_devices, x)
205205
end
206206
if hasmethod(parent, Tuple{typeof(x)})
207207
parent_x = parent(x)

0 commit comments

Comments
 (0)