I am currently working on generating some external C code where one of the tensors is of type int64
. I noticed that, by default, the logic in codegen_c.h
assumes that all Tensors are of type float*
. Is there a reason for this? If I were to modify the logic to support multiple data types, would that be a welcome change?
The change shouldn’t be too bad, just replacing std::vector<std::string> args
with something like tvm::Array<relay::Var>
args. Once we have a Var
, we can infer the type and generate the correct code.