Using the Fluent API

For those of you who have the bug for Fluent APIs, ConvNetSharp has done a job of providing one for you.

Just look at the following example to see how easy it is to use the Fluent DSL when adding layers:

varnet=FluentNet<double>.Create(24, 24, 1)
.Conv(5, 5, 8).Stride(1).Pad(2)
.Relu()
.Pool(2, 2).Stride(2)
.Conv(5, 5, 16).Stride(1).Pad(2)
.Relu()
.Pool(3, 3).Stride(3)
.FullyConn(10)
.Softmax(10)
.Build();
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset