/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/ |
D | cast_tests.cc | 76 for (auto tensor : inputs) { in TEST_F() local 79 for (auto tensor : outputs) { in TEST_F() local 88 for (auto tensor : inputs) { in TEST_F() local 91 for (auto tensor : outputs) { in TEST_F() local 107 for (auto tensor : inputs) { in TEST_F() local 110 for (auto tensor : outputs) { in TEST_F() local 120 for (auto tensor : inputs) { in TEST_F() local 123 for (auto tensor : outputs) { in TEST_F() local 139 for (auto tensor : inputs) { in TEST_F() local 143 for (auto tensor : outputs) { in TEST_F() local [all …]
|
D | common.cc | 81 auto tensor = in_tensors[i]; in TestMain() local 161 auto &tensor = in_tensors[i]; in TestMain() local 190 for (auto &tensor : in_tensors) { in TestMain() local 196 auto &tensor = in_tensors[i]; in TestMain() local 246 auto tensor = tensors[i]; in TestMain() local 326 auto &tensor = tensors[i]; in TestMain() local 353 for (auto &tensor : tensors) { in TestMain() local 359 auto &tensor = tensors[i]; in TestMain() local
|
/third_party/mindspore/mindspore/lite/src/c_api/ |
D | tensor_c.cc | 43 void OH_AI_TensorDestroy(OH_AI_TensorHandle *tensor) { in OH_AI_TensorDestroy() 51 OH_AI_TensorHandle OH_AI_TensorClone(OH_AI_TensorHandle tensor) { in OH_AI_TensorClone() 73 void OH_AI_TensorSetName(OH_AI_TensorHandle tensor, const char *name) { in OH_AI_TensorSetName() 82 const char *OH_AI_TensorGetName(const OH_AI_TensorHandle tensor) { in OH_AI_TensorGetName() 91 void OH_AI_TensorSetDataType(OH_AI_TensorHandle tensor, OH_AI_DataType type) { in OH_AI_TensorSetDataType() 100 OH_AI_DataType OH_AI_TensorGetDataType(const OH_AI_TensorHandle tensor) { in OH_AI_TensorGetDataType() 110 void OH_AI_TensorSetShape(OH_AI_TensorHandle tensor, const int64_t *shape, size_t shape_num) { in OH_AI_TensorSetShape() 123 const int64_t *OH_AI_TensorGetShape(const OH_AI_TensorHandle tensor, size_t *shape_num) { in OH_AI_TensorGetShape() 133 void OH_AI_TensorSetFormat(OH_AI_TensorHandle tensor, OH_AI_Format format) { in OH_AI_TensorSetFormat() 142 OH_AI_Format OH_AI_TensorGetFormat(const OH_AI_TensorHandle tensor) { in OH_AI_TensorGetFormat() [all …]
|
/third_party/boost/boost/numeric/ublas/tensor/ |
D | tensor.hpp | 79 class tensor: class 141 constexpr tensor () in tensor() function in boost::numeric::ublas::tensor 159 tensor (std::initializer_list<size_type> l) in tensor() function in boost::numeric::ublas::tensor 177 tensor (extents_type const& s) in tensor() function in boost::numeric::ublas::tensor 194 tensor (extents_type const& s, const array_type &a) in tensor() function in boost::numeric::ublas::tensor 214 tensor (extents_type const& e, const value_type &i) in tensor() function in boost::numeric::ublas::tensor 228 tensor (const tensor &v) in tensor() function in boost::numeric::ublas::tensor 242 tensor (tensor &&v) in tensor() function in boost::numeric::ublas::tensor 257 tensor (const matrix_type &v) in tensor() function in boost::numeric::ublas::tensor 276 tensor (matrix_type &&v) in tensor() function in boost::numeric::ublas::tensor [all …]
|
/third_party/mindspore/mindspore/lite/minddata/wrapper/ |
D | album_op_android.cc | 180 … AlbumOp::LoadImageTensor(const std::string &image_file_path, int32_t col_num, TensorPtr *tensor) { in LoadImageTensor() 260 …lbumOp::LoadStringArrayTensor(const nlohmann::json &json_obj, int32_t col_num, TensorPtr *tensor) { in LoadStringArrayTensor() 268 Status AlbumOp::LoadStringTensor(const nlohmann::json &json_obj, int32_t col_num, TensorPtr *tensor… in LoadStringTensor() 278 …s AlbumOp::LoadIntArrayTensor(const nlohmann::json &json_obj, int32_t col_num, TensorPtr *tensor) { in LoadIntArrayTensor() 305 …AlbumOp::LoadFloatArrayTensor(const nlohmann::json &json_obj, int32_t col_num, TensorPtr *tensor) { in LoadFloatArrayTensor() 332 Status AlbumOp::LoadIDTensor(const std::string &file, int32_t col_num, TensorPtr *tensor) { in LoadIDTensor() 344 Status AlbumOp::LoadEmptyTensor(int32_t col_num, TensorPtr *tensor) { in LoadEmptyTensor() 354 Status AlbumOp::LoadFloatTensor(const nlohmann::json &json_obj, int32_t col_num, TensorPtr *tensor)… in LoadFloatTensor() 368 Status AlbumOp::LoadIntTensor(const nlohmann::json &json_obj, int32_t col_num, TensorPtr *tensor) { in LoadIntTensor() 387 TensorPtr tensor; in LoadIntTensorRowByIndex() local [all …]
|
/third_party/mindspore/mindspore/lite/src/ |
D | tensorlist.h | 114 for (auto tensor : tensors_) { in set_ref_count() local 123 for (auto tensor : tensors_) { in ResetRefCount() local 132 for (auto tensor : tensors_) { in IncRefCount() local 144 for (auto tensor : tensors_) { in DecRefCount() local 153 for (auto tensor : tensors_) { in set_allocator() local 162 for (auto tensor : tensors_) { in set_own_data() local
|
D | sub_graph_kernel.cc | 56 for (auto tensor : in_tensors()) { in ToString() local 60 for (auto tensor : out_tensors()) { in ToString() local 183 for (auto tensor : node->out_tensors()) { in Prepare() local 190 for (auto tensor : node->out_tensors()) { in Prepare() local 216 for (auto tensor : node->out_tensors()) { in Prepare() local
|
D | ms_tensor.cc | 21 namespace tensor { namespace 24 auto tensor = new (std::nothrow) lite::Tensor(); in CreateTensor() local
|
/third_party/mindspore/mindspore/lite/src/cxx_api/ |
D | cell.cc | 42 ParameterCell::ParameterCell(const MSTensor &tensor) { MS_LOG(ERROR) << "Unsupported feature."; } in ParameterCell() 44 ParameterCell &ParameterCell::operator=(const MSTensor &tensor) { in operator =() 49 ParameterCell::ParameterCell(MSTensor &&tensor) : tensor_(tensor) { MS_LOG(ERROR) << "Unsupported f… in ParameterCell() 51 ParameterCell &ParameterCell::operator=(MSTensor &&tensor) { in operator =() 86 InputAndOutput::InputAndOutput(const MSTensor &tensor) { MS_LOG(ERROR) << "Unsupported feature."; } in InputAndOutput() 87 InputAndOutput::InputAndOutput(MSTensor &&tensor) { MS_LOG(ERROR) << "Unsupported feature."; } in InputAndOutput()
|
/third_party/mindspore/mindspore/lite/mindir/src/ |
D | mindir_tensor.cc | 56 std::string MindIR_Tensor_GetName(ConstTensorPtr tensor) { in MindIR_Tensor_GetName() 69 void MindIR_Tensor_SetName(TensorPtr *tensor, const std::string &name) { in MindIR_Tensor_SetName() 96 DataType MindIR_Tensor_GetDataType(ConstTensorPtr tensor) { in MindIR_Tensor_GetDataType() 111 void MindIR_Tensor_SetDataType(TensorPtr *tensor, DataType data_type) { in MindIR_Tensor_SetDataType() 145 std::vector<int32_t> MindIR_Tensor_GetDims(ConstTensorPtr tensor) { in MindIR_Tensor_GetDims() 165 void MindIR_Tensor_SetDims(TensorPtr *tensor, const std::vector<int32_t> &dims) { in MindIR_Tensor_SetDims() 192 Format MindIR_Tensor_GetFormat(ConstTensorPtr tensor) { in MindIR_Tensor_GetFormat() 207 void MindIR_Tensor_SetFormat(TensorPtr *tensor, Format format) { in MindIR_Tensor_SetFormat() 240 SharedBuffer MindIR_Tensor_GetData(ConstTensorPtr tensor, const SharedBuffer &buffer_templete, uint… in MindIR_Tensor_GetData() 274 std::vector<uint8_t> MindIR_Tensor_GetData(ConstTensorPtr tensor) { in MindIR_Tensor_GetData() [all …]
|
/third_party/mindspore/tests/ut/cpp/cxx_api/ |
D | types_test.cc | 29 MSTensor tensor; in TEST_F() local 41 MSTensor tensor(tensor_name, data_type, {}, nullptr, 0); in TEST_F() local 51 MSTensor tensor(nullptr); in TEST_F() local 57 MSTensor tensor("", DataType::kNumberTypeInt32, {4}, data.data(), data.size() * sizeof(int32_t)); in TEST_F() local 67 MSTensor tensor("", DataType::kNumberTypeInt32, {4}, data.data(), data.size() * sizeof(int32_t)); in TEST_F() local 78 MSTensor tensor("", DataType::kNumberTypeInt32, {4}, data.data(), data.size() * sizeof(int32_t)); in TEST_F() local 91 MSTensor tensor("", DataType::kNumberTypeInt32, {4}, data.data(), data.size() * sizeof(int32_t)); in TEST_F() local 104 MSTensor tensor("", DataType::kNumberTypeInt32, {4}, data.data(), data.size() * sizeof(int32_t)); in TEST_F() local 118 MSTensor *tensor = in TEST_F() local 132 MSTensor *tensor = in TEST_F() local [all …]
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/ |
D | opencl_subgraph.cc | 199 for (const auto tensor : in_tensors()) { in Init() local 203 for (const auto tensor : out_tensors()) { in Init() local 288 for (auto *tensor : node->in_tensors()) { in GetInOutNodes() local 294 for (auto *tensor : node->out_tensors()) { in GetInOutNodes() local 305 for (const auto tensor : in_tensors()) { in Prepare() local 309 for (const auto tensor : out_tensors()) { in Prepare() local 323 for (const auto tensor : node->out_tensors()) { in Prepare() local 360 for (const auto &tensor : in_convert_tensors_) { in UnInit() local 364 for (const auto &tensor : out_convert_tensors_) { in UnInit() local 415 for (auto &tensor : in_tensors()) { in Execute() local [all …]
|
/third_party/mindspore/mindspore/ccsrc/cxx_api/ |
D | cell.cc | 50 ParameterCell::ParameterCell(const MSTensor &tensor) { in ParameterCell() 56 ParameterCell &ParameterCell::operator=(const MSTensor &tensor) { in operator =() 63 ParameterCell::ParameterCell(MSTensor &&tensor) : tensor_(tensor) {} in ParameterCell() 65 ParameterCell &ParameterCell::operator=(MSTensor &&tensor) { in operator =() 138 InputAndOutput::InputAndOutput(const MSTensor &tensor) : prev_(), index_(-1) { in InputAndOutput() 143 InputAndOutput::InputAndOutput(MSTensor &&tensor) in InputAndOutput()
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/ |
D | tensor_py.cc | 31 namespace tensor { namespace 272 static py::buffer_info GetPyBufferInfo(const Tensor &tensor) { in GetPyBufferInfo() 279 py::tuple TensorPy::GetPyTupleShape(const Tensor &tensor) { in GetPyTupleShape() 288 py::tuple TensorPy::GetPyTupleStrides(const Tensor &tensor) { in GetPyTupleStrides() 298 py::int_ TensorPy::GetPyItemSize(const Tensor &tensor) { return tensor.data().itemsize(); } in GetPyItemSize() 300 py::int_ TensorPy::GetPyNBytes(const Tensor &tensor) { return tensor.data().nbytes(); } in GetPyNBytes() 327 void TensorPy::FlushFromCache(const Tensor &tensor) { in FlushFromCache() 364 py::array TensorPy::SyncAsNumpy(const Tensor &tensor) { in SyncAsNumpy() 380 py::array TensorPy::AsNumpy(const Tensor &tensor) { in AsNumpy() 419 … MetaTensor tensor(TypeId(t[0].cast<int>()), t[1].cast<ShapeVector>()); in __anonde8b974e0102() local [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/gnn/ |
D | graph_data_service_impl.cc | 163 std::shared_ptr<Tensor> tensor; in GetAllNodes() local 173 std::shared_ptr<Tensor> tensor; in GetAllEdges() local 187 std::shared_ptr<Tensor> tensor; in GetNodesFromEdges() local 207 std::shared_ptr<Tensor> tensor; in GetEdgesFromNodes() local 224 std::shared_ptr<Tensor> tensor; in GetAllNeighbors() local 251 std::shared_ptr<Tensor> tensor; in GetSampledNeighbors() local 268 std::shared_ptr<Tensor> tensor; in GetNegSampledNeighbors() local 288 std::shared_ptr<Tensor> tensor; in RandomWalk() local 301 std::shared_ptr<Tensor> tensor; in GetNodeFeature() local 313 std::shared_ptr<Tensor> tensor; in GetEdgeFeature() local
|
/third_party/mindspore/mindspore/lite/micro/coder/utils/ |
D | coder_utils.cc | 27 bool CheckConstantTensor(const Tensor *const tensor) { in CheckConstantTensor() 32 void TensorDataToFile(const lite::Tensor *tensor, std::ofstream &ofs) { in TensorDataToFile() 53 void PrintTensorData(const lite::Tensor *tensor, std::ofstream &ofs) { in PrintTensorData() 85 for (const auto &tensor : tensors) { in TensorsToString() local
|
/third_party/mindspore/mindspore/lite/micro/coder/generator/component/ |
D | weight_component.cc | 45 Tensor *tensor = item.second; in CodeModelParamsState() local 58 Tensor *tensor = item.second; in CodeModelParamsData() local 77 Tensor *tensor = item.second; in CodeModelParamsForNet() local 116 Tensor *tensor = item.second; in CodeWeightInitFunc() local 154 Tensor *tensor = item.second; in SaveDataToNet() local
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ |
D | bucket.cc | 24 void Bucket::AddGradTensor(const tensor::TensorPtr &tensor) { in AddGradTensor() 59 for (auto &tensor : grad_tensor_list_) { in Launch() local 74 auto &tensor = grad_tensor_list_[i]; in UpdateTensorAddr() local
|
/third_party/mindspore/mindspore/lite/tools/converter/legacy_optimizer/graph/ |
D | tensor_quant_pass.cc | 32 bool TensorNeedQuant(const std::unique_ptr<TensorT> &tensor) { in TensorNeedQuant() 43 STATUS ComputeDataToInt8(const std::unique_ptr<TensorT> &tensor, int32_t index) { in ComputeDataToInt8() 81 STATUS ComputeDataToInt32(const std::unique_ptr<TensorT> &tensor) { in ComputeDataToInt32() 109 STATUS ComputeQuantTensorPerChannel(TensorT *tensor, const int &tensor_index, const schema::MetaGra… in ComputeQuantTensorPerChannel() 176 for (auto &tensor : graph->allTensors) { in Run() local
|
D | tensor_name_pass.cc | 36 auto &tensor = graph->allTensors.at(tensor_id); in Run() local 45 auto &tensor = graph->allTensors.at(tensor_id); in Run() local
|
/third_party/mindspore/tests/ut/python/nn/ |
D | test_cell.py | 26 def __init__(self, tensor): argument 35 def __init__(self, tensor): argument 163 def __init__(self, tensor): argument 174 def __init__(self, tensor): argument 187 def __init__(self, tensor): argument 256 def __init__(self, tensor): argument 287 def __init__(self, tensor): argument
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/ |
D | relative_position_attention_fp32.cc | 40 bool AttentionActivationTensorCheck(lite::Tensor *tensor) { in AttentionActivationTensorCheck() 102 bool AttentionWeightTensorCheck(lite::Tensor *tensor) { in AttentionWeightTensorCheck() 155 bool AttentionBiasTensorCheck(lite::Tensor *tensor) { in AttentionBiasTensorCheck() 259 inline int PackLeftTensor(const lite::Tensor &tensor, Matrix *matrix, int row_tile, const Allocator… in PackLeftTensor() 313 inline int PackRightTensor(const lite::Tensor &tensor, Matrix *matrix, int col_tile) { in PackRightTensor() 324 inline int PackBiasTensor(const lite::Tensor &tensor, Matrix *matrix, int bias_tile) { in PackBiasTensor() 335 inline void PackPositionTensor(const lite::Tensor &tensor, Matrix *matrix) { in PackPositionTensor()
|
/third_party/mindspore/tests/ut/python/pynative_mode/nn/ |
D | test_cell.py | 27 def __init__(self, tensor): argument 38 def __init__(self, tensor): argument 174 def __init__(self, tensor): argument 187 def __init__(self, tensor): argument 202 def __init__(self, tensor): argument 268 def __init__(self, tensor): argument
|
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/ |
D | arithmetic_grad_fp32_tests.cc | 231 for (auto tensor : all_tensors) { in TEST_F() local 275 for (auto tensor : all_tensors) { in TEST_F() local 322 for (auto tensor : all_tensors) { in TEST_F() local 369 for (auto tensor : all_tensors) { in TEST_F() local 416 for (auto tensor : all_tensors) { in TEST_F() local 469 for (auto tensor : all_tensors) { in TEST_F() local 514 for (auto tensor : all_tensors) { in TEST_F() local 560 for (auto tensor : all_tensors) { in TEST_F() local 606 for (auto tensor : all_tensors) { in TEST_F() local 652 for (auto tensor : all_tensors) { in TEST_F() local [all …]
|
/third_party/mindspore/mindspore/lite/src/common/ |
D | lite_utils.cc | 33 int StringsToMSTensor(const std::vector<std::string> &inputs, tensor::MSTensor *tensor) { in StringsToMSTensor() argument 51 std::vector<std::string> MSTensorToStrings(const tensor::MSTensor *tensor) { in MSTensorToStrings()
|