听名字就知道这个函数是用来求tensor中某个dim的前k大或者前k小的值以及对应的index。 用法. torch.topk(input, k, dim=None, largest=True, ...
確定! 回上一頁