public class OpValidation extends Object
TestCase
- Can be used to check op outputs, as well as gradientsOpTestCase
- Used to check the output(s) of a single op onlyTestCase.expected(String, Function)
Constructor and Description |
---|
OpValidation() |
Modifier and Type | Method and Description |
---|---|
static void |
checkDeserializedEquality(SameDiff original,
ByteBuffer bbSerialized,
TestCase tc) |
static void |
collectTensorflowImportCoverage(SameDiff graph) |
protected static void |
equalConsideringNull(List<String> l1,
List<String> l2,
String msg,
Object... args) |
static void |
logCoverageInformation(boolean logAdequatelyTested,
boolean logInadequate,
boolean logUnmappedLibnd4jOps,
boolean logUntestedTFImport,
boolean logUnmappedTFOps)
Log the coverage information
|
static String |
validate(OpTestCase testCase)
Validate the outputs of a single op
|
static String |
validate(TestCase testCase)
Run test case
|
static String |
validate(TestCase testCase,
boolean exceptionsAsErrorMsg) |
public static String validate(TestCase testCase)
testCase
- Test case to runpublic static void checkDeserializedEquality(SameDiff original, ByteBuffer bbSerialized, TestCase tc)
protected static void equalConsideringNull(List<String> l1, List<String> l2, String msg, Object... args)
public static String validate(OpTestCase testCase)
testCase
- Op test case to runpublic static void collectTensorflowImportCoverage(SameDiff graph)
public static void logCoverageInformation(boolean logAdequatelyTested, boolean logInadequate, boolean logUnmappedLibnd4jOps, boolean logUntestedTFImport, boolean logUnmappedTFOps)
logAdequatelyTested
- If true: log details of each op that has both forward and (if appropriate) backward testslogInadequate
- If false: log details of each op that does NOT have both forward and (if appropriate) backward testsCopyright © 2020. All rights reserved.