forked from mindspore-Ecosystem/mindspore
fix randomdata ut problem
This commit is contained in:
parent
e2a63790bd
commit
c0d18d2517
|
@ -100,11 +100,8 @@ TEST_F(MindDataTestPipeline, TestRandomDatasetBasic2) {
|
||||||
// Check if RandomDataOp read correct columns
|
// Check if RandomDataOp read correct columns
|
||||||
uint64_t i = 0;
|
uint64_t i = 0;
|
||||||
while (row.size() != 0) {
|
while (row.size() != 0) {
|
||||||
auto image = row["image"];
|
// If no schema specified, RandomData will generate random columns
|
||||||
auto label = row["label"];
|
// So we don't check columns here
|
||||||
MS_LOG(INFO) << "Tensor image shape: " << image->shape();
|
|
||||||
MS_LOG(INFO) << "Tensor label shape: " << label->shape();
|
|
||||||
|
|
||||||
iter->GetNextRow(&row);
|
iter->GetNextRow(&row);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue