Provide cutorch.getState for other modules to pass state to cutorch functions when needed.