How to get weights in tflite using c++ api?
问题 I am using a .tflite model on device. The last layer is ConditionalRandomField layer, and I need weights of the layer to do prediction. How do I get weights with c++ api? related: How can I view weights in a .tflite file? Netron or flatc doesn't meet my needs. too heavy on device. It seems TfLiteNode stores weights in void* user_data or void* builtin_data. How do I read them? UPDATE: Conclusion: .tflite doesn't store CRF weights while .h5 dose. (Maybe because they do not affect output.) WHAT