Class OpValidation


  • public class OpValidation
    extends Object
    • Constructor Detail

      • OpValidation

        public OpValidation()
    • Method Detail

      • validate

        public static String validate​(TestCase testCase)
        Run test case
        Parameters:
        testCase - Test case to run
        Returns:
        NULL if test passes, or error message otherwise
      • validate

        public static String validate​(TestCase testCase,
                                      boolean exceptionsAsErrorMsg)
      • checkDeserializedEquality

        public static void checkDeserializedEquality​(SameDiff original,
                                                     ByteBuffer bbSerialized,
                                                     TestCase tc)
      • validate

        public static String validate​(OpTestCase testCase)
        Validate the outputs of a single op
        Parameters:
        testCase - Op test case to run
        Returns:
        NULL if test is OK, or an error message otherwise
      • collectTensorflowImportCoverage

        public static void collectTensorflowImportCoverage​(SameDiff graph)
      • logCoverageInformation

        public static void logCoverageInformation​(boolean logAdequatelyTested,
                                                  boolean logInadequate,
                                                  boolean logUnmappedLibnd4jOps,
                                                  boolean logUntestedTFImport,
                                                  boolean logUnmappedTFOps)
        Log the coverage information
        Parameters:
        logAdequatelyTested - If true: log details of each op that has both forward and (if appropriate) backward tests
        logInadequate - If false: log details of each op that does NOT have both forward and (if appropriate) backward tests