class_docstr: Abstract base class for test cases.
  
  Intentionally not a sub-class of unittest.TestCase so that unittest / pytest
  don't run it directly. unitest.TestCase is mixed in as another base class when
  creating concrete sub-types. See MakeTestCase().
class_docstr_tok: ["Abstract","base","class","for","test","cases",".","Intentionally","not","a","sub-class","of","unittest.TestCase","so","that","unittest","\/","pytest","do","n't","run","it","directly",".","unitest.TestCase","is","mixed","in","as","another","base","class","when","creating","concrete","sub-types",".","See","MakeTestCase","(",")","."]
code: def run_test(self, graph_ir, example_inputs):
      graph = torch._C.parse_ir(graph_ir)
      jit_outs = torch._C._jit_interpret_graph(graph, example_inputs)
  
      onnx_proto = _jit_graph_to_onnx_model(
          graph, torch.onnx.OperatorExportTypes.ONNX, self.opset_version
      )
      ort_sess = onnxruntime.InferenceSession(
          onnx_proto, providers=self.ort_providers
      )
      ort_outs = verification._run_onnx(ort_sess, example_inputs)
  
      options = verification.VerificationOptions(
          rtol=1e-3,
          atol=1e-7,
          check_shape=self.check_shape,
          check_dtype=self.check_dtype,
          ignore_none=self.ignore_none,
          acceptable_error_percentage=None,
      )
      verification._compare_onnx_pytorch_outputs(
          ort_outs,
          jit_outs,
          options,
      )
  
file_path: pytorch/test/onnx/test_pytorch_jit_onnx.py
imports: import onnxruntime
  import pytorch_test_common
  import torch
  from pytorch_test_common import skipIfNoCuda
  from torch.onnx import verification
  from torch.onnx._globals import GLOBALS
  from torch.testing._internal import common_utils
label_desc: Use image node_id 1 for calling the _TestJITIRToONNX obj's underlying member method code with example usage: obj.run_test(graph_ir, example_inputs) without return types