mirror of https://github.com/llvm/torch-mlir
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/506pull/488/head snapshot-20220103.184
parent
ccfdfd1b80
commit
9afaacedbd
|
@ -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 {
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "get_registered_ops.h"
|
||||
|
||||
#include <torch/csrc/jit/ir/ir.h>
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
static const char kGetRegisteredOpsDocstring[] =
|
||||
|
|
Loading…
Reference in New Issue