Skip to content

Commit

Permalink
Merge pull request #2059 from christiangnrd/fix_ci
Browse files Browse the repository at this point in the history
Fix the failing CI build
  • Loading branch information
ToucheSir authored Sep 7, 2022
2 parents f3160be + fb19504 commit 8bc0c35
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/utils.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using Flux
using Flux: throttle, nfan, glorot_uniform, glorot_normal,
kaiming_normal, kaiming_uniform, orthogonal, truncated_normal,
sparse_init, identity_init, stack, unstack, batch, unbatch,
sparse_init, identity_init, unstack, batch, unbatch,
unsqueeze, params, loadparams!, loadmodel!
using MLUtils
using StatsBase: var, std
using Statistics, LinearAlgebra
using Random
Expand Down Expand Up @@ -326,14 +327,14 @@ end

@testset "Stacking" begin
x = randn(3,3)
stacked = stack([x, x], dims=2)
stacked = MLUtils.stack([x, x], dims=2)
@test size(stacked) == (3,2,3)

stacked_array=[ 8 9 3 5; 9 6 6 9; 9 1 7 2; 7 4 10 6 ]
unstacked_array=[[8, 9, 9, 7], [9, 6, 1, 4], [3, 6, 7, 10], [5, 9, 2, 6]]
@test unstack(stacked_array, dims=2) == unstacked_array
@test stack(unstacked_array, dims=2) == stacked_array
@test stack(unstack(stacked_array, dims=1), dims=1) == stacked_array
@test MLUtils.stack(unstacked_array, dims=2) == stacked_array
@test MLUtils.stack(unstack(stacked_array, dims=1), dims=1) == stacked_array
end

@testset "Batching" begin
Expand Down

2 comments on commit 8bc0c35

@darsnack
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/68194

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.13.6 -m "<description of version>" 8bc0c35932c4a871ac73b42e39146cd9bbb1d446
git push origin v0.13.6

Please sign in to comment.