File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ function conv_im2col!(
45
45
N = channels_out (cdims)
46
46
K = prod (kernel_size (cdims))* channels_in (cdims)
47
47
48
- parts = Iterators. partition (axes (x, 5 ), ntasks)
48
+ parts = collect ( Iterators. partition (axes (x, 5 ), ntasks) )
49
49
50
50
@sync for task_n in 1 : ntasks
51
51
Threads. @spawn begin
@@ -150,7 +150,7 @@ function ∇conv_data_im2col!(
150
150
N = prod (kernel_size (cdims))* channels_in (cdims)
151
151
K = channels_out (cdims)
152
152
153
- parts = Iterators. partition (axes (dx, 5 ), ntasks)
153
+ parts = collect ( Iterators. partition (axes (dx, 5 ), ntasks) )
154
154
155
155
@sync for task_n in 1 : ntasks
156
156
Threads. @spawn begin
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function depthwiseconv_im2col!(
26
26
N = channel_multiplier (cdims)
27
27
K = prod (kernel_size (cdims))
28
28
29
- parts = Iterators. partition (axes (y)[end ], ntasks)
29
+ parts = collect ( Iterators. partition (axes (y)[end ], ntasks) )
30
30
31
31
dcdims = DenseConvDims (cdims)
32
32
@@ -114,7 +114,7 @@ function ∇depthwiseconv_data_im2col!(
114
114
N = prod (kernel_size (cdims))
115
115
K = channel_multiplier (cdims)
116
116
117
- parts = Iterators. partition (axes (dx)[end ], ntasks)
117
+ parts = collect ( Iterators. partition (axes (dx)[end ], ntasks) )
118
118
119
119
@sync for task_n in 1 : ntasks
120
120
Threads. @spawn begin
You can’t perform that action at this time.
0 commit comments