mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-15 00:44:25 +08:00
4 lines
119 B
Python
4 lines
119 B
Python
import torch
|
|
def waste_cpu_resource():
|
|
x = torch.rand(1, 1e6, dtype=torch.float64).cpu()
|
|
return x.numpy()[0, 1] |