前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >二值网络--TBN: Convolutional Neural Network with Ternary Inputs and

二值网络--TBN: Convolutional Neural Network with Ternary Inputs and

作者头像
用户1148525
发布2019-05-27 15:23:31
5500
发布2019-05-27 15:23:31
举报
文章被收录于专栏:机器学习、深度学习

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://cloud.tencent.com/developer/article/1436622

TBN: Convolutional Neural Network with Ternary Inputs and Binary Weights

ECCV2018

本文的思路就是: 对 weight 进行二值量化+ scaling factor α , 对于 网络层的输入 进行 ternary value {−1,0,1} without the scaling factor

3 Ternary-Binary Networks

3.1 Convolution with Matrix Multiplication

use matrix multiplication to implement the convolution layer ⟨I,W,∗⟩

ten2mat 将一组滤波器 weight filters W can be reshaped to a matrix

ten2mat reshape the matrix back to output tensor C

3.2 Binary Weights

3.3 Ternary Inputs

the scaling factors of the binary inputs does not affect the performance of XNOR-Networks

这里我们不采用 scaling factor 了

3.4 Ternary-Binary Dot Product

这样卷积就没有乘法运算了,只有 位运算和 加减

量化梯度求导采用:

provides ∼ 32× memory savings and 40× faster convolutional operations

11

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019年05月10日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档