会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
michaelchengjl
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
44
下一页
2023年4月4日
pybind11 pybind11/pybind11 .h 没有哪个文件或目录
摘要: pybind11 pybind11/pybind11 .h 没有哪个文件或目录 应用mlperf标准过程中用 pip3 install pybind11 conda install pybind11 都会出现如下问题: 这里使用如下安装 sudo apt-get install python3-de
阅读全文
posted @ 2023-04-04 20:35 michaelchengjl
阅读(3361)
评论(0)
推荐(0)
2023年3月21日
python3 抽象类Abstract Classes
摘要: python3 抽象类Abstract Classes 抽象类可以这么理解,它就是一个模板,里面声明了子类必须定义的函数,但是对于每个函数都没有给出具体实现。所有函数的实现都是在子类中定义。我们这里给出抽象类的定义方式: from abc import ABC, abstractmethod cla
阅读全文
posted @ 2023-03-21 19:59 michaelchengjl
阅读(233)
评论(0)
推荐(0)
python3 异步并发
摘要: python3 异步并发 1. TCPConnector 链接池 import asyncio from aiohttp import ClientSession, TCPConnector async def aiohttp_get(): url = 'url' conn = TCPConnect
阅读全文
posted @ 2023-03-21 17:42 michaelchengjl
阅读(73)
评论(0)
推荐(0)
2023年3月15日
centos 安装指定版本docker
摘要: centos 安装指定版本docker sudo yum remove docker-ce # 查看可用的社区版 yum list docker-ce --showduplicates | sort -r # 安装指定版本的docker yum install docker-ce-20.10.3 d
阅读全文
posted @ 2023-03-15 16:53 michaelchengjl
阅读(944)
评论(0)
推荐(0)
2023年3月13日
python3 画图svg, Canvas
摘要: python3 画图svg, Canvas https://blog.csdn.net/m0_37264397/article/details/79179956 https://blog.csdn.net/weixin_44237337/article/details/117339633 https
阅读全文
posted @ 2023-03-13 17:16 michaelchengjl
阅读(49)
评论(0)
推荐(0)
2023年3月10日
numpy中数据合并,stack ,concentrate,vstack,hstack
摘要: numpy中数据合并,stack ,concentrate,vstack,hstack https://www.cnblogs.com/onemorepoint/p/9541761.html https://blog.csdn.net/sdnuwjw/article/details/10054088
阅读全文
posted @ 2023-03-10 10:46 michaelchengjl
阅读(107)
评论(0)
推荐(0)
2023年3月9日
numpy 图像通道转换[n c h w] 转 [n h w c]
摘要: numpy 图像通道转换[n c h w] 转 [n h w c] img = np.transpose(img, (0, 2, 3, 1)) img_hwc = np.transpose(img_chw, (1, 2, 0)) image = np.expand_dims(image, axis=
阅读全文
posted @ 2023-03-09 16:18 michaelchengjl
阅读(616)
评论(0)
推荐(0)
2023年3月6日
python 代码调试--pdb
摘要: python 代码调试--pdb https://www.jianshu.com/p/fb5f791fcb18 https://learnku.com/docs/pymotw/pdb-interactive-debugger/3470
阅读全文
posted @ 2023-03-06 17:04 michaelchengjl
阅读(47)
评论(0)
推荐(0)
2023年2月28日
Python3 GRPC Protobuf 转换为 JSON 或 Python3 对象
摘要: Python3 GRPC Protobuf 转换为 JSON 或 Python3 对象 Python3 调用 GRPC 的时候有时候需要将 Protobuf 调用转换为 JSON 或 Python3 对象,这个操作 google.protobuf 库已经帮我们备好了工具 Protobuf -> Py
阅读全文
posted @ 2023-02-28 17:56 michaelchengjl
阅读(493)
评论(0)
推荐(0)
使用python实现json, yaml 互转
摘要: 使用python实现json, yaml 互转 1. 安装yaml库: pip3 install pyyaml 2. yaml转json 新建一个test.yaml文件,添加以下内容: A: hello: name: Michael address: Beijing B: hello: name:
阅读全文
posted @ 2023-02-28 17:54 michaelchengjl
阅读(2904)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
44
下一页
公告