Question: 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.
 Figure 11.15 Computational graph for batch normalization (see problem 11.5). Problem

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!