protected void setLayerOptionsBuilder(SubsamplingLayer.Builder builder) { super.setLayerOptionsBuilder(builder); if (poolingType != null) builder.poolingType(poolingType.randomValue()); if (kernelSize != null) builder.kernelSize(kernelSize.randomValue()); if (stride != null) builder.stride(stride.randomValue()); if (padding != null) builder.padding(padding.randomValue()); }
@Override public SubsamplingLayer randomLayer() { SubsamplingLayer.Builder b = new SubsamplingLayer.Builder(); setLayerOptionsBuilder(b); return b.build(); }