报错:None is only supported in the 1st dimension.
加入input_shapes={“input_1”:[1,600,500,3]}
import tensorflow as tf
graph_def_file = "./models/wdsr-a-32-x4-psnr-29.1736.pb"
input_arrays = ["input_1"]
output_arrays = ["lambda_5/add"]
converter = tf.lite.TFLiteConverter.from_frozen_graph(
graph_def_file, input_arrays, output_arrays,input_shapes={"input_1":[1,600,500,3]})
tflite_model = converter.convert()
open("wdsr_-x4-converted_model.tflite", "wb").write(tflite_model)
Some of the operators in the model are not supported by the standard TensorFlow Lite runtime.
If those are native TensorFlow operators, you might be able to use the extended runtime by passing --enable_select_tf_ops, or