| Package | Description |
|---|---|
| org.nd4j.autodiff.validation |
| Modifier and Type | Method and Description |
|---|---|
TestCase |
TestCase.expected(SDVariable var,
org.nd4j.linalg.function.Function<INDArray,String> validationFn) |
TestCase |
TestCase.expected(SDVariable var,
INDArray output)
Validate the output (forward pass) for a single variable using INDArray.equals(INDArray)
|
TestCase |
TestCase.expected(String name,
org.nd4j.linalg.function.Function<INDArray,String> validationFn) |
TestCase |
TestCase.expected(String name,
INDArray output)
Validate the output (forward pass) for a single variable using INDArray.equals(INDArray)
|
TestCase |
TestCase.expectedOutput(String name,
INDArray expected)
Validate the output (forward pass) for a single variable using INDArray.equals(INDArray)
|
TestCase |
TestCase.expectedOutputRelError(String name,
INDArray expected,
double maxRelError,
double minAbsError)
Validate the output (forward pass) for a single variable using element-wise relative error:
relError = abs(x-y)/(abs(x)+abs(y)), with x=y=0 case defined to be 0.0.
|
TestCase |
TestCase.gradCheckSkipVariables(String... toSkip)
Specify the input variables that should NOT be gradient checked.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
GradCheckUtil.checkGradients(TestCase t) |
static String |
OpValidation.validate(TestCase testCase)
Run test case
|
static String |
OpValidation.validate(TestCase testCase,
boolean exceptionsAsErrorMsg) |
Copyright © 2018. All rights reserved.