Caffe2 - C++ API
A deep learning, cross platform ML framework
check_alias_annotation.h
1 #pragma once
2 
3 #include <torch/csrc/jit/graph_executor.h>
4 #include <torch/csrc/jit/ir.h>
5 #include <torch/csrc/jit/operator.h>
6 
7 namespace torch {
8 namespace jit {
9 
10 // Verify that alias annotations are correct. See impl for definition of
11 // "correct".
12 //
13 // This function expects a graph with a single op with `unqualifiedOpName`, plus
14 // the inputs that you would otherwise have passed to the graph executor.
15 TORCH_API void checkAliasAnnotation(
16  const std::shared_ptr<Graph>& graph,
17  std::vector<IValue> pythonInputs,
18  const std::string& unqualifiedOpName);
19 } // namespace jit
20 } // namespace torch
Definition: jit_type.h:17