public class SDLayerParams extends Object implements Serializable
| Constructor and Description |
|---|
SDLayerParams(Map<String,long[]> weightParams,
Map<String,long[]> biasParams) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBiasParam(@NonNull String paramKey,
long... paramShape)
Add a bias parameter to the layer, with the specified shape.
|
void |
addWeightParam(@NonNull String paramKey,
long... 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,long[]> |
getParamShapes()
Get the parameter shapes for all parameters
|
List<String> |
getWeightParameterKeys() |
int |
hashCode() |
boolean |
isBiasParam(String param) |
boolean |
isWeightParam(String param) |
public void addWeightParam(@NonNull
@NonNull String paramKey,
@NonNull
long... paramShape)
paramKey - The parameter key (name) for the weight parameterparamShape - Shape of the weight parameter arraypublic void addBiasParam(@NonNull
@NonNull String paramKey,
@NonNull
long... paramShape)
paramKey - The parameter key (name) for the bias parameterparamShape - Shape of the bias parameter arraypublic List<String> getParameterKeys()
addWeightParam(String, long...) and
addBiasParam(String, long...)public List<String> getWeightParameterKeys()
addWeightParam(String, long...)public List<String> getBiasParameterKeys()
addWeightParam(String, long...)public Map<String,long[]> getParamShapes()
public void clear()
public boolean isWeightParam(String param)
public boolean isBiasParam(String param)
Copyright © 2020. All rights reserved.