This shows how horse thinking works. As horse can see only what is in front of it and it considers the entire universe to be what is in front of it. Whereas the reality is different.
In today's economic world, there are 2 major contributors to the economy : Services (of which software is a part) and Manufacturing.
AI may impact software majorly but not manufacturing (i.e. labour intensive industry). Also, as @3xPlusOne pointed out software jobs are a fraction of overall jobs, so the overall impact would be less.
Apart from that, there would be people employed in the software field still as people will be needed to control the AI and to drive the results out of it so nature of jobs will change but jobs will still be there.
Now, coming to rental yields, few cities which are dependent on software services such as Bangalore and Pune may face some dull period but ultimately these cities have shown innovation is the key so I'm sure new AI focused jobs will mushroom in these cities thus making the low growth/stagnant rental yields a temp phenomenon.