@@ -116,23 +116,23 @@ end
116
116
end
117
117
118
118
@testset " cat" begin
119
- @test compare (hcat, AT, rand (3 ), rand (3 ))
120
- @test compare (hcat, AT, rand (), rand (1 , 3 ))
121
- @test compare (hcat, AT, rand (1 , 3 ), rand ())
122
- @test compare (hcat, AT, rand (3 ), rand (3 , 3 ))
123
- @test compare (hcat, AT, rand (3 , 3 ), rand (3 ))
124
- @test compare (hcat, AT, rand (3 , 3 ), rand (3 , 3 ))
125
- # @test compare(hcat, AT, rand(), rand(3, 3))
126
- # @test compare(hcat, AT, rand(3, 3), rand())
127
-
128
- @test compare (vcat, AT, rand (3 ), rand (3 ))
129
- @test compare (vcat, AT, rand (3 , 3 ), rand (3 , 3 ))
130
- @test compare (vcat, AT, rand (), rand (3 ))
131
- @test compare (vcat, AT, rand (3 ), rand ())
132
- @test compare (vcat, AT, rand (), rand (3 , 3 ))
133
- # @test compare(vcat, AT, rand(3, 3), rand())
134
-
135
- @test compare ((a,b) -> cat (a, b; dims= 4 ), AT, rand (3 , 4 ), rand (3 , 4 ))
119
+ @test compare (hcat, AT, rand (Float32, 3 ), rand (Float32, 3 ))
120
+ @test compare (hcat, AT, rand (Float32, ), rand (Float32, 1 , 3 ))
121
+ @test compare (hcat, AT, rand (Float32, 1 , 3 ), rand (Float32 ))
122
+ @test compare (hcat, AT, rand (Float32, 3 ), rand (Float32, 3 , 3 ))
123
+ @test compare (hcat, AT, rand (Float32, 3 , 3 ), rand (Float32, 3 ))
124
+ @test compare (hcat, AT, rand (Float32, 3 , 3 ), rand (Float32, 3 , 3 ))
125
+ # @test compare(hcat, AT, rand(Float32, ), rand(Float32, 3, 3))
126
+ # @test compare(hcat, AT, rand(Float32, 3, 3), rand(Float32 ))
127
+
128
+ @test compare (vcat, AT, rand (Float32, 3 ), rand (Float32, 3 ))
129
+ @test compare (vcat, AT, rand (Float32, 3 , 3 ), rand (Float32, 3 , 3 ))
130
+ @test compare (vcat, AT, rand (Float32, ), rand (Float32, 3 ))
131
+ @test compare (vcat, AT, rand (Float32, 3 ), rand (Float32 ))
132
+ @test compare (vcat, AT, rand (Float32, ), rand (Float32, 3 , 3 ))
133
+ # @test compare(vcat, AT, rand(Float32, 3, 3), rand(Float32 ))
134
+
135
+ @test compare ((a,b) -> cat (a, b; dims= 4 ), AT, rand (Float32, 3 , 4 ), rand (Float32, 3 , 4 ))
136
136
end
137
137
138
138
@testset " reshape" begin
0 commit comments