Imported from https://github.com/astorfi/3D-convolutional-speaker-recognition-pytorch