|
本帖最后由 chenshq168 于 2021-6-18 17:03 编辑
一个奇怪的问题运行toolkit里面的示例程序时,提示以下错误:
examples/pytorch/resnet18$ python3 test.py
/home/toybrick/.local/lib/python3.7/site-packages/torch/package/_mock_zipreader.py:17: UserWarning: Failed to initialize NumPy: module compiled against API version 0xe but this version of numpy is 0xd (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:67.)
_dtype_to_storage = {data_type(0).dtype: data_type for data_type in _storages}
Illegal instruction
如果把numpy升级到1.20.3版本时,又出现这样的错误:
examples/pytorch/resnet18$ python3 test.py
Illegal instruction
最郁闷的是根本上不知道是什么原因造成的。原厂能不能多开放一些东东让我们看看呢?
|
|