customized topk
* when k=1, it reduces to torch.max, and not surprising that torch.max is faster than torch.topk. * however when k=2, it is even slower than torch.topk
Showing
Please register or sign in to comment
* when k=1, it reduces to torch.max, and not surprising that torch.max is faster than torch.topk. * however when k=2, it is even slower than torch.topk