代码拉取完成,页面将自动刷新
class tf.keras.datasets.fashion_mnist()
For more information, see tf.keras.datasets.fashion_mnist.
class mindspore.dataset.FashionMnistDataset(
dataset_dir,
usage=None,
num_samples=None,
num_parallel_workers=None,
shuffle=None,
sampler=None,
num_shards=None,
shard_id=None,
cache=None
)
For more information, see mindspore.dataset.FashionMnistDataset.
TensorFlow: The Fashion MNIST dataset can be downloaded and loaded using the load_data
method within this class.
MindSpore: Load the Fashion MNIST dataset file from the specified path and return the Dataset.
# The following implements FashionMnistDataset with MindSpore.
import mindspore.dataset as ds
fashion_mnist_dataset_dir = "/path/to/fashion_mnist_dataset_directory"
dataset = ds.FashionMnistDataset(dataset_dir=fashion_mnist_dataset_dir)
# The following implements fashion_mnist with TensorFlow.
import tensorflow as tf
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.fashion_mnist.load_data()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。