PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

fix: replace numpy.where with paddle.where for tensor operations in P…

Open danghoangnhan opened this issue 3 weeks ago • 2 comments

Replaced np.where(temp.cpu().numpy() == True) with paddle.where(temp == True) to maintain computation on the PaddlePaddle device (GPU/CPU) without converting to NumPy. This avoids unnecessary data transfer between devices and keeps the operation within Paddle’s tensor graph.

danghoangnhan avatar Nov 10 '25 01:11 danghoangnhan

Thanks for your contribution!

paddle-bot[bot] avatar Nov 10 '25 01:11 paddle-bot[bot]

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 10 '25 01:11 CLAassistant