I am a new guy trying Halide programming. I met an issue when porting some Halide code into Android via Halide::Generator. Below is my code:
#include "Halide.h"
using namespace Halide;
using namespace Halide::ConciseCasts;
using namespace std;
Func align_layer(int i) {
    Func ret;
    Var x, y;
    ret(x, y) = i;
    return ret;
}
class TestGenerator : public Halide::Generator<TestGenerator> 
{
    public:
    Input<uint16_t> value{"value"};
    // We then define a method that constructs and return the Halide
    // pipeline:
    void generate() 
    {
        int test = value;
    }
};
HALIDE_REGISTER_GENERATOR(TestGenerator, test_generator)
When I compile it, I got below error:
generator_test.cpp:31:14: error: cannot convert ‘Halide::Internal::GeneratorBase::Input {aka Halide::GeneratorInput}’ to ‘int’ in initialization int test = value;
I did some try:
int test = (int)(value);
or use case converting, all did not work.
Could any one give me a hand?
 
    