我正在尝试从 Graphcore 公共示例 ( MNIST )运行一个 TensorFlow2 示例。我使用 IPU 模型而不是 IPU 硬件,因为我的机器无法访问 IPU 硬件,所以我按照文档(在 IPU 模型模拟器上运行)并将以下内容添加到我的模型中:
# Using IPU model instead of IPU hardware
if self.base_dictionary['ipu_model']:
os.environ['TF_POPLAR_FLAGS'] = '--use_ipu_model'
Run Code Online (Sandbox Code Playgroud)
当我运行的模型,它失败:Illegal instruction (core dumped)。我不知道这是从哪里来的,因为我使用了一个现有的例子。这是什么错误,我该如何解决?