0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Blei-Lab の DTM (Dynamic Topic Model) の実行エラー

Last updated at Posted at 2015-12-09

まとめ

  • 時系列のトピックモデルを扱うDTMのライブラリが Segmentation Fault で落ちる…
  • main.c の 40行目 0 -> false に修正するとOK

詳細

現象

LDAなどで有名なBlei-Labで公開されているDTMを gcc 4.8.X でコンパイルすると,
“main”実行時に Segmentation Fault: 11 で落ちる.

環境

なにが問題か?

main.c
     39 DEFINE_bool(initialize_lda,
     40             0,
     41             "If true, initialize the model with lda.");

この40行目の“0”がダメ.

解決方法

40行目の値はboolが来るはずなので以下のように正しく記述.

main.c
     39 DEFINE_bool(initialize_lda,
     40             false,
     41             "If true, initialize the model with lda.");

で,OKです.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?