def _get_mxts_increments_for_inputs(self):
//self.reshaped_gamma and reshaped_std are created during
//the call to _build_activation_vars in _built_fwd_pass_vars
return self.get_mxts()*self.reshaped_gamma/self.reshaped_std
class Merge(ListInputMixin, Node):
After Change
//self.reshaped_gamma and reshaped_std are created during
//the call to _build_activation_vars in _built_fwd_pass_vars
pos_mxts_increments = (
self.get_pos_mxts()*
(self.reshaped_gamma*(self.reshaped_gamma>0.0)/
(self.reshaped_std+self.epsilon))
+self.get_neg_mxts()*
(self.reshaped_gamma*(self.reshaped_gamma<0.0)/
(self.reshaped_std+self.epsilon)))
neg_mxts_increments = (
self.get_pos_mxts()*
(self.reshaped_gamma*(self.reshaped_gamma<0.0)/
(self.reshaped_std+self.epsilon))
+self.get_neg_mxts()*
(self.reshaped_gamma*(self.reshaped_gamma>0.0)/
(self.reshaped_std+self.epsilon)))
return pos_mxts_increments, neg_mxts_increments
class Merge(ListInputMixin, Node):