Home
last modified time | relevance | path

Searched refs:DE_UINT8 (Results 1 – 25 of 56) sorted by relevance

123

/third_party/mindspore/tests/ut/cpp/dataset/
Ddatatype_test.cc41 x = DataType::kTypeInfo[DataType::DE_UINT8].sizeInBytes_; in TEST_F()
42 d = DataType(DataType::DE_UINT8); in TEST_F()
111 FromDT(DataType(DataType::DE_UINT8), CV_8U, "uint8"); in TEST_F()
126 ASSERT_TRUE(DataType(DataType::DE_UINT8).IsCompatible<uint8_t>()); in TEST_F()
137 ASSERT_FALSE(DataType(DataType::DE_UINT8).IsCompatible<bool>()); in TEST_F()
139 ASSERT_FALSE(DataType(DataType::DE_UINT8).IsCompatible<int8_t>()); in TEST_F()
146 ASSERT_TRUE(DataType(DataType::DE_UINT8).IsLooselyCompatible<uint8_t>()); in TEST_F()
152 ASSERT_TRUE(DataType(DataType::DE_UINT8).IsLooselyCompatible<uint64_t>()); in TEST_F()
158 ASSERT_EQ(DataType::DE_UINT8, DataType::FromCVType(CV_8U).value()); in TEST_F()
159 ASSERT_EQ(DataType::DE_UINT8, DataType::FromCVType(CV_8UC1).value()); in TEST_F()
[all …]
Dtensor_test.cc89 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_UINT8), &t); in TEST_F()
179 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_UINT8), &t); in TEST_F()
221 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_UINT8), &t); in TEST_F()
224 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_UINT8), &t2); in TEST_F()
239 Tensor::CreateEmpty(TensorShape({4, 2, 2}), DataType(DataType::DE_UINT8), &t); in TEST_F()
285 checkCvMat(TensorShape({4, 5}), DataType(DataType::DE_UINT8)); in TEST_F()
286 checkCvMat(TensorShape({4, 5, 3}), DataType(DataType::DE_UINT8)); in TEST_F()
287 checkCvMat(TensorShape({4, 5, 10}), DataType(DataType::DE_UINT8)); in TEST_F()
288 checkCvMat(TensorShape({4, 5, 3, 2}), DataType(DataType::DE_UINT8)); in TEST_F()
289 checkCvMat(TensorShape({4}), DataType(DataType::DE_UINT8)); in TEST_F()
[all …]
Drandom_color_op_test.cc34 (void)Tensor::CreateEmpty(shape, DataType(DataType::DE_UINT8), &in);
35 (void)Tensor::CreateEmpty(shape, DataType(DataType::DE_UINT8), &input_tensor);
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/
Ddata_type.h43 DE_UINT8, enumerator
225 …return type_ == DataType::DE_UINT8 || type_ == DataType::DE_UINT16 || type_ == DataType::DE_UINT32… in IsUnsignedInt()
302 return DataType(DataType::DE_UINT8);
344 type_ == DataType::DE_UINT8;
354 …return type_ == DataType::DE_UINT32 || type_ == DataType::DE_UINT16 || type_ == DataType::DE_UINT8;
364 return type_ == DataType::DE_UINT16 || type_ == DataType::DE_UINT8;
374 return type_ == DataType::DE_UINT8;
Ddata_type.cc72 return DataType(DataType::DE_UINT8); in FromCVType()
98 type_ = DE_UINT8; in DataType()
137 return DataType(DataType::DE_UINT8); in FromNpArray()
Dtype_id.h31 return dataset::DataType(dataset::DataType::DE_UINT8); in MSTypeToDEType()
63 case dataset::DataType::DE_UINT8: in DETypeToMSType()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dlite_image_utils.cc212 RETURN_IF_NOT_OK(Tensor::CreateEmpty(ts, DataType(DataType::DE_UINT8), &output_tensor)); in JpegCropAndDecode()
234 if (data_type == DataType::DE_UINT8) { in GetLiteCVDataType()
256 if (input->type() != DataType::DE_FLOAT32 && input->type() != DataType::DE_UINT8) { in Crop()
335 if (input->type() != DataType::DE_UINT8 && input->type() != DataType::DE_FLOAT32) { in Normalize()
346 if (input->type() == DataType::DE_UINT8) { in Normalize()
373 if (input->type() != DataType::DE_UINT8) { in Resize()
463 if (input->type() != DataType::DE_UINT8) { in RgbToBgr()
497 if (input->type() != DataType::DE_UINT8) { in RgbToGray()
534 if (input->type() != DataType::DE_FLOAT32 && input->type() != DataType::DE_UINT8) { in Pad()
725 if (input->type() != DataType::DE_FLOAT32 && input->type() != DataType::DE_UINT8) { in Rotate()
Ddecode_op.cc63 outputs[0] = DataType(DataType::DE_UINT8); in OutputType()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/
Dsbu_node.cc65 …RETURN_IF_NOT_OK(schema->AddColumn(ColDescriptor("image", DataType(DataType::DE_UINT8), TensorImpl… in Build()
66 …RETURN_IF_NOT_OK(schema->AddColumn(ColDescriptor("caption", DataType(DataType::DE_UINT8), TensorIm… in Build()
Dvoc_node.cc100 …ColDescriptor(std::string(kColumnImage), DataType(DataType::DE_UINT8), TensorImpl::kFlexible, 1))); in Build()
102 …ColDescriptor(std::string(kColumnTarget), DataType(DataType::DE_UINT8), TensorImpl::kFlexible, 1))… in Build()
106 …ColDescriptor(std::string(kColumnImage), DataType(DataType::DE_UINT8), TensorImpl::kFlexible, 1))); in Build()
Dcityscapes_node.cc77 …RETURN_IF_NOT_OK(schema->AddColumn(ColDescriptor("image", DataType(DataType::DE_UINT8), TensorImpl… in Build()
84 …schema->AddColumn(ColDescriptor("task", DataType(DataType::DE_UINT8), TensorImpl::kFlexible, 0, &s… in Build()
Ddiv2k_node.cc94 …RETURN_IF_NOT_OK(schema->AddColumn(ColDescriptor("hr_image", DataType(DataType::DE_UINT8), TensorI… in Build()
97 …schema->AddColumn(ColDescriptor("lr_image", DataType(DataType::DE_UINT8), TensorImpl::kFlexible, 0… in Build()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/gnn/
Dtensor_proto.cc27 {DataTypePb::DE_PB_INT8, DataType::DE_INT8}, {DataTypePb::DE_PB_UINT8, DataType::DE_UINT8},
37 {DataType::DE_INT8, DataTypePb::DE_PB_INT8}, {DataType::DE_UINT8, DataTypePb::DE_PB_UINT8},
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/dvpp/
Ddvpp_decode_resize_crop_jpeg_op.cc45 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
105 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
Ddvpp_decode_png_op.cc44 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
105 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
Ddvpp_decode_resize_jpeg_op.cc44 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
104 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
Ddvpp_decode_jpeg_op.cc45 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
109 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
Ddvpp_resize_jpeg_op.cc49 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
118 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
Ddvpp_crop_jpeg_op.cc48 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
119 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
Ddvpp_normalize_op.cc24 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/
Dcache_fbb.cc41 CASE(DE_UINT8); in SerializeOneTensorMeta()
122 CASE(DE_UINT8); in RestoreOneTensor()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/data/
Ddata_utils.cc55 } else if (input->type() == DataType::DE_UINT8) { in OneHotEncodingUnsigned()
140 case DataType::DE_UINT8: { in FillHelper()
265 case DataType::DE_UINT8: in CastFrom()
312 case DataType::DE_UINT8: in TypeCast()
418 } else if (tensor_type == DataType::DE_UINT8) { in PadEndNumeric()
564 case DataType::DE_UINT8: in Mask()
833 } else if (input->type() == DataType::DE_UINT8) { in Unique()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dsbu_op.cc105 …RETURN_IF_NOT_OK(schema->AddColumn(ColDescriptor("image", DataType(DataType::DE_UINT8), TensorImpl… in CountTotalRows()
106 …RETURN_IF_NOT_OK(schema->AddColumn(ColDescriptor("caption", DataType(DataType::DE_UINT8), TensorIm… in CountTotalRows()
Dcityscapes_op.cc251 …RETURN_IF_NOT_OK(new_schema->AddColumn(ColDescriptor("image", DataType(DataType::DE_UINT8), Tensor… in CountTotalRows()
258 …new_schema->AddColumn(ColDescriptor("task", DataType(DataType::DE_UINT8), TensorImpl::kFlexible, 0… in CountTotalRows()
Ddiv2k_op.cc258 …RETURN_IF_NOT_OK(new_schema->AddColumn(ColDescriptor("hr_image", DataType(DataType::DE_UINT8), Ten… in CountTotalRows()
261 …new_schema->AddColumn(ColDescriptor("lr_image", DataType(DataType::DE_UINT8), TensorImpl::kFlexibl… in CountTotalRows()

123