diff --git a/src/backend/tensorflow/graph.jl b/src/backend/tensorflow/graph.jl index f5213d75..de7908cd 100644 --- a/src/backend/tensorflow/graph.jl +++ b/src/backend/tensorflow/graph.jl @@ -31,7 +31,7 @@ graph(::typeof(svd), x) = svd(x) for op in (*, .*, .+, .^, log, exp, ceil, floor, sqrt, abs, cos, sin, tan, atan, asin, acos, tanh, lgamma, erf, erfc, real, imag, conj, - inv, det, transpose, permutedims) + inv, det, transpose, permutedims, cat) @eval graph(::typeof($op), args...) = $op(args...) end diff --git a/test/backend/tensorflow.jl b/test/backend/tensorflow.jl index 351906ed..bb68a67c 100644 --- a/test/backend/tensorflow.jl +++ b/test/backend/tensorflow.jl @@ -33,6 +33,9 @@ end @test tf(@net x -> transpose(x))(A) ≈ transpose(A) A = randn(Float32,(6,3,2)) @test tf(@net (x,y) -> permutedims(x,y))(A,[3,2,1]) ≈ permutedims(A,[3,2,1]) + A1 = randn(Float32,(4,1)) + A2 = randn(Float32,(4,1)) + @test tf(@net (x,y) -> cat(2,x,y))(A1,A2) ≈ cat(2,A1,A2) end end