tensorflow-onnx
tensorflow-onnx copied to clipboard
Convert TensorFlow, Keras, Tensorflow.js and Tflite models to ONNX
**Describe the bug** Edge case where nodes A, B, C have dependencies A->B->C and safe_remove_nodes is called on set {A, B}. A is removed despite being unsafe to delete. **Urgency**...
if it's a zero initializer, then we can remove the subgraph, for onnx treats it as zero if the input is not supported.
Hi, I tried to convert an LSTM model from TF to ONNX, part of the code related to LSTM is as below: ``` keep_prob = tf.constant(1.0) #tf.placeholder(tf.float32,name="keepProb") h_fc1_drop = tf.nn.dropout(h_fc1,...
**Describe the issue** Given a benchmarked tflite model ( taking mobilenetv2 as an example), I tried converting it to ONNX using tf2onnx converter. Conversion wise the model seems to be...
**Describe the bug** I am trying to convert a keras model to a onnx model with `tf2onnx.conversion.from_keras`. This usually works fine, but: On a multi-GPU machine, Tensorflow allows setting the...
Signed-off-by: Jay Zhang
Hello. I've converted my lstm model and imported it into unity. I set the input as [1, 30, 126] and netron shows the same. But in unity it somehow was...
Hi , I got oidv2-resnet_v1_101.ckpt from [https://storage.googleapis.com/openimages/web/extras.html](url) and convert it to tflite with this code : `SAVED_MODEL_DIR='saved_model1/' converter = tf.lite.TFLiteConverter.from_saved_model( saved_model_dir=SAVED_MODEL_DIR) converter.optimizations = {tf.lite.Optimize.DEFAULT} #optional sh converter.change_concat_input_ranges = True #optional...
Hi, I'm trying to convert a seq2seq Tensorflow v1.x model but get the following error when calling `python -m tf2onnx.convert --checkpoint [...]`: ``` 2022-08-12 12:00:41,703 - INFO - Using tensorflow=2.9.1,...
Hi author, I encountered some unsupported when converting [face_landmark_with_attention.tflite](https://github.com/google/mediapipe/blob/master/mediapipe/modules/face_landmark/face_landmark_with_attention.tflite) to onnx: ```bash python -m tf2onnx.convert --opset 16 --tflite face_landmark_with_attention.tflite --output model.onnx ``` The error is as follows: ``` RuntimeWarning: 'tf2onnx.convert'...