[Nuphar] don't transpose B if A is a 1D array (#8568)
don't transpose B if A is a 1D array
Don't transpose and pre-pack B if A is a 1D array, because
we only handle non-transposed case when we compute MatMul's
shape in codegen/mti/math/matmul_ops.cc
Co-authored-by: Yang Chen <yanchen@microsoft.com>