Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
fuliucansheng
/
mytools
like
0
Model card
Files
Files and versions
Community
7e91bd7
mytools
/
gpu.py
fuliucansheng
add py38
7e91bd7
about 1 year ago
raw
history
blame
201 Bytes
# Copyright (c) FULIUCANSHENG.
# Licensed under the MIT License.
import
time
import
torch
tensor = torch.rand(
10240
,
10240
).cuda()
while
True
:
_ = torch.matmul(tensor, tensor)
time.sleep(
1
)