Home
last modified time | relevance | path

Searched refs:data_schema_ (Results 1 – 25 of 42) sorted by relevance

12

/third_party/mindspore/mindspore/lite/minddata/wrapper/
Dalbum_op_android.cc75 data_schema_ = std::make_unique<DataSchema>(); in PrescanEntry()
81 data_schema_->LoadSchemaFile(schema_file_, columns_to_load_); in PrescanEntry()
280 if (data_schema_->Column(col_num).Type() == DataType::DE_INT64) { in LoadIntArrayTensor()
289 } else if (data_schema_->Column(col_num).Type() == DataType::DE_INT32) { in LoadIntArrayTensor()
300 data_schema_->Column(col_num).Type().ToString()); in LoadIntArrayTensor()
307 if (data_schema_->Column(col_num).Type() == DataType::DE_FLOAT64) { in LoadFloatArrayTensor()
316 } else if (data_schema_->Column(col_num).Type() == DataType::DE_FLOAT32) { in LoadFloatArrayTensor()
327 data_schema_->Column(col_num).Type().ToString()); in LoadFloatArrayTensor()
333 if (data_schema_->Column(col_num).Type() == DataType::DE_STRING) { in LoadIDTensor()
346 …RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape({0}), data_schema_->Column(col_num).Type(), tenso… in LoadEmptyTensor()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dalbum_op.cc39 data_schema_(std::move(data_schema)), in AlbumOp()
45 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in AlbumOp()
46 column_name_id_map_[data_schema_->Column(i).Name()] = i; in AlbumOp()
196 if (data_schema_->Column(col_num).Type() == DataType::DE_INT64) { in LoadIntArrayTensor()
205 } else if (data_schema_->Column(col_num).Type() == DataType::DE_INT32) { in LoadIntArrayTensor()
216 data_schema_->Column(col_num).Type().ToString()); in LoadIntArrayTensor()
225 if (data_schema_->Column(col_num).Type() == DataType::DE_FLOAT64) { in LoadFloatArrayTensor()
234 } else if (data_schema_->Column(col_num).Type() == DataType::DE_FLOAT32) { in LoadFloatArrayTensor()
245 data_schema_->Column(col_num).Type().ToString()); in LoadFloatArrayTensor()
253 if (data_schema_->Column(col_num).Type() == DataType::DE_STRING) { in LoadIDTensor()
[all …]
Drandom_data_op.cc39 data_schema_(std::move(data_schema)) { in RandomDataOp()
47 if (data_schema_ == nullptr) { in RandomDataOp()
65 out << "\nTotal_rows: " << total_rows_ << " \nSchema:\n" << *data_schema_ << "\n\n"; in Print()
77 data_schema_ = std::make_unique<DataSchema>(); in GenerateSchema()
106 Status rc = data_schema_->AddColumn(*new_col); in GenerateSchema()
275 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in CreateRandomRow()
276 const ColDescriptor current_col = data_schema_->Column(i); in CreateRandomRow()
352 RETURN_IF_NOT_OK(data_schema_->GetColumnNameMap(&(column_name_id_map_))); in ComputeColMap()
Dtext_file_op.cc39 data_schema_(std::move(schema)) {} in TextFileOp()
59 out << *data_schema_ << "\n\n"; in Print()
229 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
230 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dtf_reader_op.cc89 data_schema_(std::move(data_schema)), in TFReaderOp()
116 out << *data_schema_ << "\n\n"; in Print()
121 if (data_schema_->Empty()) { in Init()
126 total_rows_ = data_schema_->NumRows(); in Init()
307 int32_t num_columns = data_schema_->NumColumns(); in LoadFile()
335 int32_t num_columns = data_schema_->NumColumns(); in LoadExample()
337 const ColDescriptor current_col = data_schema_->Column(col); in LoadExample()
625data_schema_->AddColumn(ColDescriptor(column_name, DataType(column_type), TensorImpl::kFlexible, 1… in CreateSchema()
723 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
724 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dmindrecord_op.cc70 data_schema_ = std::make_unique<DataSchema>(); in Init()
101 colname_to_ind[colname] = data_schema_->NumColumns(); in Init()
102 RETURN_IF_NOT_OK(data_schema_->AddColumn(col_desc)); in Init()
115 RETURN_IF_NOT_OK(tmp_schema->AddColumn(data_schema_->Column(colname_to_ind[colname]))); in Init()
117 data_schema_ = std::move(tmp_schema); in Init()
267 const ColDescriptor &column = data_schema_->Column(i_col); in LoadTensorRow()
Dusps_op.cc46 data_schema_(std::move(data_schema)) {} in USPSOp()
62 out << *data_schema_ << "\n\n"; in Print()
226 RETURN_IF_NOT_OK(Tensor::CreateFromMemory(image_tensor_shape, data_schema_->Column(0).Type(), in LoadTensor()
342 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
343 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dvoc_op.cc57 data_schema_(std::move(data_schema)), in VOCOp()
86 RETURN_IF_NOT_OK(ReadImageToTensor(kImageFile, data_schema_->Column(0), &image)); in LoadTensorRow()
87 RETURN_IF_NOT_OK(ReadImageToTensor(kTargetFile, data_schema_->Column(1), &target)); in LoadTensorRow()
95 RETURN_IF_NOT_OK(ReadImageToTensor(kImageFile, data_schema_->Column(0), &image)); in LoadTensorRow()
331 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
332 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dceleba_op.cc42 data_schema_(std::move(schema)), in CelebAOp()
264 …Tensor::CreateEmpty(TensorShape({1, (uint32_t)image_label.second.size()}), data_schema_->Column(1)… in LoadTensorRow()
299 for (int32_t index = 0; index < data_schema_->NumColumns(); index++) { in ComputeColMap()
300 column_name_id_map_[data_schema_->Column(index).Name()] = index; in ComputeColMap()
Dflickr_op.cc39 data_schema_(std::move(data_schema)) { in FlickrOp()
242 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
243 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dsbu_op.cc42 data_schema_(std::move(data_schema)) { in SBUOp()
91 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
92 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dmnist_op.cc38 data_schema_(std::move(data_schema)), in MnistOp()
184 RETURN_IF_NOT_OK(Tensor::CreateFromMemory(img_tensor_shape, data_schema_->Column(0).Type(), in ReadImageAndLabel()
312 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
313 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dcifar_op.cc43 data_schema_(std::move(data_schema)) { in CifarOp()
238 data_schema_->Column(0).Type(), &image_tensor)); in ParseCifarData()
372 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
373 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dcityscapes_op.cc45 data_schema_(std::move(data_schema)) { in CityscapesOp()
274 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
275 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dmanifest_op.cc38 data_schema_(std::move(data_schema)), in ManifestOp()
276 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
277 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Ddiv2k_op.cc66 data_schema_(std::move(data_schema)) { in DIV2KOp()
276 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
277 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dimage_folder_op.cc36 data_schema_(std::move(data_schema)), in ImageFolderOp()
301 for (int32_t i = 0; i < data_schema_->NumColumns(); ++i) { in ComputeColMap()
302 column_name_id_map_[data_schema_->Column(i).Name()] = i; in ComputeColMap()
Dflickr_op.h101 std::unique_ptr<DataSchema> data_schema_; variable
Dtext_file_op.h115 std::unique_ptr<DataSchema> data_schema_; variable
Dceleba_op.h106 std::unique_ptr<DataSchema> data_schema_; variable
Ddiv2k_op.h117 std::unique_ptr<DataSchema> data_schema_; variable
Dsbu_op.h116 std::unique_ptr<DataSchema> data_schema_; variable
Dusps_op.h130 std::unique_ptr<DataSchema> data_schema_; variable
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/
Drandom_node.cc98 data_schema_ = std::make_unique<DataSchema>(); in Build()
100 RETURN_IF_NOT_OK(data_schema_->LoadSchemaFile(schema_file_path, columns_to_load)); in Build()
102 RETURN_IF_NOT_OK(data_schema_->LoadSchemaString(schema_json_string, columns_to_load)); in Build()
107 …make_shared<RandomDataOp>(num_workers_, connector_que_size_, total_rows_, std::move(data_schema_)); in Build()
129 int64_t num_rows = total_rows_ != 0 ? total_rows_ : data_schema_->NumRows(); in GetDatasetSize()
Drandom_node.h100 const std::unique_ptr<DataSchema> &GetDataSchema() const { return data_schema_; } in GetDataSchema()
138 std::unique_ptr<DataSchema> data_schema_; variable

12