Skip to content

Commit d014244

Browse files
committed
another float dim thingie correction
1 parent 3622b92 commit d014244

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/tensors/tensors.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,10 @@ end
618618
t1 = rand(T, V1 V2, V3' V4)
619619
t2 = rand(T, W2, W1 W1')
620620
t = @constinferred (t1 t2)
621-
d1 = dim(codomain(t1))
622-
d2 = dim(codomain(t2))
623-
d3 = dim(domain(t1))
624-
d4 = dim(domain(t2))
621+
d1 = Int(dim(codomain(t1)))
622+
d2 = Int(dim(codomain(t2)))
623+
d3 = Int(dim(domain(t1)))
624+
d4 = Int(dim(domain(t2)))
625625
At = convert(Array, t)
626626
@test reshape(At, (d1, d2, d3, d4))
627627
reshape(convert(Array, t1), (d1, 1, d3, 1)) .*

0 commit comments

Comments
 (0)