def bias(self, ext, module, g_inp, g_out, backproped):
    h_out_mat_prod = backproped

    def bias_hmp(mat):
        result = self.derivatives.bias_jac_mat_prod(module, g_inp, g_out, mat)
        result = h_out_mat_prod(result)
        result = self.derivatives.param_mjp('bias', module, g_inp, g_out, result)
        return result
    return bias_hmp
def bias(self, ext, module, g_inp, g_out, backproped):
    h_out_mat_prod = backproped

    def bias_hmp(mat):
        result = self.derivatives.bias_jac_mat_prod(module, g_inp, g_out, mat)
        result = h_out_mat_prod(result)
        result = self.derivatives.param_mjp('bias', module, g_inp, g_out, result)
        return result
    return bias_hmp