Skip to content

Commit 78fe937

Browse files
committed
IPackable<BodyItemInRnnWhileLoop>
1 parent 47ca86a commit 78fe937

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/TensorFlowNET.Core/Operations/NnOps/BodyItemInRnnWhileLoop.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Tensorflow.Operations
66
{
7-
internal class BodyItemInRnnWhileLoop : ICanBeFlattened, IPackable
7+
internal class BodyItemInRnnWhileLoop : ICanBeFlattened, IPackable<BodyItemInRnnWhileLoop>
88
{
99
/// <summary>
1010
/// int32 scalar Tensor.
@@ -37,11 +37,13 @@ public object[] Flatten()
3737
return elements.ToArray();
3838
}
3939

40-
public void Pack(object[] sequences)
40+
public BodyItemInRnnWhileLoop Pack(object[] sequences)
4141
{
4242
time = sequences[0] as Tensor;
4343
output_ta_t = new[] { sequences[1] as TensorArray };
4444
state = sequences[2] as Tensor;
45+
46+
return new BodyItemInRnnWhileLoop(time, output_ta_t, state);
4547
}
4648
}
4749
}

0 commit comments

Comments
 (0)