Skip to content

Batch norm - #11

Open
YuntianLan wants to merge 2 commits into
stevenygd:masterfrom
YuntianLan:batch_norm
Open

Batch norm#11
YuntianLan wants to merge 2 commits into
stevenygd:masterfrom
YuntianLan:batch_norm

Conversation

@YuntianLan

Copy link
Copy Markdown

Added Batch Norm layer, as well as a test at examples/MNIST\ BatchNorm.jl for benchmark.

@stevenygd

Copy link
Copy Markdown
Owner

Need unit testing file and benchmark file.

@stevenygd
stevenygd self-requested a review July 15, 2017 07:01
broadcast!(+,sqrtvar,sqrtvar,l.eps)
l.sqrtvar = deterministics ? l.sqrtvar : sqrtvar
ivar = Array{Float64}(1,D)
broadcast!(/,ivar,1,sqrtvar)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems like you haven't used the epsilon doe numerical stabiity, have you checked that whether this division will create nan?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind , I saw it, but it seems like you are the epsilon after the square root, not before, so you might want to adjust the value of epsilon for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants