![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
hobertony_7
这个作者很懒,什么都没留下…
展开
-
numba与numpy对比
numba相对于numpy一个非常明显的优势:numba可以把各种具有很大loop的函数加到很快的速度,但numpy的加速只适用于numpy自带的函数。但要注意的是,numba对没有循环或者只有非常小循环的函数加速效果并不明显,用不用都一样。(偷偷告诉你,numba的loop甚至常常比numpy的矩阵运算还要快)...转载 2022-01-28 21:05:44 · 1005 阅读 · 1 评论 -
fabric初探
Fabric是一个Python库,可以通过SSH在多个host上批量执行任务。你可以编写任务脚本,然后通过Fabric在本地就可以使用SSH在大量远程服务器上自动运行。这些功能非常适合应用的自动化部署,或者执行系统管理任务目标:跨越跳板机远程执行命令并返回直接结果fanbric:1.14.0 os:centos7 python:2.71)centos7自带python2.7,使用如下命令安装fa...原创 2018-05-19 20:40:47 · 923 阅读 · 0 评论 -
Python与c/c++混合编程
Python时现在很火的一种语言,在云计算、人工智能、自动化测试等领域使用率非常高。之所以有这么大的市场使用率,python也是有它自己的独特之处,首先python易学,并且是一种解释性语言,不需要经过编译,并且它有着非常丰富的第三方库,可以帮助你处理各种工作,包括:电子邮件、数据库、web、GUI、单元测试等。Python采用强制缩进的方式使得代码有着极佳的可读性。 ...原创 2019-03-28 18:35:26 · 31762 阅读 · 0 评论 -
pip 下载加速
pip3.6 install *** -i https://pypi.doubanio.com/simple从豆瓣网仓库下载相应的软件包原创 2019-06-14 17:38:22 · 633 阅读 · 0 评论 -
python层和c++分别实现图像维度转置算法:
HWCN --> NCHW python实现:import numpy as npimport tensorflow as tfdata_org = np.arange(1,28,1 )data_resh = np.reshape(data_org, [3, 3, 1, 3])print(data_resh[1, 2, 0, 2])data1 = np.reshape...原创 2019-09-20 16:26:14 · 1145 阅读 · 1 评论 -
c++实现图像padding same模式算法
int const image_new_width = (image_width + conv_width_step -1)/conv_width_step; //image new width after conv and ceil int const image_new_height = (image_height + conv_height_step -...原创 2019-09-20 16:48:00 · 1782 阅读 · 0 评论