| Package | Description |
|---|---|
| org.nd4j.autodiff.validation |
| Modifier and Type | Method and Description |
|---|---|
OpTestCase |
OpTestCase.expectedOutput(int outputNum,
INDArray expected)
Validate the op output using INDArray.equals(INDArray)
|
OpTestCase |
OpTestCase.expectedOutput(int outputNum,
@NonNull LongShapeDescriptor expShape,
@NonNull Function<INDArray,String> validationFn) |
OpTestCase |
OpTestCase.expectedOutputRelError(int outputNum,
@NonNull INDArray expected,
double maxRelError,
double minAbsError)
Validate the output 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.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
OpValidation.validate(OpTestCase testCase)
Validate the outputs of a single op
|
Copyright © 2021. All rights reserved.