Skip to content

Commit d9dabd8

Browse files
committed
Merge branch 'master' into r1.8
2 parents 0fbdb50 + 2554534 commit d9dabd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4165
-575
lines changed

.github/ISSUE_TEMPLATE/bug-performance-issue.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ about: Use this template for reporting a bug or a performance issue.
44

55
---
66

7+
**Dubugging advice**
8+
[delete this section if it doesn't solve your issue]
9+
- Add a `--opset` flag with the highest possible opset you can use. Some ops only convert in higher opsets.
10+
- Try installing the latest tf2onnx from master. Some bug fixes might not have been released to PyPI. Run `pip uninstall tf2onnx` and `pip install git+https://github.com/onnx/tensorflow-onnx`
11+
- If using a saved model, use the Tensorflow `saved_model_cli` to determine the correct `--tag` and `--signature_def` flags to use. If the signature you need is not listed, use the `--concrete_function` flag to index into the model's defined functions.
12+
- If your model was made in tf1.x, try running tf2onnx in a venv with tensorflow 1.x installed. tf2.x should be able to read tf1 models, but sometimes there are bugs.
13+
714
**Describe the bug**
815
A clear and concise description of what the bug is.
916

@@ -16,10 +23,7 @@ If there are particular important use cases blocked by this or strict project-re
1623
- Python version:
1724

1825
**To Reproduce**
19-
Describe steps/code to reproduce the behavior:
20-
21-
**Expected behavior**
22-
A clear and concise description of what you expected to happen.
26+
Describe steps/code to reproduce the behavior. Please upload/link the model you are trying to convert if possible.
2327

2428
**Screenshots**
2529
If applicable, add screenshots to help explain your problem.

README.md

Lines changed: 117 additions & 94 deletions
Large diffs are not rendered by default.

tests/backend_test_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ def convert_to_tflite(self, graph_def, feed_dict, outputs):
197197
sess_outputs = [sess.graph.get_tensor_by_name(n) for n in outputs]
198198
converter = tf_lite.TFLiteConverter.from_session(sess, sess_inputs, sess_outputs)
199199
#converter.optimizations = [tf.lite.Optimize.DEFAULT]
200+
converter.target_spec.supported_ops = [
201+
tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops.
202+
tf.lite.OpsSet.SELECT_TF_OPS, # enable TensorFlow flex ops.
203+
]
200204

201205
from tensorflow.lite.python.convert import ConverterError
202206
try:

0 commit comments

Comments
 (0)