[llvm] [mlir] Emitc.convert (PR #136621)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 21 14:52:33 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r HEAD~1...HEAD llvm/lib/Analysis/models/saved-model-to-tflite.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- saved-model-to-tflite.py	2025-04-21 21:48:35.000000 +0000
+++ saved-model-to-tflite.py	2025-04-21 21:51:59.398257 +0000
@@ -30,11 +30,10 @@
     json_file = "output_spec.json"
     src_json = os.path.join(sm_dir, json_file)
     if tf.io.gfile.exists(src_json):
         tf.io.gfile.copy(src_json, os.path.join(tfl_dir, json_file))
     tf.mlir.experimental.tflite_to_tosa_bytecode(
-        tfl_path,
-        os.path.join(tfl_dir, 'model.tosa')
+        tfl_path, os.path.join(tfl_dir, "model.tosa")
     )
 
 if __name__ == "__main__":
     main(sys.argv)

``````````

</details>


https://github.com/llvm/llvm-project/pull/136621


More information about the llvm-commits mailing list