Home
last modified time | relevance | path

Searched refs:CreateEmpty (Results 1 – 25 of 59) sorted by relevance

123

/third_party/mindspore/tests/ut/cpp/dataset/
Dtensor_test.cc39 Tensor::CreateEmpty(TensorShape({2, 3}), DataType(DataType::DE_UINT64), &t); in TEST_F()
79 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_FLOAT32), &t); in TEST_F()
89 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_UINT8), &t); in TEST_F()
109 Tensor::CreateEmpty(TensorShape({}), DataType(DataType::DE_INT16), &t); in TEST_F()
133 Tensor::CreateEmpty(TensorShape({2, 3}), DataType(DataType::DE_FLOAT64), &t); in TEST_F()
170 Tensor::CreateEmpty(TensorShape({2}), DataType(DataType::DE_BOOL), &t); in TEST_F()
179 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_UINT8), &t); in TEST_F()
194 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_INT8), &t2); in TEST_F()
209 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_FLOAT32), &t3); in TEST_F()
221 Tensor::CreateEmpty(TensorShape({2, 2}), DataType(DataType::DE_UINT8), &t); in TEST_F()
[all …]
Dcutmix_batch_op_test.cc38 …Tensor::CreateEmpty(TensorShape({2, input_tensor_resized->shape()[0], input_tensor_resized->shape(… in TEST_F()
69 …Tensor::CreateEmpty(TensorShape({2, chw_tensor->shape()[0], chw_tensor->shape()[1], chw_tensor->sh… in TEST_F()
109 …Tensor::CreateEmpty(TensorShape({2, input_tensor_->shape()[0], input_tensor_->shape()[1], input_te… in TEST_F()
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);
Dmixup_batch_op_test.cc37 …Tensor::CreateEmpty(TensorShape({2, input_tensor_->shape()[0], input_tensor_->shape()[1], input_te… in TEST_F()
/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()
291 RETURN_IF_NOT_OK(Tensor::CreateEmpty(shape, input->type(), &output_tensor)); in Crop()
402 RETURN_IF_NOT_OK(Tensor::CreateEmpty(shape, input->type(), &output_tensor)); in Resize()
433 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, DataType(DataType::DE_FLOAT32), &image_tensor)); in ResizePreserve()
477 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input->type(), &output_tensor)); in RgbToBgr()
511 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input->type(), &output_tensor)); in RgbToGray()
563 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input->type(), &output_tensor)); in Pad()
628 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input->type(), &output_tensor)); in RotateAngleWithOutMirror()
698 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input->type(), &output_tensor)); in RotateAngleWithMirror()
763 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input->type(), &output_tensor)); in Affine()
[all …]
Dimage_utils.cc116 RETURN_IF_NOT_OK(CVTensor::CreateEmpty(input_cv->shape(), input_cv->type(), &output_cv)); in Flip()
167 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input_cv->type(), &output_tensor)); in Resize()
182 RETURN_IF_NOT_OK(CVTensor::CreateEmpty(shape, input_cv->type(), &output_cv)); in Resize()
406 RETURN_IF_NOT_OK(Tensor::CreateEmpty(ts, DataType(DataType::DE_UINT8), &output_tensor)); in JpegCropAndDecode()
436 …RETURN_IF_NOT_OK(CVTensor::CreateEmpty(input_cv->shape(), DataType(DataType::DE_FLOAT32), &output_… in Rescale()
475 RETURN_IF_NOT_OK(CVTensor::CreateEmpty(shape, input_cv->type(), &output_cv)); in Crop()
508 RETURN_IF_NOT_OK(CVTensor::CreateEmpty(out_shape, input_cv->type(), &output_cv)); in ConvertColor()
542 …RETURN_IF_NOT_OK(CVTensor::CreateEmpty(TensorShape{num_channels, height, width}, input_cv->type(),… in HwcToChw()
650 RETURN_IF_NOT_OK(CVTensor::CreateEmpty(input_cv->shape(), input_cv->type(), &output_cv)); in SwapRedAndBlue()
690 RETURN_IF_NOT_OK(Tensor::CreateEmpty(new_shape, input_cv->type(), &output_tensor)); in CropAndResize()
[all …]
Dinvert_op.cc47 RETURN_IF_NOT_OK(CVTensor::CreateEmpty(input_cv->shape(), input_cv->type(), &output_cv)); in Compute()
Dsolarize_op.cc46 RETURN_IF_NOT_OK(CVTensor::CreateEmpty(input_cv->shape(), input_cv->type(), &output_cv_tensor)); in Compute()
/third_party/skia/src/core/
DSkFontMgr.cpp32 SkFontStyleSet* SkFontStyleSet::CreateEmpty() { return new SkEmptyFontStyleSet; } in CreateEmpty() function in SkFontStyleSet
49 return SkFontStyleSet::CreateEmpty(); in onMatchFamily()
83 fsset = SkFontStyleSet::CreateEmpty(); in emptyOnNull()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/data/
Ddata_utils.cc104 RETURN_IF_NOT_OK(Tensor::CreateEmpty(out_shape, input->type(), &out)); in OneHotEncoding()
240 RETURN_IF_NOT_OK(Tensor::CreateEmpty(input_shape, input_type, &out)); in Fill()
303 RETURN_IF_NOT_OK(Tensor::CreateEmpty(input->shape(), data_type, output)); in TypeCast()
354 RETURN_IF_NOT_OK(Tensor::CreateEmpty(input->shape(), new_type, output)); in ToFloat16()
410 RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape(pad_shape), src->type(), dst)); in PadEndNumeric()
547 RETURN_IF_NOT_OK(Tensor::CreateEmpty(input->shape(), DataType(DataType::DE_BOOL), output)); in Mask()
660 RETURN_IF_NOT_OK(Tensor::CreateEmpty(t, tensor_list[0]->type(), &out)); in Concatenate()
740 RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape(tensor_shape), input.at(0)->type(), output)); in TensorVectorToBatchTensor()
782 RETURN_IF_NOT_OK(Tensor::CreateEmpty(input->shape(), DataType(DataType::DE_INT32), output_idx)); in UniqueHelper()
797 …RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape({static_cast<int32_t>(uniq_size)}), input->type()… in UniqueHelper()
[all …]
/third_party/flutter/skia/src/core/
DSkFontMgr.cpp32 SkFontStyleSet* SkFontStyleSet::CreateEmpty() { return new SkEmptyFontStyleSet; } in CreateEmpty() function in SkFontStyleSet
49 return SkFontStyleSet::CreateEmpty(); in onMatchFamily()
89 fsset = SkFontStyleSet::CreateEmpty(); in emptyOnNull()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/gnn/
Dgraph_loader.cc161 RETURN_IF_NOT_OK(Tensor::CreateEmpty(tensor->shape(), tensor->type(), &zero_tensor)); in LoadNode()
176 RETURN_IF_NOT_OK(Tensor::CreateEmpty(tensor->shape(), tensor->type(), &zero_tensor)); in LoadNode()
213 RETURN_IF_NOT_OK(Tensor::CreateEmpty(tensor->shape(), tensor->type(), &zero_tensor)); in LoadEdge()
228 RETURN_IF_NOT_OK(Tensor::CreateEmpty(tensor->shape(), tensor->type(), &zero_tensor)); in LoadEdge()
Dgraph_feature_parser.cc67 …RETURN_IF_NOT_OK(Tensor::CreateEmpty(std::move(TensorShape({2})), std::move(DataType(DataType::DE_… in LoadFeatureToSharedMemory()
Dgraph_data_impl.cc68 …RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape({static_cast<dsize_t>(m), static_cast<dsize_t>(n)… in CreateTensorByVector()
416 RETURN_IF_NOT_OK(Tensor::CreateEmpty(shape, default_feature->Value()->type(), &fea_tensor)); in GetNodeFeature()
454 RETURN_IF_NOT_OK(Tensor::CreateEmpty(shape, DataType(DataType::DE_INT64), &fea_tensor)); in GetNodeFeatureSharedMemory()
506 RETURN_IF_NOT_OK(Tensor::CreateEmpty(shape, default_feature->Value()->type(), &fea_tensor)); in GetEdgeFeature()
540 RETURN_IF_NOT_OK(Tensor::CreateEmpty(shape, DataType(DataType::DE_INT64), &fea_tensor)); in GetEdgeFeatureSharedMemory()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/dvpp/
Ddvpp_normalize_op.cc25 …RETURN_IF_NOT_OK(mindspore::dataset::DeviceTensor::CreateEmpty(dvpp_shape, dvpp_data_type, output)… in Compute()
Ddvpp_decode_resize_crop_jpeg_op.cc46 …RETURN_IF_NOT_OK(mindspore::dataset::DeviceTensor::CreateEmpty(dvpp_shape, dvpp_data_type, output)… in Compute()
Ddvpp_decode_png_op.cc45 …RETURN_IF_NOT_OK(mindspore::dataset::DeviceTensor::CreateEmpty(dvpp_shape, dvpp_data_type, output)… in Compute()
Ddvpp_decode_resize_jpeg_op.cc45 …RETURN_IF_NOT_OK(mindspore::dataset::DeviceTensor::CreateEmpty(dvpp_shape, dvpp_data_type, output)… in Compute()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/
Dcv_tensor.h51 static Status CreateEmpty(const TensorShape &shape, DataType type, CVTensorPtr *out);
Ddevice_tensor.h40 …static Status CreateEmpty(const TensorShape &shape, const DataType &type, std::shared_ptr<DeviceTe…
Dtensor.cc91 Status Tensor::CreateEmpty(const TensorShape &shape, const DataType &type, TensorPtr *out) { in CreateEmpty() function in mindspore::dataset::Tensor
114 RETURN_IF_NOT_OK(CreateEmpty(shape, type, out)); in CreateFromMemory()
213 RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape(shape), DataType::FromNpArray(arr), out)); in CreateFromNpArray()
279 RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape{num_bytes}, DataType(DataType::DE_UINT8), out)); in CreateFromFile()
293 RETURN_IF_NOT_OK(Tensor::CreateEmpty(shape, type, out)); in CreateFromByteList()
1114 return CreateEmpty(t, type_, out); in Slice()
1126 RETURN_IF_NOT_OK(CreateEmpty(shape, type_, out)); in SliceNumeric()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/text/kernels/
Ddata_utils.cc33 return Tensor::CreateEmpty(TensorShape({0}), input->type(), output); in SlidingWindowHelper()
/third_party/skia/include/core/
DSkFontMgr.h29 static SkFontStyleSet* CreateEmpty();
/third_party/flutter/skia/include/core/
DSkFontMgr.h29 static SkFontStyleSet* CreateEmpty();
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/
Dpy_func_op.cc110 RETURN_IF_NOT_OK(Tensor::CreateEmpty(TensorShape({1}), DataType(DataType::DE_INT32), &out)); in CastOutput()

123