Imported from https://github.com/NVIDIA/nv-wavenet