Skip to content

Commit ccc556d

Browse files
committed
Overload Sequential
1 parent 85aba7a commit ccc556d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/TensorFlowNET.Keras/KerasInterface.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ public Sequential Sequential(List<ILayer> layers = null,
5858
Name = name
5959
});
6060

61+
public Sequential Sequential(params ILayer[] layers)
62+
=> new Sequential(new SequentialArgs
63+
{
64+
Layers = layers.ToList()
65+
});
66+
6167
/// <summary>
6268
/// `Model` groups layers into an object with training and inference features.
6369
/// </summary>

src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
7272
<ItemGroup>
7373
<PackageReference Include="HDF5-CSharp" Version="1.16.3" />
7474
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.148" />
75-
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
7675
<PackageReference Include="SharpZipLib" Version="1.4.2" />
7776
</ItemGroup>
7877

0 commit comments

Comments
 (0)