Thanks @ptrblck, it helped to resolve this error, but now i get another one 
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
and exception thrown at loss = loss_func(output, b_y)
What does it mean?