From 7cf909c33304d48cd6e15cb1567b2fcaa61a994d Mon Sep 17 00:00:00 2001 From: huanxiaoling <3174348550@qq.com> Date: Mon, 7 Nov 2022 10:45:14 +0800 Subject: [PATCH] update the dataset file in tutorials --- tutorials/source_en/beginner/dataset.md | 2 +- tutorials/source_zh_cn/beginner/dataset.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/source_en/beginner/dataset.md b/tutorials/source_en/beginner/dataset.md index 661882a276..410d09f249 100644 --- a/tutorials/source_en/beginner/dataset.md +++ b/tutorials/source_en/beginner/dataset.md @@ -19,7 +19,7 @@ import matplotlib.pyplot as plt We use the **Mnist** dataset as a sample to introduce the loading method by using `mindspore.dataset` . -`mindspore.dataset` provides a large number of dataset loading interfaces. Here we still take Mnist as an example and load it directly by using the downloaded dataset file. The interface provided by `mindspore.dataset` **only supports decompressed datafiles**, so let's remove the compressed file first. +The interface provided by `mindspore.dataset` **only supports decompressed data files**, so we use the `download` library to download the dataset and decompress it. ```python # Download data from open datasets diff --git a/tutorials/source_zh_cn/beginner/dataset.ipynb b/tutorials/source_zh_cn/beginner/dataset.ipynb index 56f16d1032..e644f2f92c 100644 --- a/tutorials/source_zh_cn/beginner/dataset.ipynb +++ b/tutorials/source_zh_cn/beginner/dataset.ipynb @@ -45,7 +45,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "`mindspore.dataset`提供了大量的数据集加载接口,这里我们仍以Mnist为例,直接利用已下载好的数据集文件进行加载。`mindspore.dataset`提供的接口**仅支持解压后的数据文件**,因此我们先删除压缩文件。" + "`mindspore.dataset`提供的接口**仅支持解压后的数据文件**,因此我们使用`download`库下载数据集并解压。" ] }, { -- Gitee