@@ -16,10 +16,12 @@ limitations under the License.
16
16
17
17
using System ;
18
18
using System . Collections . Generic ;
19
+ using Tensorflow . Common . Types ;
19
20
using Tensorflow . Keras ;
20
21
using Tensorflow . Keras . ArgsDefinition ;
21
22
using Tensorflow . Keras . ArgsDefinition . Rnn ;
22
23
using Tensorflow . Keras . Engine ;
24
+ using Tensorflow . Keras . Layers . Rnn ;
23
25
using Tensorflow . Keras . Saving ;
24
26
using Tensorflow . NumPy ;
25
27
using Tensorflow . Operations ;
@@ -50,7 +52,8 @@ namespace Tensorflow
50
52
/// matching structure of Tensors having shape `[batch_size].concatenate(s)`
51
53
/// for each `s` in `self.batch_size`.
52
54
/// </summary>
53
- public abstract class RnnCell : ILayer , RNNArgs . IRnnArgCell
55
+ [ Obsolete ( "This is an incompleted tf v1 api, pleas use keras RNNs instead." ) ]
56
+ public abstract class RnnCell : ILayer , IRnnCell
54
57
{
55
58
/// <summary>
56
59
/// Attribute that indicates whether the cell is a TF RNN cell, due the slight
@@ -142,7 +145,7 @@ private Tensor _zero_state_tensors(object state_size, Tensor batch_size, TF_Data
142
145
throw new NotImplementedException ( "_zero_state_tensors" ) ;
143
146
}
144
147
145
- public Tensors Apply ( Tensors inputs , Tensor state = null , bool is_training = false )
148
+ public Tensors Apply ( Tensors inputs , Tensors state = null , bool is_training = false , IOptionalArgs ? optional_args = null )
146
149
{
147
150
throw new NotImplementedException ( ) ;
148
151
}
@@ -173,5 +176,13 @@ public void adapt(Tensor data, int? batch_size = null, int? steps = null)
173
176
{
174
177
throw new NotImplementedException ( ) ;
175
178
}
179
+
180
+ public ( Tensor , Tensors ) Call ( Tensors inputs , Tensors states , bool ? training = null )
181
+ {
182
+ throw new NotImplementedException ( ) ;
183
+ }
184
+ public GeneralizedTensorShape StateSize => throw new NotImplementedException ( ) ;
185
+ public GeneralizedTensorShape OutputSize => throw new NotImplementedException ( ) ;
186
+ public bool SupportOptionalArgs => throw new NotImplementedException ( ) ;
176
187
}
177
188
}
0 commit comments