Witllm/tools/test.py

11 lines
201 B
Python
Raw Normal View History

2023-12-21 19:52:19 +08:00
import show
import torch
2023-12-21 21:20:49 +08:00
# radata = torch.randn(8192, 128)
# show.DumpTensorToImage(radata, "test.png", autoPad=True,scale=0.2)
radata = torch.randn(127)
show.DumpTensorToImage(radata, "test.png")