We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8989a3 commit 59c67e6Copy full SHA for 59c67e6
test/runtests.jl
@@ -52,6 +52,7 @@ end
52
@safetestset "Config" include("config.jl")
53
@safetestset "Batching" include("batching.jl")
54
@safetestset "QA" include("qa.jl")
55
+ @safetestset "Tessera" include("tessera.jl")
56
end
57
58
if REACTANT_TEST_GROUP == "all" || REACTANT_TEST_GROUP == "integration"
test/tessera.jl
@@ -0,0 +1,12 @@
1
+using Reactant, Test
2
+
3
+@trace tessera function foo(x)
4
+ return sin.(sum(x) .+ x)
5
+end
6
7
+@testset "Tessera Annotation Tests" begin
8
+ x = Reactant.to_rarray(rand(3))
9
+ # if optimize=false is not set, the function is inlined.
10
+ hlo = repr(@code_hlo optimize = false foo(x))
11
+ @test occursin("tessera_name = \"foo\"", hlo)
12
0 commit comments