Files
pytorch/torch/csrc/jit/runtime/interpreter/preprocess_graph.h
Nikita Shulga ad8aef0f98 [BE] [3/N] Use nested namespaces (#110314)
Mostly in torch/csrc/jit/runtime and in `ATen/cuda/`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110314
Approved by: https://github.com/seemethere
2023-09-30 02:23:48 +00:00

20 lines
401 B
C++

#pragma once
#include <memory>
#include <unordered_map>
#include <torch/csrc/jit/ir/ir.h>
namespace torch::jit::interpreter {
// pre-processing that happens once per graph
struct PreprocessGraph {
explicit PreprocessGraph(Graph& g);
// Outputs of the preprocessing:
std::shared_ptr<Graph> graph;
std::unordered_map<Node*, bool> can_emit_inline;
};
} // namespace torch::jit::interpreter