質問編集履歴

1

エラーメッセージとコードの不整合を修正

2024/09/06 14:37

投稿

masa-nakamura
masa-nakamura

スコア5

test CHANGED
File without changes
test CHANGED
@@ -8,12 +8,12 @@
8
8
  ### エラーメッセージ
9
9
  ```error
10
10
  OSError Traceback (most recent call last)
11
- <ipython-input-29-760c47b724ca> in <cell line: 5>()
11
+ <ipython-input-30-906685e7ef33> in <cell line: 7>()
12
- 3 import tensorflow as tf
12
+ 5 model.save('/content/saved_model/myModel.keras')
13
- 4
13
+ 6
14
- ----> 5 converter = tf.lite.TFLiteConverter.from_saved_model('/content/saved_model/myModel.keras')
14
+ ----> 7 converter = tf.lite.TFLiteConverter.from_saved_model('/content/saved_model/myModel.keras')
15
- 6 tflite_model = converter.convert()
15
+ 8 tflite_model = converter.convert()
16
- 7
16
+ 9
17
17
 
18
18
  4 frames
19
19
  /usr/local/lib/python3.10/dist-packages/tensorflow/python/saved_model/loader_impl.py in parse_saved_model(export_dir)