You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.dataset.compare.rst 554 B

12345678910111213141516171819202122
  1. mindspore.dataset.compare
  2. ==========================
  3. .. py:method:: mindspore.dataset.compare(pipeline1, pipeline2)
  4. 比较两个数据处理管道是否相同。
  5. **参数:**
  6. - **pipeline1** (Dataset):数据处理管道。
  7. - **pipeline2** (Dataset):数据处理管道。
  8. **返回:**
  9. bool,两个数据处理管道是否相等。
  10. **样例:**
  11. >>> pipeline1 = ds.MnistDataset(mnist_dataset_dir, 100)
  12. >>> pipeline2 = ds.Cifar10Dataset(cifar_dataset_dir, 100)
  13. >>> ds.compare(pipeline1, pipeline2)