File tree 5 files changed +4
-8
lines changed
5 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
name = " MLUtils"
2
2
uuid = " f1d291b0-491e-4a28-83b9-f70985020b54"
3
3
authors = [
" Carlo Lucibello <[email protected] > and contributors" ]
4
- version = " 0.4.2 "
4
+ version = " 0.4.3 "
5
5
6
6
[deps ]
7
7
ChainRulesCore = " d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
8
8
Compat = " 34da2185-b29b-5c13-b0c7-acf172513d20"
9
9
DataAPI = " 9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
10
10
DelimitedFiles = " 8bb1440f-4735-579b-a4ab-409b98df4dab"
11
11
FLoops = " cc61a311-1640-44b5-9fba-1b764f453329"
12
- FoldsThreads = " 9c68100b-dfe1-47cf-94c8-95104e173443"
13
12
NNlib = " 872c559c-99b0-510c-b3b7-b6c96a88d5cd"
14
13
Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
15
14
ShowCases = " 605ecd9f-84a6-4c9e-81e2-4798472b76a3"
@@ -25,7 +24,6 @@ Compat = "4.2"
25
24
DataAPI = " 1.0"
26
25
DelimitedFiles = " 1.0"
27
26
FLoops = " 0.2"
28
- FoldsThreads = " 0.1"
29
27
NNlib = " 0.8"
30
28
ShowCases = " 0.1"
31
29
SimpleTraits = " 0.9"
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ using Statistics
5
5
using ShowCases: ShowLimit
6
6
using FLoops: @floop
7
7
using FLoops. Transducers: Executor, ThreadedEx
8
- using FoldsThreads: TaskPoolEx
9
8
import StatsBase: sample
10
9
using Transducers
11
10
using Tables
Original file line number Diff line number Diff line change 73
73
# since `ThreadedEx` has shown to be more performant. This may
74
74
# change in the future.
75
75
# See PR 33 https://github.com/JuliaML/MLUtils.jl/pull/33
76
- _default_executor () = TaskPoolEx (basesize = 1 , background = Threads . nthreads () > 1 )
76
+ _default_executor () = ThreadedEx ( )
77
77
78
78
79
79
# ## Internals
Original file line number Diff line number Diff line change 8
8
@test length (unique (X_)) == 10
9
9
end
10
10
11
- @testset " With `TaskPoolEx `" begin
12
- iter = eachobsparallel (collect (1 : 10 ); executor = TaskPoolEx ())
11
+ @testset " With `ThreadedEx `" begin
12
+ iter = eachobsparallel (collect (1 : 10 ); executor = ThreadedEx ())
13
13
@test_nowarn for i in iter end
14
14
X_ = collect (iter)
15
15
@test all (x ∈ 1 : 10 for x in X_)
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ using SparseArrays
6
6
using Random, Statistics
7
7
using Test
8
8
using Transducers
9
- using FoldsThreads: TaskPoolEx
10
9
using ChainRulesTestUtils: test_rrule
11
10
using Zygote: ZygoteRuleConfig
12
11
using ChainRulesCore: rrule_via_ad
You can’t perform that action at this time.
0 commit comments