1#pragma once
2#include <cstdint>
3
4#include <c10/macros/Macros.h>
5
6namespace c10 {
7
8/**
9 * qint32 is for signed 32 bit quantized Tensors
10 */
11struct alignas(4) qint32 {
12 using underlying = int32_t;
13 int32_t val_;
14 qint32() = default;
15 C10_HOST_DEVICE explicit qint32(int32_t val) : val_(val) {}
16};
17
18} // namespace c10
19