Caffe2 - C++ API
A deep learning, cross platform ML framework
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_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13