Update pytorch_example.py
This commit is contained in:
parent
8f4d27ffdb
commit
9260babdec
@ -24,8 +24,7 @@ print('\n\n')
|
||||
print(int_tensor)
|
||||
print(float_tensor)
|
||||
print(double_tensor)
|
||||
|
||||
|
||||
print('张量在 CPU 或 GPU :', int_tensor.device)
|
||||
|
||||
|
||||
# Torch数据和NumPy数据的转换
|
||||
|
Loading…
x
Reference in New Issue
Block a user