Anomalous dimensions from thermal AdS partition functions