properly handle batch_input_shape attribute in InputLayer

This commit is contained in:
Leon Chen
2016-10-05 21:39:40 -04:00
parent f5e6e685db
commit 43128e708a
+2 -2
View File
@@ -16,8 +16,8 @@ export default class InputLayer extends Layer {
shape = []
} = attrs
this.shape = attrs.batch_input_shape && attrs.batch_input_shape.length
? attrs.batch_input_shape.slice(1)
this.shape = attrs.batchInputShape && attrs.batchInputShape.length
? attrs.batchInputShape.slice(1)
: shape
}