エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Can't load `Sequential` with custom layers · Issue #5956 · keras-team/keras · GitHub
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Can't load `Sequential` with custom layers · Issue #5956 · keras-team/keras · GitHub
#!/usr/bin/env python import os from keras.models import Model, Sequential, load_model from keras... #!/usr/bin/env python import os from keras.models import Model, Sequential, load_model from keras.layers import Input, InputLayer from keras.engine.topology import Layer class MyLayer(Layer): def __init__(self, **kwargs): super(MyLayer, self).__init__(**kwargs) def call(self, inputs): return inputs + 1 def compute_output_shape(self, input_shape): return input_shape def get_config(self): return sup

