Skip to content

Commit 8bc0c35

Browse files
authored
Merge pull request #2059 from christiangnrd/fix_ci
Fix the failing CI build
2 parents f3160be + fb19504 commit 8bc0c35

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/utils.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using Flux
22
using Flux: throttle, nfan, glorot_uniform, glorot_normal,
33
kaiming_normal, kaiming_uniform, orthogonal, truncated_normal,
4-
sparse_init, identity_init, stack, unstack, batch, unbatch,
4+
sparse_init, identity_init, unstack, batch, unbatch,
55
unsqueeze, params, loadparams!, loadmodel!
6+
using MLUtils
67
using StatsBase: var, std
78
using Statistics, LinearAlgebra
89
using Random
@@ -326,14 +327,14 @@ end
326327

327328
@testset "Stacking" begin
328329
x = randn(3,3)
329-
stacked = stack([x, x], dims=2)
330+
stacked = MLUtils.stack([x, x], dims=2)
330331
@test size(stacked) == (3,2,3)
331332

332333
stacked_array=[ 8 9 3 5; 9 6 6 9; 9 1 7 2; 7 4 10 6 ]
333334
unstacked_array=[[8, 9, 9, 7], [9, 6, 1, 4], [3, 6, 7, 10], [5, 9, 2, 6]]
334335
@test unstack(stacked_array, dims=2) == unstacked_array
335-
@test stack(unstacked_array, dims=2) == stacked_array
336-
@test stack(unstack(stacked_array, dims=1), dims=1) == stacked_array
336+
@test MLUtils.stack(unstacked_array, dims=2) == stacked_array
337+
@test MLUtils.stack(unstack(stacked_array, dims=1), dims=1) == stacked_array
337338
end
338339

339340
@testset "Batching" begin

0 commit comments

Comments
 (0)