/third_party/mindspore/tests/ut/cpp/dataset/ |
D | datatype_test.cc | 41 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 …]
|
D | tensor_test.cc | 89 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 …]
|
D | random_color_op_test.cc | 34 (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/ |
D | data_type.h | 43 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;
|
D | data_type.cc | 72 return DataType(DataType::DE_UINT8); in FromCVType() 98 type_ = DE_UINT8; in DataType() 137 return DataType(DataType::DE_UINT8); in FromNpArray()
|
D | type_id.h | 31 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/ |
D | lite_image_utils.cc | 212 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()
|
D | decode_op.cc | 63 outputs[0] = DataType(DataType::DE_UINT8); in OutputType()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/ |
D | sbu_node.cc | 65 …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()
|
D | voc_node.cc | 100 …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()
|
D | cityscapes_node.cc | 77 …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()
|
D | div2k_node.cc | 94 …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/ |
D | tensor_proto.cc | 27 {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/ |
D | dvpp_decode_resize_crop_jpeg_op.cc | 45 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute() 105 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
|
D | dvpp_decode_png_op.cc | 44 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute() 105 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
|
D | dvpp_decode_resize_jpeg_op.cc | 44 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute() 104 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
|
D | dvpp_decode_jpeg_op.cc | 45 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute() 109 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
|
D | dvpp_resize_jpeg_op.cc | 49 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute() 118 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
|
D | dvpp_crop_jpeg_op.cc | 48 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute() 119 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
|
D | dvpp_normalize_op.cc | 24 const DataType dvpp_data_type(DataType::DE_UINT8); in Compute()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/ |
D | cache_fbb.cc | 41 CASE(DE_UINT8); in SerializeOneTensorMeta() 122 CASE(DE_UINT8); in RestoreOneTensor()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/data/ |
D | data_utils.cc | 55 } 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/ |
D | sbu_op.cc | 105 …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()
|
D | cityscapes_op.cc | 251 …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()
|
D | div2k_op.cc | 258 …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()
|