Unsupervised Deep Learning for Ultra-reliable and Low-latency Communications