mirror of
https://github.com/wassname/keras-js.git
synced 2026-09-10 12:15:12 +08:00
properly handle batch_input_shape attribute in InputLayer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user