onnx / keras-onnx

Convert tf.keras/Keras models to ONNX
Apache License 2.0
379 stars 110 forks source link

Does it support to tf dtype variant? #691

Open moncio opened 3 years ago

moncio commented 3 years ago

Hi, I'm trying your library because I need to convert a keras model to onnx. When I run a script using the main function, it shows the next error: ValueError: Unable to find out a correct type for tensor type = <dtype: 'variant'>

Do you have support to this kind of type from tensorflow? Which version of tf is required? I'm using the latest (2.4.1). @wenbingl @jiafatom @cjermain

Thanks in advance

jiafatom commented 3 years ago

tf 2.4.1 is not supported, can you try tf 2.2.0?

moncio commented 3 years ago

Same error @jiafatom . I dont think the problem has to do with tf version. Reviewing the code of the library, it doesnt seem to have support to VariantTensorType (_parser_tf.py)