On two notions of topological entropy for noncompact spaces