ES6模块的导出和导入
es6采用export、import进行模块的导出和导入。
手动实现Canny边缘检测算法。
1 | import cv2 |
之前在卷积网络中写过一点bn的东西,主要是论文中的一些想法,本文探讨一下Pytorch中的BatchNorm的实现。
参考:
[1]. https://www.jianshu.com/p/b38e14c1f14d
[2]. https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/batchnorm.py
[3]. https://blog.csdn.net/winycg/article/details/88974107
[4]. https://github.com/ptrblck/pytorch_misc/blob/master/batch_norm_manual.py
[5]. https://discuss.pytorch.org/t/why-track-running-stats-is-not-set-to-false-during-eval/25412
The Load factor is a measure that decides when to increase the HashMap capacity to maintain the get() and put() operation complexity of O(1). The default load factor of HashMap is 0.75f (75% of the map size).
The initial capacity of the HashMap is the number of buckets in the hash table. It creates when we create the object of HashMap class. The initial capacity of the HashMap is 24, i.e.,16. The capacity of the HashMap is doubled each time it reaches the threshold. The capacity is increased to 25=32, 26=64, and so on.
One way to calculate size:
When the load factor ratio (m/n) reaches 0.75 at that time, hashmap increases its capacity.
Where,
m is the number of entries in a hashmap.(size of HashMap)
n is the total size of hashmap.
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true