AttributeError: module 'tensorflow_datasets' has no attribute 'load'

问题遇到的现象和发生背景

问题:AttributeError: module 'tensorflow_datasets' has no attribute 'load'
背景:

  • 系统环境:win10
  • cuda:11.7
  • cudnn:8.4
  • python:3.7.0
  • tensorflow-gpu:2.9.1
问题相关代码,请勿粘贴截图
from tensorflow_examples.models.pix2pix import pix2pix
import tensorflow_datasets as tfds

dataset, info = tfds.load('oxford_iiit_pet:3.*.*', with_info=True)
运行结果及报错内容

报错:AttributeError: module 'tensorflow_datasets' has no attribute 'load'

我的解答思路和尝试过的方法

尝试过的方法:通过ctrl和点击,直接找到源码的load方法,可惜还是失败了

我想要达到的结果

能加载load()函数