fix Deconvolution2D layer outputShape

This commit is contained in:
Leon Chen
2016-10-05 18:52:01 -04:00
parent a9f6a6bd0b
commit 5afee8e792
+5 -1
View File
@@ -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]