/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/passes
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/passes/onnx.h (967B)
#pragma once
#include
#include
#include
#include
#include
namespace torch {
namespace jit {
TORCH_API std::shared_ptr ToONNX(
std::shared_ptr& state,
::torch::onnx::OperatorExportTypes operator_export_type);
TORCH_API std::unordered_map BlockToONNX(
Block* old_block,
Block* new_block,
::torch::onnx::OperatorExportTypes operator_export_type,
std::unordered_map& env,
bool is_sub_block = false);
TORCH_API void NodeToONNX(
Node* old_node,
Block* new_block,
::torch::onnx::OperatorExportTypes operator_export_type,
std::unordered_map& env);
TORCH_API void RemovePrintOps(std::shared_ptr& graph);
TORCH_API void PreprocessCaffe2Ops(std::shared_ptr& graph);
} // namespace jit
} // namespace torch