TensorRT
TensorRT copied to clipboard
Which torch operator can cause nonzero problems?
There is no torch.nonzero in my torch model, but a nonzero error is reported. Which torch operations may cause nonzero problems, or how can I find out which operators contain nonzero operations?
torch.where I guess
I think it's better to ask in the pytorch repo.
it has 3 scene:
- tensor mask op,as example:x = x[x.sum(dim=-1) > 0]
- torch.where(condition), as example: torch.where(x>0)
- torch.nonzero(x)
Thank you!