The pyramid of energy can never be inverted. The pyramid represents the amount of energy at each trophic level of the food chain.
The pyramid is always upright because as the energy flows from one trophic level to the next trophic level, some energy is always lost to the atmosphere. The pyramid of energy is measured in energy per area per time. The amount of energy conveyed between the trophic levels is measured by trophic level transfer productivity.