public class Filter extends Object
ConvolutionalLayer
,
ConvolutionalNetwork
Constructor and Description |
---|
Filter(int size) |
Filter(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
int |
getGroups() |
int |
getHeight() |
int |
getPadding() |
int |
getStride() |
int |
getWidth() |
Filter |
groups(int groups) |
static Filter |
ofSize(int size)
Factory method that creates filter settings with specified size (using same size for filter width and height).
|
static Filter |
ofSize(int width,
int height)
Factory method that creates a filter settings with specified width and height
|
Filter |
padding(int padding) |
Filter |
stride(int stride) |
public int getWidth()
public int getHeight()
public int getStride()
public int getPadding()
public int getGroups()
public Filter stride(int stride)
public Filter padding(int padding)
public Filter groups(int groups)
public static Filter ofSize(int size)
size
- size of the filter (same width and height)public static Filter ofSize(int width, int height)
width
- width of the filter (number of filter columns)height
- height of the filter (number of filter rows)Copyright © 2022. All rights reserved.