博客
关于我
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/

你可能感兴趣的文章
Nginx学习笔记(一) Nginx架构
查看>>
nginx学习路线
查看>>
Nginx安装
查看>>
Nginx安装SSL模块 nginx: the “ssl” parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx
查看>>