Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
caffe2
core
tensor_int8.h
1
#ifndef CAFFE2_TENSOR_INT8_H_
2
#define CAFFE2_TENSOR_INT8_H_
3
4
#include "caffe2/core/context.h"
5
#include "caffe2/core/tensor.h"
6
#include "caffe2/proto/caffe2_pb.h"
7
8
namespace
caffe2
{
9
namespace
int8 {
10
11
struct
Int8TensorCPU
{
12
float
scale{1.0};
13
int32_t zero_point{0};
14
// Generally stores uint8_t data, but sometimes int32_t (e.g. bias
15
// parameters).
16
Tensor
t{CPU};
17
};
18
}
// namespace int8
19
}
// namespace caffe2
20
21
#endif // CAFFE2_TENSOR_INT8_H_
nom::repr::Tensor
Definition:
NeuralNet.h:158
caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition:
blob.h:13
caffe2::int8::Int8TensorCPU
Definition:
tensor_int8.h:11
Generated on Thu Mar 21 2019 13:06:12 for Caffe2 - C++ API by
1.8.11