public class KerasPoolingUtils extends Object
| Constructor and Description |
|---|
KerasPoolingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
mapGlobalPoolingDimensions(String className,
KerasLayerConfiguration conf,
KerasLayer.DimOrder dimOrder)
Map Keras pooling layers to DL4J pooling dimensions.
|
static PoolingType |
mapPoolingType(String className,
KerasLayerConfiguration conf)
Map Keras pooling layers to DL4J pooling types.
|
public static PoolingType mapPoolingType(String className, KerasLayerConfiguration conf) throws UnsupportedKerasConfigurationException
className - name of the Keras pooling classUnsupportedKerasConfigurationException - Unsupported Keras configpublic static int[] mapGlobalPoolingDimensions(String className, KerasLayerConfiguration conf, KerasLayer.DimOrder dimOrder) throws UnsupportedKerasConfigurationException
className - name of the Keras pooling classdimOrder - the dimension order to determine which pooling dimensions to useUnsupportedKerasConfigurationException - Unsupported Keras configCopyright © 2021. All rights reserved.