raiseRuntimeError("Cuda extensions are being compiled with a version of Cuda that does "+
"not match the version used to compile Pytorch binaries. "+
"Pytorch binaries were compiled with Cuda {}.\n".format(torch.version.cuda))
cmdclass['build_ext']=BuildExtension
iftorch.utils.cpp_extension.CUDA_HOMEisNone:
raiseRuntimeError("Nvcc was not found. Are you sure your environment has hipcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide hipcc.")
"Iterator size is changed. it is possible due to the change of update_freq/num_gpu. The itr_pos is change from {} to {} for consistency".format(old_itr_pos,itr_pos)