上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 43 下一页
摘要: pytorch 模型参数的保存与加载 pytorch 保存与加载模型参数的最主要的三个函数 torch.save:将序列化对象保存到磁盘。此函数使用Python的pickle模块进行序列化。使用此函数可以保存如模型、tensor、字典等各种对象。 torch.load:使用pickle的unpick 阅读全文
posted @ 2022-08-11 20:54 michaelchengjl 阅读(879) 评论(0) 推荐(0)
摘要: pytorch模型转换为onnx,并使用netron可视化 netron 是一个非常好用的网络结构可视化工具。 但是netron对pytorch模型的支持还不成熟。自己试的效果是生成的模型图没有连线。 目前支持的框架 根据netron的github 目前netron支持: ONNX (.onnx, 阅读全文
posted @ 2022-08-11 15:53 michaelchengjl 阅读(1919) 评论(0) 推荐(0)
摘要: 深度学习框之 静态图&动态图 各位炼丹者应该都会有自己常用的一种或几种深度学习框架,如 MxNet、Caffe、Tensorflow、Pytorch、PaddlePaddle(百度),甚至是国产新兴框架 MegEngine(旷视)、MindSpore(华为)等,在涉及介绍这些框架的时候,都会提及动态 阅读全文
posted @ 2022-08-11 11:22 michaelchengjl 阅读(1861) 评论(0) 推荐(0)
摘要: 衡量AI算力的“FLOPS” 什么是FLOPS FLOPS,是“每秒所执行的浮点运算次数”(floating-point operations per second) 的缩写。它常被用来估算电脑的执行效能,尤其是在使用到大量浮点运算的科学计算领域中。 在这里所谓的“浮点运算”,实际上含括了所有涉及小 阅读全文
posted @ 2022-08-11 10:26 michaelchengjl 阅读(4387) 评论(0) 推荐(1)
摘要: ubuntu2004 上安装与使用NVIDIA GPU A100 先安装显卡驱动 https://blog.csdn.net/qq_36999834/article/details/107589779 用容器的方式安装cuda ## 创建并启动容器,启动gpu docker要加上 --gpus al 阅读全文
posted @ 2022-08-09 15:38 michaelchengjl 阅读(1339) 评论(0) 推荐(0)
摘要: pgrep 基本用法 在linux中查看进程信息,经常要用到pa auxf,具体到某个进程的时候,又需进行grep管道。如:ps auxf|grep java|grep -v grep ,即然这么长,可以不可以简化呢?当然可以,如果还是使用ps命令的话,可以改为ps auxf|grep jav[a] 阅读全文
posted @ 2022-07-29 20:04 michaelchengjl 阅读(1651) 评论(0) 推荐(0)
摘要: Python 数据库接口规范简介 -- DB-API https://blog.konghy.cn/2015/08/16/python-dbapi/ 阅读全文
posted @ 2022-07-29 19:02 michaelchengjl 阅读(54) 评论(0) 推荐(0)
摘要: Docker 资源限制 https://www.cnblogs.com/sparkdev/p/8296063.html https://www.cnblogs.com/kkbill/p/12942989.html https://coolshell.cn/articles/17049.html ht 阅读全文
posted @ 2022-07-24 23:33 michaelchengjl 阅读(22) 评论(0) 推荐(0)
摘要: # Debug 1) pstree ``` ubuntu 上安装 apt-get install psmisc 以树状图显示进程PID为的进程以及子孙进程,如果有-p参数则同时显示每个进程的PID: 命令: pstree [-p] watch "pstree -p `pgrep -f test_co 阅读全文
posted @ 2022-07-22 19:51 michaelchengjl 阅读(97) 评论(0) 推荐(0)
摘要: Ubuntu 搭建jupyter web server,Jupyter notebook远程访问 ubuntu20.04安装anaconda3 创建虚拟环境,安装jupyter notebook conda create -n jupter python=3.7 Proceed ([y]/n)? 输 阅读全文
posted @ 2022-07-13 16:49 michaelchengjl 阅读(733) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 43 下一页