File /usr/local/lib/python3.10/dist-packages/tensorflow/python/keras/engine/data_adapter.py:1699,in_is_distributed_dataset(ds) 1698 def _is_distributed_dataset(ds): ->1699returnisinstance(ds, input_lib.Distribu
from tensorflow.python.distribute.input_lib import DistributedDatasetInterface 根据TensorFlow的API设计原则,通常不建议直接从tensorflow.python.*路径下导入模块,因为这些内部API可能在不同的版本间发生变化,甚至被移除。你应该从公开的API路径导入所需的功能。 搜索TensorFlow官方文档或源代码: 访问TensorFlow官方文档,...