We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e85ae commit f72b0cbCopy full SHA for f72b0cb
src/diffusers/utils/torch_utils.py
@@ -154,8 +154,11 @@ def apply_freeu(
154
def get_torch_cuda_device_capability():
155
if torch.cuda.is_available():
156
device = torch.device("cuda")
157
+ gpu_name = torch.cuda.get_device_name(device)
158
compute_capability = torch.cuda.get_device_capability(device)
159
compute_capability = f"{compute_capability[0]}.{compute_capability[1]}"
160
+ print(f"{gpu_name=}, {compute_capability=}")
161
return float(compute_capability)
162
else:
163
return None
164
+
0 commit comments