Solved by albanD in post #4 
              
              
                I think you’re missing a closing parenthesis on the line above this one. It should be: 
        s2_output_cla = output_cla.narrow(0, int(inputs.size(0)/3), int(inputs.size(0)/3))