mindspore.dataset.compare
- mindspore.dataset.compare(pipeline1, pipeline2)[source]
Compare if two dataset pipelines are the same.
- Parameters
pipeline1 (Dataset) – a dataset pipeline.
pipeline2 (Dataset) – a dataset pipeline.
- Returns
Whether pipeline1 is equal to pipeline2.
Examples
>>> pipeline1 = ds.MnistDataset(mnist_dataset_dir, 100) >>> pipeline2 = ds.Cifar10Dataset(cifar_dataset_dir, 100) >>> ds.compare(pipeline1, pipeline2)