xref: /aosp_15_r20/external/pytorch/torch/csrc/autograd/symbolic.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/jit/ir/ir.h>
4 #include <torch/csrc/onnx/onnx.h>
5 
6 namespace torch::autograd {
7 
8 struct SymbolicContext {
9   jit::Block* block;
10 };
11 
12 struct symbolic_unconvertible : public std::runtime_error {
13   using std::runtime_error::runtime_error;
14 };
15 
16 } // namespace torch::autograd
17