Raw File
float16_t_generator.cpp
#include "Halide.h"

class Float16T : public Halide::Generator<Float16T> {
public:
    Output<Buffer<int32_t>> output{"output", 1};

    void generate() {
        // Currently the float16 aot test just exercises the
        // runtime. More interesting code may go here in the future.
        Var x;
        output(x) = x;
    }
};

HALIDE_REGISTER_GENERATOR(Float16T, float16_t)
back to top