雑多な技術系メモ

自分用のメモ。内容は保証しません。よろしくお願いします。

2017-03-01から1ヶ月間の記事一覧

he shape of the input to "Flatten" is not fully defined (got (512, 1, 0). Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the first layer in your model.

kerasでのエラーの対処法 問題 Flattenでうまくいかなく、以下のようなエラーをはいた the shape of the input to "Flatten" is not fully defined (got (512, 1, 0). Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the f…

pickleでエラー

問題 Traceback (most recent call last): File "predict.py", line 8, in <module> import cPickle as pickle ImportError: No module named 'cPickle' 対処法 before import cPickle as pickle after from six.moves import cPickle</module>

lambda式メモ

lambda式 pythonで lambda 引数:処理 hello = lambda who : print(who + "hello!") hello("inoki") # => inoki hello! rubyで = -> (引数){処理} ()は省略可能 hello = -> (who){p who+" hello!"} hello["inoki"] # => inoki hello! パーフェクトRuby (PERFE…

バイナリファイルなどがコンフリクトした場合の処理

git

バイナリファイルなどがコンフリクトした場合の処理 今回はpdfファイルがコンフリクトした場合の処理 コマンド 以下の場合でいうとtest.pdfのみがマージ対象のbranchファイルにcheckoutされる git checkout --theirs test.pdf 参考 http://blog.ruedap.com/2…

texで数式や参考文献が参照できなかった

tex

問題 \citeなどがうまくいかなかい。参照したように書いても??になってしまったり 対処法 完全に私のミス。 platexを実行した際に出力される.auxファイルを削除していた。 .auxファイルが参考文献や数式を参照する際に必要になるらしい。 参考 cns-guide.sfc…