mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-19 19:03:51 +00: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] |