Most of the time sublimation is endothermic reaction. Even Dry Ice takes the energy from the exposed atmosphere. Relative to the vessel and atmosphere the dry ice is at lower temperature. So the only way of energy transfer will be from environment to dry ice.
Lets take the example of camphor or