MIAMI — Brett Gardner respects Pedro Martinez’s thoughts, but believes the Hall of Fame pitcher’s recent comments about the Yankees not displaying the energy of a winning team might have something to do with Martinez’s loyalties.

“The Yankees don’t seem to have the energy of a winning team. I understand some key players are injured, but they don’t seem to be hustling out there,’’ Martinez tweeted.

Gardner, the longest-tenured Yankee, didn’t chastise Martinez for his feelings but did point out that the former Red Sox ace might have a soft spot for the Yankees’ blood rivals, who lead the Yankees by nine games.

“Obviously everyone is entitled to his opinion. He is probably a Red Sox fan more than a Yankee fan,” Gardner said of Martinez. “We have the second-best record in the game. They have the best and have a great team that is playing well. We have dealt with injuries, have the toughest schedule and the worst travel. We went to Boston and they beat us four straight. We played Sunday night, they were off [Monday] and we played in Chicago. Then we played a night game on getaway day and didn’t get home ’til 5 a.m. We played 20 games in 20 days. It’s fair to say guys were a little [weary]. We are doing the best we can.”

Since getting swept by the Red Sox (Aug. 2-5), the Yankees are 11-5 after losing 9-3 to the lowly Marlins on Wednesday night. That record was put together without Gary Sanchez and Aaron Judge, who have been on the DL since late July. They were joined on the DL by Didi Gregorius on Tuesday and Aroldis Chapman on Wednesday.