Imported from https://github.com/Olloxan/Pytorch-A2C