public class GradCheckUtil extends Object
Constructor and Description |
---|
GradCheckUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkGradients(SameDiff sd) |
static boolean |
checkGradients(SameDiff sd,
boolean print,
boolean exitOnFirstFailure) |
static boolean |
checkGradients(SameDiff sd,
double eps,
double maxRelError,
double minAbsError,
boolean print,
boolean exitOnFirstFailure) |
static boolean |
checkGradients(SDVariable function,
SDVariable wrt,
double epsilon,
double maxRelError,
boolean print,
Map<String,INDArray> inputParameters) |
public static boolean checkGradients(SDVariable function, SDVariable wrt, double epsilon, double maxRelError, boolean print, Map<String,INDArray> inputParameters)
function
- epsilon
- maxRelError
- print
- inputParameters
- public static boolean checkGradients(SameDiff sd)
public static boolean checkGradients(SameDiff sd, boolean print, boolean exitOnFirstFailure)
public static boolean checkGradients(SameDiff sd, double eps, double maxRelError, double minAbsError, boolean print, boolean exitOnFirstFailure)
Copyright © 2018. All rights reserved.