Boncheol Gu
Boncheol Gu
@tpatterson Sorry, I'm a bit tied up at the moment. But I'll definitely think about it when things calm down.
I suggest using clang-15 & gcc-11.
Did you clone this repo? Then, update submodules before cargo build. Otherwise, cargo clean and build again. Be careful not to interrupt building tflite-rs.
This is a [bug ](https://github.com/boncheolgu/tflite-rs/issues/58)of bindgen. https://github.com/rust-lang/rust-bindgen/pull/2764 fixes it. Which version of clang and gcc do you use?
yes, there is a feature, `generate_model_apis`. ```sh $ cargo build --features generate_model_apis ```
`ElemKindOf` for `f32` is also implemented so you can get output data as `f32` buffer. I think that the above code should work.
Currently, tensor's type can be obtained by `TensorInfo::element_kind`. I didn't understand what you meant by "generate code for the API". Could you explain it more?
I still don't get it what you suggested. In order to generate APIs, models should be given at compile time, but it is not always possible. e.g. `FlatBufferModel` is created...
> @boncheolgu - what are the odds on getting a change like this merged? Wondering if I should resolve the conflict. Contribution is always welcome. I will merge this if...
Hi, thanks for the interest. You are welcome to open a PR. I'll check it.