Can AI Be An Inventor?

Can AI be a patent inventor? So far two countries have (the United States and the UK) weighed in against the idea and two (Australia and South Africa) have permitted AI as an inventor.