tensorflow2.3.0运行报错:AttributeError 这是什么问题 怎么解决

 

def load_preprocess_image(imgpath):
    img_raw = tf.io.read_file(imgpath)
    img_tensor = tf.image.decode-jepg(img_raw,channels=3)
    img_tensor = tf.image.resize(img_tensor,[256,256])
    img_tensor = tf.cast(img_tensor,tf.float32)
    img = img_tensor/255
    return img
image_path = all_image_path[500]
plt.imshow(load_preprocess_image(image_path))