![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PYTHON
FireeLee
这个作者很懒,什么都没留下…
展开
-
多线程加锁计数方法
https://www.liujiangblog.com/course/python/79import threadingimport timenumber = 0def plus(): global number # global声明此处的number是外面的全局变量number for _ in range(1000000): # 进行一个大数级别...原创 2020-04-23 17:50:23 · 470 阅读 · 0 评论 -
[Jupyter-Notebook] 指定python3路径,配置notebook依赖源
[Jupyter-Notebook] 指定python3路径,配置notebook依赖源问题 :本机是 mac,通过 brew install jupyter 方式安装的 notebook,发现 notebook 用的版本是 python3.7。在安装 keras,tensorflow的时候,是用 pip3 install keras, tensroflow==1.14.0, "nump...原创 2020-04-13 15:21:16 · 2231 阅读 · 0 评论 -
[思] 工业代码规范的重要性
Tensorflow 源码编译断断续续装了两天,起初是因为OCR算法跑起来之后,始终无法正确预测结果,并且观察发现,GPU显存也没有完全利用起来。所以自然而然把问题归因于,Tensorflow GPU没有正确安装,所以聚焦在重新编译。今天下午总归是让TF1.7跑起来了,磕磕绊绊耽误了很久,但再跑起来模型,发现预测结果还是异常,调出来看GPU,现存已经完全利用起来了,但为什么有问题呢?隐隐约约感...原创 2018-09-27 16:56:10 · 249 阅读 · 0 评论 -
[Python ] Python 多维数组转换的维度对齐问题
Python3 多维数组转换的维度对齐问题通过几个例子简单了解一下:Here’s an example of the error:>>> a = [np.zeros((224,224,3)), np.zeros((224,224,3)), np.zeros((224,224))]>>> np.array(a)ValueError: could not ...转载 2018-10-08 14:58:54 · 2068 阅读 · 1 评论