From c07643d5a23ca8fe21207ef6a33b0ee4d74839e9 Mon Sep 17 00:00:00 2001 From: Jony Guo Date: Wed, 15 Oct 2025 15:01:35 +0800 Subject: [PATCH] update dataset iterator output when string --- tutorials/source_en/beginner/dataset.md | 8 ++++---- tutorials/source_zh_cn/beginner/dataset.ipynb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tutorials/source_en/beginner/dataset.md b/tutorials/source_en/beginner/dataset.md index 9989fb7fc0..e4c5d4ed09 100644 --- a/tutorials/source_en/beginner/dataset.md +++ b/tutorials/source_en/beginner/dataset.md @@ -181,10 +181,10 @@ for data in dataset: ``` ```text -[Tensor(shape=[1], dtype=Int32, value= [0]), Tensor(shape=[], dtype=String, value= '0.jpg'), Tensor(shape=[], dtype=Int32, value= 0)] -[Tensor(shape=[2], dtype=Int32, value= [1, 1]), Tensor(shape=[], dtype=String, value= '1.jpg'), Tensor(shape=[], dtype=Int32, value= 1)] -[Tensor(shape=[3], dtype=Int32, value= [2, 2, 2]), Tensor(shape=[], dtype=String, value= '2.jpg'), Tensor(shape=[], dtype=Int32, value= 2)] -[Tensor(shape=[4], dtype=Int32, value= [3, 3, 3, 3]), Tensor(shape=[], dtype=String, value= '3.jpg'), Tensor(shape=[], dtype=Int32, value= 3)] +[Tensor(shape=[1], dtype=Int32, value= [0]), array('0.jpg', dtype='