Class LeNet
- java.lang.Object
-
- ai.djl.basicmodelzoo.cv.classification.LeNet
-
public final class LeNet extends java.lang.Object
The model was introduced (and named for) Yann Lecun, for the purpose of recognizing handwritten digits in images [LeNet5](http://yann.lecun.com/exdb/lenet/).- See Also:
- The D2L chapter on LeNet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LeNet.Builder
The Builder to construct aLeNet
object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LeNet.Builder
builder()
Creates a builder to build aLeNet
.static ai.djl.nn.Block
leNet(LeNet.Builder builder)
Creates a LeNet network block with the help of the LeNet Builder.
-
-
-
Method Detail
-
leNet
public static ai.djl.nn.Block leNet(LeNet.Builder builder)
Creates a LeNet network block with the help of the LeNet Builder.- Parameters:
builder
- theLeNet.Builder
with the necessary arguments.- Returns:
- a LeNet block.
-
builder
public static LeNet.Builder builder()
Creates a builder to build aLeNet
.- Returns:
- a new builder
-
-