Skip to content

Commit 38376c3

Browse files
committed
find an Instruction dynamically
1 parent 92b3a6d commit 38376c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/Testing.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
version:
1414
- '1.7'
1515
- '1'
16-
- '1.11.1'
1716
- 'nightly'
1817
os:
1918
- ubuntu-latest

perf/benchmark.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ println("======= breakdown benchmark =======")
114114
x = rand(100000)
115115
tf = Libtask.TapedFunction(ackley, x, nothing)
116116
tf(x, nothing);
117-
ins = tf.tape[45]
117+
idx = findlast((x)->isa(x, Libtask.Instruction), tf.tape)
118+
ins = tf.tape[idx]
118119
b = ins.input[1]
119120

120121
@show ins.input |> length

0 commit comments

Comments
 (0)