質問編集履歴

1

コードの修正

2017/12/17 07:32

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  ```
22
22
 
23
- TypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [float32, float32, bool] that don't all match.
23
+ TypeError: 'Tensor' object is not callable
24
24
 
25
25
  ```
26
26
 
@@ -302,7 +302,9 @@
302
302
 
303
303
  inputs = Input(shape=(TIME_STEPS, INPUT_DIM,))
304
304
 
305
- hidden = merge([model1, model2, K.learning_phase()], name='hidden_layer', mode="concat")(inputs)
305
+ # hidden = merge([model1, model2, K.learning_phase()], name='hidden_layer', mode="concat")(inputs)
306
+
307
+ hidden = merge([model1, model2], name='hidden_layer', mode="concat")(inputs)
306
308
 
307
309
  lstm_units = 32
308
310
 
@@ -318,8 +320,6 @@
318
320
 
319
321
  #-------------
320
322
 
321
-
322
-
323
323
  model.compile(loss="categorical_crossentropy",
324
324
 
325
325
  optimizer="adam",