mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 09:24:46 +08:00
10 lines
175 B
Python
10 lines
175 B
Python
import torch
|
|
|
|
list_2 = [
|
|
[127, 128, 129, 4, 5, 6],
|
|
[1, 2, 3, 4, 5, 6],
|
|
[1, 2, 3, 4, 5, 6],
|
|
]
|
|
t2 = torch.tensor(list_2, dtype=torch.int8) # [-128 - 127]
|
|
print(t2)
|