mindspore.dataset.show
- mindspore.dataset.show(dataset, indentation=2)[source]
Write the dataset pipeline graph to logger.info file.
- Parameters
dataset (Dataset) – The starting node.
indentation (int, optional) – The indentation used by the JSON print. Do not indent if indentation is None.
Examples
>>> dataset = ds.MnistDataset(mnist_dataset_dir, 100) >>> one_hot_encode = c_transforms.OneHot(10) >>> dataset = dataset.map(operation=one_hot_encode, input_column_names="label") >>> dataset = dataset.batch(batch_size=10, drop_remainder=True) >>> ds.show(dataset)