The tech sector may be the canary in the coal mine for job losses caused by its own rapid development of artificial intelligence.