@@ -7,12 +7,6 @@ namespace Tensorflow.Keras.ArgsDefinition.Rnn
77 // TODO(Rinne): add regularizers.
88 public class RNNArgs : AutoSerializeLayerArgs
99 {
10- [ JsonProperty ( "cell" ) ]
11- // TODO: the cell should be serialized with `serialize_keras_object`.
12- public IRnnCell Cell { get ; set ; } = null ;
13- [ JsonProperty ( "cells" ) ]
14- public IList < IRnnCell > Cells { get ; set ; } = null ;
15-
1610 [ JsonProperty ( "return_sequences" ) ]
1711 public bool ReturnSequences { get ; set ; } = false ;
1812 [ JsonProperty ( "return_state" ) ]
@@ -25,8 +19,10 @@ public class RNNArgs : AutoSerializeLayerArgs
2519 public bool Unroll { get ; set ; } = false ;
2620 [ JsonProperty ( "time_major" ) ]
2721 public bool TimeMajor { get ; set ; } = false ;
22+
23+ public int ? InputDim { get ; set ; }
24+ public int ? InputLength { get ; set ; }
2825 // TODO: Add `num_constants` and `zero_output_for_mask`.
29- public Dictionary < string , object > Kwargs { get ; set ; } = null ;
3026
3127 public int Units { get ; set ; }
3228 public Activation Activation { get ; set ; }
@@ -38,21 +34,5 @@ public class RNNArgs : AutoSerializeLayerArgs
3834 public float Dropout { get ; set ; } = .0f ;
3935 public bool ZeroOutputForMask { get ; set ; } = false ;
4036 public float RecurrentDropout { get ; set ; } = .0f ;
41-
42- // kernel_regularizer=None,
43- // recurrent_regularizer=None,
44- // bias_regularizer=None,
45- // activity_regularizer=None,
46- // kernel_constraint=None,
47- // recurrent_constraint=None,
48- // bias_constraint=None,
49- // dropout=0.,
50- // recurrent_dropout=0.,
51- // return_sequences=False,
52- // return_state=False,
53- // go_backwards=False,
54- // stateful=False,
55- // unroll=False,
56- // **kwargs):
5737 }
5838}
0 commit comments