mirror of
https://github.com/wassname/keras-js.git
synced 2026-09-09 11:25:25 +08:00
fix Deconvolution2D layer outputShape
This commit is contained in:
@@ -37,7 +37,11 @@ export default class Deconvolution2D extends Layer {
|
||||
|
||||
this.kernelShape = [nbFilter, nbRow, nbCol]
|
||||
|
||||
this.outputShape = outputShape
|
||||
if (outputShape[0] == null) {
|
||||
this.outputShape = outputShape.slice(1)
|
||||
} else {
|
||||
this.outputShape = outputShape
|
||||
}
|
||||
|
||||
this.activation = activations[activation]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user