Fix build error regarding missing types in torch::jit

This commit adds include statements of the file
`torch/csrc/jit/ir/ir.h` for files that use types from torch::jit.

Fixes https://github.com/llvm/torch-mlir/issues/506
pull/488/head snapshot-20220103.184
Ramiro Leal-Cavazos 2022-01-03 19:17:52 +00:00
parent ccfdfd1b80
commit 9afaacedbd
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,8 @@
#ifndef TORCHMLIRJITIRIMPORTER_CSRC_CLASS_ANNOTATOR_H
#define TORCHMLIRJITIRIMPORTER_CSRC_CLASS_ANNOTATOR_H
#include <torch/csrc/jit/ir/ir.h>
#include "pybind.h"
namespace torch_mlir {

View File

@ -9,6 +9,8 @@
#include "get_registered_ops.h"
#include <torch/csrc/jit/ir/ir.h>
namespace py = pybind11;
static const char kGetRegisteredOpsDocstring[] =