Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Figure 1 1 . 1 5 Computational graph for batch normalization ( see problem 1 1 . 5 ) . Problem 1 1 . 5

Figure 11.15 Computational graph for batch normalization (see problem 11.5).
Problem 11.5* The forward pass for batch normalization given a batch of scalar values {zi}i=1I
consists of the following operations (figure 11.15):
f1=E[zi]
f2i=xi-f1
f3i=f2i2
f4=E[f3i]
f5=f4+lon2
f6=1f5
f7i=f2if6
zi'=f7i+,
where E[zi]=1Ii?zi. Write Python code to implement the forward pass. Now derive the
algorithm for the backward pass. Work backward through the computational graph computing
the derivatives to generate a set of operations that computes delzi'delzi for every element in the
batch. Write Python code to implement the backward pass.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions