parent
978332f692
commit
597abdf063
|
@ -61,14 +61,10 @@ public class KerasUpsampling2D extends KerasLayer {
|
||||||
super(layerConfig, enforceTrainingConfig);
|
super(layerConfig, enforceTrainingConfig);
|
||||||
|
|
||||||
int[] size = KerasConvolutionUtils.getUpsamplingSizeFromConfig(layerConfig, 2, conf);
|
int[] size = KerasConvolutionUtils.getUpsamplingSizeFromConfig(layerConfig, 2, conf);
|
||||||
if (size[0] != size[1])
|
|
||||||
throw new UnsupportedKerasConfigurationException("First and second size arguments have to be the same" +
|
|
||||||
"got: " + size[0] + " and " + size[1]);
|
|
||||||
|
|
||||||
Upsampling2D.Builder builder = new Upsampling2D.Builder()
|
Upsampling2D.Builder builder = new Upsampling2D.Builder()
|
||||||
.name(this.layerName)
|
.name(this.layerName)
|
||||||
.dropOut(this.dropout)
|
.dropOut(this.dropout)
|
||||||
.size(size[0]);
|
.size(size);
|
||||||
|
|
||||||
this.layer = builder.build();
|
this.layer = builder.build();
|
||||||
this.vertex = null;
|
this.vertex = null;
|
||||||
|
|
Loading…
Reference in New Issue