We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ca86a commit 78fe937Copy full SHA for 78fe937
src/TensorFlowNET.Core/Operations/NnOps/BodyItemInRnnWhileLoop.cs
@@ -4,7 +4,7 @@
4
5
namespace Tensorflow.Operations
6
{
7
- internal class BodyItemInRnnWhileLoop : ICanBeFlattened, IPackable
+ internal class BodyItemInRnnWhileLoop : ICanBeFlattened, IPackable<BodyItemInRnnWhileLoop>
8
9
/// <summary>
10
/// int32 scalar Tensor.
@@ -37,11 +37,13 @@ public object[] Flatten()
37
return elements.ToArray();
38
}
39
40
- public void Pack(object[] sequences)
+ public BodyItemInRnnWhileLoop Pack(object[] sequences)
41
42
time = sequences[0] as Tensor;
43
output_ta_t = new[] { sequences[1] as TensorArray };
44
state = sequences[2] as Tensor;
45
+
46
+ return new BodyItemInRnnWhileLoop(time, output_ta_t, state);
47
48
49
0 commit comments