Imported from https://github.com/concordiaca/3D-ResNets-PyTorch