Notes on MatConvNet(II):vl_simplenn

本文是MatConvNet系列笔记的第二篇,主要介绍核心函数vl_simplenn。该函数在前向传播和反向传播中起关键作用。内容包括:计算结构、vl_simplenn的功能解析、反向传播过程以及matlab目录下相关函数的简要探讨。
摘要由CSDN通过智能技术生成

#Written before
This blog is the second one of the series of Notes on MatConvNet.

  1. Notes on MatConvNet(I) – Overview
    Here I will mainly introduce the central of the matcovnet—vl_simplenn.
    This function plays a quite important role in forward-propagation and backward-propagation.
    PS. I have to admit that writing blogs in Chinese would bring much more traffic than writing English blogs. Yet, if I care too much about vain trifles, it is a sad thing.

Something that should be known before

I only introduce BP. How does the derivatives propagate backforward? I sincerely recommend you to read BP Algorithm. This blog is a good beginning of BP. When you have finished reading that, The first blog of this series is also recommended. I will repeat the main computation structure illustrated in Notes(I).

Computation Structure

这里写图片描述
I make some default rules here.

  • y always represents the output of certain layer. That is to say when it comes to layer i, then y is the output of layer i.
  • z always represents the output of the whole net, or rather, it represents the output of the final layer n.
  • x represents the input of certain layer.

In order to make things more easier, matcovnet takes one simple function as a “layer”. This means when the input goes through a computation strcuture(no matter it is conv structure or just a relu structure), it does computation like the following:
d z d x = f ′ ( x ) ∗ d z d y ( 1 ) \frac{dz}{dx}=f^{'}(x)*\frac{dz}{dy}\qquad(1) dxdz=f(x)dy

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值