/third_party/mindspore/mindspore/core/ops/ |
D | select.cc | 108 auto conds = cond_tensor->data_c(); in SelectInferValue() 110 bool *cond_data = reinterpret_cast<bool *>(cond_tensor->data_c()); in SelectInferValue() 116 …SelectImpl<bool>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), data_… in SelectInferValue() 120 …SelectImpl<int>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), data_s… in SelectInferValue() 124 …SelectImpl<int8_t>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), dat… in SelectInferValue() 128 …SelectImpl<int16_t>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), da… in SelectInferValue() 132 …SelectImpl<int32_t>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), da… in SelectInferValue() 136 …SelectImpl<int64_t>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), da… in SelectInferValue() 140 …SelectImpl<uint32_t>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), d… in SelectInferValue() 144 …SelectImpl<uint8_t>(cond_data, x_tensor->data_c(), y_tensor->data_c(), result_tensor->data_c(), da… in SelectInferValue() [all …]
|
D | range.cc | 76 auto start = *reinterpret_cast<int *>(start_tensor->data_c()); in RangeInfer() 77 auto limit = *reinterpret_cast<int *>(limit_tensor->data_c()); in RangeInfer() 78 auto delta = *reinterpret_cast<int *>(delta_tensor->data_c()); in RangeInfer() 84 auto start = *reinterpret_cast<float *>(start_tensor->data_c()); in RangeInfer() 85 auto limit = *reinterpret_cast<float *>(limit_tensor->data_c()); in RangeInfer() 86 auto delta = *reinterpret_cast<float *>(delta_tensor->data_c()); in RangeInfer()
|
D | custom_normalize.cc | 29 MS_EXCEPTION_IF_NULL(tensor_value->data_c()); in CustomNormalizeInferShape() 31 auto string_num = reinterpret_cast<int64_t *>(tensor_value->data_c()); in CustomNormalizeInferShape()
|
D | fill.cc | 53 SetTensorData(tensor->data_c(), int_value, mem_size); in FillInfer() 56 SetTensorData(tensor->data_c(), float_value, mem_size); in FillInfer()
|
D | square.cc | 77 auto x_datac = x_tensor->data_c(); in SquareInferValue() 78 auto result_datac = result_tensor->data_c(); in SquareInferValue()
|
D | abs.cc | 80 auto x_datac = x_tensor->data_c(); in AbsInferValue() 81 auto result_datac = result_tensor->data_c(); in AbsInferValue()
|
/third_party/mindspore/mindspore/lite/tools/converter/import/ |
D | mindir_adjust.cc | 45 …MS_CHECK_TRUE_MSG(input_min_ptr->data_c() != nullptr, RET_ERROR, "input_min_ptr->data_c() is nullp… in ConvertInputQuantParam() 46 …MS_CHECK_TRUE_MSG(input_max_ptr->data_c() != nullptr, RET_ERROR, "input_max_ptr->data_c() is nullp… in ConvertInputQuantParam() 47 auto *min_buf = static_cast<float *>(input_min_ptr->data_c()); in ConvertInputQuantParam() 48 auto *max_buf = static_cast<float *>(input_max_ptr->data_c()); in ConvertInputQuantParam() 66 …MS_CHECK_TRUE_MSG(filter_min_ptr->data_c() != nullptr, RET_ERROR, "filter_min_ptr->data_c() is nul… in ConvertInputQuantParam() 67 …MS_CHECK_TRUE_MSG(filter_max_ptr->data_c() != nullptr, RET_ERROR, "filter_max_ptr->data_c() is nul… in ConvertInputQuantParam() 68 auto *min_buf = static_cast<float *>(filter_min_ptr->data_c()); in ConvertInputQuantParam() 69 auto *max_buf = static_cast<float *>(filter_max_ptr->data_c()); in ConvertInputQuantParam() 101 …MS_CHECK_TRUE_MSG(outputMinPtr->data_c() != nullptr, RET_ERROR, "outputMinPtr->data_c() is nullptr… in ConvertOutputQuantParam() 102 …MS_CHECK_TRUE_MSG(outputMaxPtr->data_c() != nullptr, RET_ERROR, "outputMaxPtr->data_c() is nullptr… in ConvertOutputQuantParam() [all …]
|
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/ |
D | conv_conv_fusion.cc | 71 MS_ASSERT(down_bias_param->data_c() != nullptr); in GenNewConvBias() 72 down_bias_data = static_cast<float *>(down_bias_param->data_c()); in GenNewConvBias() 82 MS_ASSERT(down_weight_param != nullptr && down_weight_param->data_c() != nullptr); in GenNewConvBias() 83 auto down_weight_data = static_cast<float *>(down_weight_param->data_c()); in GenNewConvBias() 85 MS_ASSERT(up_bias_param->data_c() != nullptr); in GenNewConvBias() 86 auto up_bias_data = static_cast<float *>(up_bias_param->data_c()); in GenNewConvBias() 93 MS_ASSERT(tensor_info->data_c() != nullptr); in GenNewConvBias() 94 auto new_bias_data = static_cast<float *>(tensor_info->data_c()); in GenNewConvBias() 122 MS_ASSERT(down_weight_param->data_c() != nullptr); in GenNewConvWeight() 126 MS_ASSERT(up_weight_param->data_c() != nullptr); in GenNewConvWeight() [all …]
|
D | conv_bn_fusion.cc | 53 auto bn_var_data = reinterpret_cast<float *>(bn_var_tensor->data_c()); in CalTransale() 76 auto bn_scale_data = reinterpret_cast<float *>(bn_scale_tensor->data_c()); in CalTransale() 92 auto bn_mean_data = reinterpret_cast<float *>(bn_mean_tensor->data_c()); in CalTransBias() 104 auto bn_bias_data = reinterpret_cast<float *>(bn_bias_tensor->data_c()); in CalTransBias() 126 auto origin_data = reinterpret_cast<float *>(origin_tensor->data_c()); in CalEstimatedData() 136 auto scale_factor_data = (reinterpret_cast<float *>(scale_factor_tensor->data_c()))[0]; in CalEstimatedData()
|
D | conv_transform_fusion.cc | 74 MS_ASSERT(weight_tensor->data_c() != nullptr); in GenerateNewWeightConv2DTranspose() 75 auto weight_data = reinterpret_cast<float *>(weight_tensor->data_c()); in GenerateNewWeightConv2DTranspose() 208 …auto new_weight_tensor = lite::CreateTensorInfo(weight_tensor->data_c(), weight_tensor->DataSize()… in GenNewConvTensor() 224 bias_data = reinterpret_cast<float *>(bias_tensor->data_c()); in GenNewConvTensor() 290 auto weight_data = reinterpret_cast<float *>(weight_tensor->data_c()); in CalNewWeightTensor()
|
D | conv_scale_fusion.cc | 72 auto weight_data = reinterpret_cast<const float *>(weight_value->data_c()); in InitTransParam() 85 auto bias_data = reinterpret_cast<const float *>(bias_value->data_c()); in InitTransParam()
|
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/ |
D | clip_convert_activation_pass.cc | 66 MS_CHECK_TRUE_MSG(min_tensor_info->data_c() != nullptr, false, "tensor data is nullptr"); in Run() 67 min = *reinterpret_cast<float *>(min_tensor_info->data_c()); in Run() 79 MS_CHECK_TRUE_MSG(max_tensor_info->data_c() != nullptr, false, "tensor data is nullptr"); in Run() 80 max = *reinterpret_cast<float *>(max_tensor_info->data_c()); in Run()
|
/third_party/mindspore/mindspore/core/ir/ |
D | pattern_matcher.h | 583 float *data2 = reinterpret_cast<float *>(tensor_ptr->data_c()); 592 double *data2 = reinterpret_cast<double *>(tensor_ptr->data_c()); 601 int *data2 = reinterpret_cast<int *>(tensor_ptr->data_c()); 634 return tensor_ptr->data_c(); 652 char *data = reinterpret_cast<char *>(new_tensor_ptr->data_c()); 723 char *data = reinterpret_cast<char *>(new_tensor_ptr->data_c()); 752 auto *data = reinterpret_cast<TD *>(src_tensor_ptr->data_c()); 753 auto *data2 = reinterpret_cast<TD *>(dst_tensor_ptr->data_c()); 908 char *data = reinterpret_cast<char *>(new_tensor_ptr->data_c()); 914 … CalcByOperator<float>(tensor_ptr_1->data_c(), tensor_ptr_1->DataSize(), tensor_ptr_2->data_c(), [all …]
|
/third_party/mindspore/tests/ut/cpp/ops/ |
D | test_ops_range.cc | 87 auto data_x1 = tensor_x1->data_c(); in TEST_F() 91 auto data_x2 = tensor_x2->data_c(); in TEST_F() 95 auto data_x3 = tensor_x3->data_c(); in TEST_F()
|
D | test_ops_crop.cc | 46 auto tensor_x1_data = reinterpret_cast<float *>(tensor_x1->data_c()); in TEST_F() 55 auto tensor_x2_data = reinterpret_cast<int *>(tensor_x2->data_c()); in TEST_F()
|
D | test_ops_gather.cc | 39 auto tensor_x_data = reinterpret_cast<int *>(tensor_x->data_c()); in TEST_F() 50 auto index_data = reinterpret_cast<int *>(index->data_c()); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/host/ |
D | dynamic_shape_kernel.cc | 38 auto data_ptr = static_cast<int64_t *>(output_tensor_for_sync->data_c()); in Execute() 47 … output_tensor_for_sync->data_type(), output_tensor_for_sync->data_c(), in Execute()
|
D | dynamic_broadcast_gradient_args_kernel.cc | 144 auto x_value = reinterpret_cast<int64_t *>(x_shape_value->data_c()); in GetInputShape() 175 auto data_ptr = static_cast<int64_t *>(tensor_for_sync->data_c()); in SetOutputValue() 182 … tensor_for_sync->data_c(), tensor_for_sync->device_info().host_format_)) { in SetOutputValue()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/ |
D | diag_fission.cc | 55 SetAssistTensorData<int32_t>(tensor->data_c(), 1, dims); in CreateAssistNode() 58 SetAssistTensorData<float16>(tensor->data_c(), float16(static_cast<float>(1)), dims); in CreateAssistNode() 61 SetAssistTensorData<float>(tensor->data_c(), static_cast<float>(1), dims); in CreateAssistNode()
|
D | lin_space_fission.cc | 43 int32_t *data = reinterpret_cast<int32_t *>(tensor->data_c()); in CreateTensor() 57 auto data_ptr = assist_tensor->data_c(); in CreateTensor()
|
/third_party/mindspore/tests/ut/cpp/ir/ |
D | meta_tensor_test.cc | 128 uint8_t *data_buf = reinterpret_cast<uint8_t *>(tensor.data_c()); in TEST_F() 199 double *tensor_data = reinterpret_cast<double *>(tensor->data_c()); in TEST_F() 243 memcpy_s(t3->data_c(), t3->data().nbytes(), t1->data_c(), t1->data().nbytes()); in TEST_F() 286 float *tensor_data = reinterpret_cast<float *>(tensor->data_c()); in TEST_F() 347 float *me_tensor_data = reinterpret_cast<float *>(tensor.data_c()); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/ |
D | tensor_py.cc | 276 …tensor.data_c(), tensor.data().itemsize(), GetPyTypeFormat(tensor.data_type()), tensor.DataDim(), … in GetPyBufferInfo() 352 …emCopyFromCacheToHost<int32_t>(hashmap_tensor_ptr->data_c(), tensor.data_c(), cache_tensor_ptr->da… in FlushFromCache() 355 …emCopyFromCacheToHost<int32_t>(hashmap_tensor_ptr->data_c(), tensor.data_c(), cache_tensor_ptr->da… in FlushFromCache()
|
/third_party/mindspore/mindspore/core/utils/ |
D | tensor_construct_utils.cc | 27 auto tensor_data = tensor->data_c(); in CreateZerosTensor() 40 auto tensor_data = tensor->data_c(); in CreateOnesTensor()
|
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/ |
D | quantize_util.h | 170 auto *raw_data = static_cast<float *>(weight->data_c()); 187 ret = DoPerChannelQuant<T>(static_cast<float *>(weight->data_c()), weight->DataSize(), 197 …ret = DoPerLayerQuant<T>(static_cast<float *>(weight->data_c()), weight->DataSize(), &quant_params…
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/ |
D | gpu_device_address.cc | 147 auto ret_rt_memcpy = SyncDeviceToHost(host_shape, host_size, host_type, out_tensor->data_c()); in LoadMemToHost() 158 tensor_data->SetDataPtr(static_cast<char *>(out_tensor->data_c())); in LoadMemToHost()
|