AI Infrastructure Explained: From Edge Computing to Hyperscale