Would it return 0? Or would it throw? Docs don’t clarify this.
A question is whether I should check torch.cuda.is_available() prior to querying torch.cuda.device_count()
Sorry for the lazy question  , I don’t have a CPU-only install of pytorch on hands for now to check