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(SameDiff sd,
double eps,
double maxRelError,
double minAbsError,
boolean print,
boolean exitOnFirstFailure,
boolean skipValidation,
boolean debugMode,
Set<String> skipVariables) |
static boolean |
checkGradients(SameDiff sd,
String... skipVariables) |
static boolean |
checkGradients(SDVariable function,
SDVariable wrt,
double epsilon,
double maxRelError,
boolean print,
Map<String,INDArray> inputParameters) |
static boolean |
checkGradients(TestCase t) |
static void |
validateInternalState(SameDiff sd,
boolean generateAndCheckGradFn) |
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(TestCase t)
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)
public static boolean checkGradients(SameDiff sd, double eps, double maxRelError, double minAbsError, boolean print, boolean exitOnFirstFailure, boolean skipValidation, boolean debugMode, Set<String> skipVariables)
public static void validateInternalState(SameDiff sd, boolean generateAndCheckGradFn)
Copyright © 2018. All rights reserved.