Added types for backpropagation layer.