Correct logic error in gemm

Details:
- In previous refactor commit, should have refactored to "not transpose_*" instead of "transpose_*" for * = {a, b}