(ort: OrtModule, preps: DetPreprocessResult[])
| 373 | } |
| 374 | |
| 375 | function packDetBatchTensor(ort: OrtModule, preps: DetPreprocessResult[]): Tensor { |
| 376 | const maxH = Math.max(...preps.map((p) => p.dstH)); |
| 377 | const maxW = Math.max(...preps.map((p) => p.dstW)); |
| 378 | return createBatchDetTensor(ort, preps, maxH, maxW); |
| 379 | } |
| 380 | |
| 381 | function batchDetOutputPlaneOffset(dims: readonly number[], batchIndex: number): number { |
| 382 | const tail = dims.slice(1).reduce((a, b) => a * b, 1); |
no test coverage detected
searching dependent graphs…