(query: () => void)
| 1233 | } |
| 1234 | |
| 1235 | async time(query: () => void): Promise<TimingInfo> { |
| 1236 | const start = now(); |
| 1237 | const timingInfo = await this.backend.time(query) as TimingInfo; |
| 1238 | timingInfo.wallMs = now() - start; |
| 1239 | return timingInfo; |
| 1240 | } |
| 1241 | |
| 1242 | /** |
| 1243 | * Tracks a Tensor in the current scope to be automatically cleaned up |