Centralized vs edge inference