py2exe可以将Python程序打包成exe程序,使得可以在没有Python环境的机器上运行。 首先编写一个hello_test.py文件:
from time import sleepif __name__ __main__:print(hello py2exe)# 为了打包成exe运行的时候能够看清楚,不会一闪而过sleep…
完整报错信息如下
RuntimeError: set_sizes_and_strides is not allowed on a Tensor created from .data or .detach().
If your intent is to change the metadata of a Tensor (such as sizes / strides / storage / storage_offset)
without autograd tracking the change…