Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
aten
src
ATen
div_rtn.h
1
#pragma once
2
3
// Integer division rounding to -Infinity
4
template
<
typename
T>
5
static
inline
T
div_rtn(
T
x,
T
y) {
6
int
q = x/y;
7
int
r = x%y;
8
if
((r!=0) && ((r<0) != (y<0))) --q;
9
return
q;
10
}
11
T
Definition:
dataloader.cpp:482
Generated on Thu Mar 21 2019 13:06:08 for Caffe2 - C++ API by
1.8.11