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]
|