运行 tensorflow 项目时出现问题

trouble when running tansorflow project

我试图在我的 m1 macbook 上 运行 main.py of this project 并得到这个输出:

Collecting Dataset...


Time elapsed getting Dataset: 25.09 s
Using CullPDB Filtered dataset

Hyper Parameters

Learning Rate: 0.0009
Drop out: 0.38
Batch dim: 64
Number of epochs: 35

Loss: categorical_crossentropy

Model: "sequential"
_________________________________________________________________
Layer (type)                 Output Shape              Param #   

...
...

2021-04-28 11:24:42.005679: I tensorflow/core/profiler/lib/profiler_session.cc:136] Profiler session initializing.
2021-04-28 11:24:42.005933: I tensorflow/core/profiler/lib/profiler_session.cc:155] Profiler session started.
2021-04-28 11:24:42.005978: I tensorflow/core/profiler/lib/profiler_session.cc:172] Profiler session tear down.
2021-04-28 11:24:48.497673: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)
2021-04-28 11:24:48.502759: W tensorflow/core/platform/profile_utils/cpu_utils.cc:126] Failed to get CPU frequency: 0 Hz
2021-04-28 11:24:48.516051: F tensorflow/core/grappler/costs/op_level_cost_estimator.cc:710] Check failed: 0 < gflops (0 vs. 0)type: "CPU"
model: "0"
num_cores: 8
environment {
  key: "cpu_instruction_set"
  value: "ARM NEON"
}
environment {
  key: "eigen"
  value: "3.3.90"
}
l1_cache_size: 16384
l2_cache_size: 524288
l3_cache_size: 524288
memory_size: 268435456

得到了error code 134 (interrupted by signal 6: SIGABRT) 我 运行 在 miniconda 虚拟环境中安装了必要的依赖项。 有什么解决办法吗?任何帮助将不胜感激。

问题是我没有使用正确版本的 TensorFlow。跟着this page终于得到了答案,告诉我安装苹果版的Tensorflow,使用conda环境,问题就解决了。