Adding some suggests from the author
This commit is contained in:
4
custom_nodes/example_folder/utils.py
Normal file
4
custom_nodes/example_folder/utils.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import torch
|
||||
def waste_cpu_resource():
|
||||
x = torch.rand(1, 1e6, dtype=torch.float64).cpu()
|
||||
return x.numpy()[0, 1]
|
||||
Reference in New Issue
Block a user