Major figures such as Elon Musk and Stephen Hawking have warned about the dangers of AI.