Two definitions of exponential dichotomy for skew-product semiflow in Banach spaces