Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
torch
csrc
jit
passes
onnx
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
torch
Definition:
jit_type.h:17
Generated on Thu Mar 21 2019 13:06:23 for Caffe2 - C++ API by
1.8.11