Could you print the shapes of b and c and check, if they would be compatible for a matrix multiplication?
Based on the error message it seems that one of these two tensors might have an unexpected shape.