public class SDLayerParams extends Object implements Serializable
| Constructor and Description |
|---|
SDLayerParams(Map<String,int[]> weightParams,
Map<String,int[]> biasParams) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBiasParam(String paramKey,
int[] paramShape)
Add a bias parameter to the layer, with the specified shape.
|
void |
addWeightParam(String paramKey,
int... paramShape)
Add a weight parameter to the layer, with the specified shape.
|
void |
clear()
Clear any previously set weight/bias parameters (including their shapes)
|
boolean |
equals(Object o) |
List<String> |
getBiasParameterKeys() |
List<String> |
getParameterKeys() |
Map<String,int[]> |
getParamShapes()
Get the parameter shapes for all parameters
|
List<String> |
getWeightParameterKeys() |
int |
hashCode() |
public void addWeightParam(@NonNull
String paramKey,
@NonNull
int... paramShape)
paramKey - The parameter key (name) for the weight parameterparamShape - Shape of the weight parameter arraypublic void addBiasParam(@NonNull
String paramKey,
@NonNull
int[] paramShape)
paramKey - The parameter key (name) for the bias parameterparamShape - Shape of the bias parameter arraypublic List<String> getParameterKeys()
addWeightParam(String, int...) and
addBiasParam(String, int[])public List<String> getWeightParameterKeys()
addWeightParam(String, int...)public List<String> getBiasParameterKeys()
addWeightParam(String, int...)public Map<String,int[]> getParamShapes()
public void clear()
Copyright © 2018. All rights reserved.