当我跑
import tensorflow as tf
tf.test.is_gpu_available(
cuda_only=False, min_cuda_compute_capability=None
)
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
Tensorflow 2.0 版本在 Colab 以及本地试用
乌班图18.4
model.h5 位于当前工作目录中
import tensorflow as tf
export_dir='model.h5'
converter = tf.lite.TFLiteConverter.from_saved_model(export_dir)
tflite_model = converter.convert()
Run Code Online (Sandbox Code Playgroud)
输出
SavedModel file does not exist at: model.h5/{saved_model.pbtxt|saved_model.pb}
Run Code Online (Sandbox Code Playgroud)