Error: "Segmentation fault"

Generally, this error occurs because TensorBoard is referenced in the code. You can comment out the related Summary and Writer calls to avoid this error. Summary and Writer are mainly used to record logs and draw diagrams, which do not affect network running and precision convergence. This error also occurs if a third-party library contains TensorBoard. The following are known third-party libraries that reference TensorBoard.

  • wandb: If this library is used only for printing logs, you can delete the call to it.
  • transformers: This library is deeply bound to TensorFlow and TensorBoard.