2021年11月19日

摘要: 原文地址: http://www.shijinglei.com/2020/04/20/pytorch%E9%87%8A%E6%94%BE%E6%98%BE%E5%AD%98/ 最近遇到一个问题,用pytorch跑一个 不固定输入的模型inference,一张图片一张图片的测试。有两张图片分辨率相同, 阅读全文
posted @ 2021-11-19 22:28 Angry_Panda 阅读(1666) 评论(1) 推荐(0)
摘要: 参考: 在pytorch中有几个关于显存的关键词: 在pytorch中显存为缓存和变量分配的空间之和叫做reserved_memory,为变量分配的显存叫做memory_allocated,由此可知reserved_memory一定大于等于memory_allocated,但是pytorch获得总显 阅读全文
posted @ 2021-11-19 16:39 Angry_Panda 阅读(2240) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/qq_37189298/article/details/110945128 代码: import torch from torch import cuda import time x = torch.zeros([1,1024,1024,128*2 阅读全文
posted @ 2021-11-19 11:25 Angry_Panda 阅读(1264) 评论(0) 推荐(0)
摘要: 参考 : https://blog.csdn.net/weixin_45292794/article/details/108227437 https://blog.csdn.net/jzwong/article/details/110954725 两个pytorch的网络参数统计工具: 1. tor 阅读全文
posted @ 2021-11-19 08:31 Angry_Panda 阅读(3934) 评论(0) 推荐(0)

导航