博客
关于我
torch.topk
阅读量:103 次
发布时间:2019-02-26

本文共 129 字,大约阅读时间需要 1 分钟。

 

import torchinput=torch.Tensor([0.1,0.2]).cuda()k=3v,k=torch.topk(input, k, dim=0, largest=True, sorted=True, out=None)print(v,k)

转载地址:http://qyyk.baihongyu.com/

你可能感兴趣的文章
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>