()
| 107 | |
| 108 | it('profile all statements in async predict function', async () => { |
| 109 | const predict = async () => { |
| 110 | await sleep(1); |
| 111 | const x = tf.tensor1d([1, 2, 3]); |
| 112 | const x2 = x.square(); |
| 113 | x2.dispose(); |
| 114 | return x; |
| 115 | }; |
| 116 | |
| 117 | const oldTensorCount = tf.memory().numTensors; |
| 118 | let profileInfo = await profileInference(predict); |
no test coverage detected
searching dependent graphs…