随笔分类 -  PyTorch

PyTorch的学习,使用,技巧等
摘要:torch.topk torch.topk(input, k, dim=None, largest=True, sorted=True, out=None) -> (Tensor, LongTensor) pytorch中文官网文档:http://www.mamicode.com/info-deta 阅读全文
posted @ 2020-03-14 21:21 lqchen 阅读(6451) 评论(0) 推荐(0)
摘要:torch.ge torch.ge(input, other, out=None) → Tensor 逐元素比较input和other,即是否 input>=otherinput>=other。 如果两个张量有相同的形状和元素值,则返回True ,否则 False。 第二个参数可以为一个数或与第一个 阅读全文
posted @ 2020-02-22 19:24 lqchen 阅读(4847) 评论(0) 推荐(0)