Benchmarking TPU, GPU, and CPU Platforms for Deep Learning