Unable to convert custom tensorflow model using hls4ml
I am trying to convert a custom tensorflow model using hls4ml but I have encountered this error,
Traceback (most recent call last): File "/home/ruiqi/.local/lib/python3.7/site-packages/hls4ml/converters/tf_to_hls.py", line 136, in tf_to_hls graph_def.ParseFromString(f.read()) google.protobuf.message.DecodeError: Error parsing message with type 'tensorflow.GraphDef'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ruiqi/.local/bin/hls4ml", line 183, in
I wonder does it has anything to do with tensorflow version? This model I am trying to convert is developed using tensorflow 1.12. Upon googling this error, most of the answers just suggest using another way to load the tensorflow model, I am not sure I want to change the source code of hls4ml so I wonder can anyone shed some lights on this? I am using hls4ml 0.5.0