"ppocr/modeling/transform/__init__.py" did not exist on "824563c63c02fe158e4285f795d372c31fc68739"
constant_integral.hip.hpp 235 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

template <class T, T N>
struct integral_constant
{
    static const T value = N;

    __host__ __device__ constexpr T Get() const { return value; }
};

template <unsigned N>
using Number = integral_constant<unsigned, N>;