Пример #1
0
 public SpatialDropout2D(float rate, string data_format = "") : base(rate)
 {
     this.data_format = K.NormalizeDataFormat(data_format);
     this.input_spec  = new InputSpec[] { new InputSpec(ndim: 4) };
 }
Пример #2
0
 public Flatten(string data_format = "")
 {
     this.input_spec  = new InputSpec[] { new InputSpec(min_ndim: 3) };
     this.data_format = K.NormalizeDataFormat(data_format);
 }