Caffe2 - C++ API
A deep learning, cross platform ML framework
prepare_division_for_onnx.h
1 #pragma once
2 
3 #include <torch/csrc/jit/ir.h>
4 
5 namespace torch {
6 namespace jit {
7 
8 // Prepare division ops for ONNX export. This is necessary for and only used
9 // by ONNX export.
10 //
11 // The pass corrects the following:
12 //
13 // - aten::div(int, int) -> float is the python truediv operator. This doesn't
14 // exist in ONNX so we cast the ints to FloatTensors
15 //
16 TORCH_API void PrepareDivisionForONNX(const std::shared_ptr<Graph>& graph);
17 
18 } // namespace jit
19 } // namespace torch
Definition: jit_type.h:17