Home
last modified time | relevance | path

Searched refs:TensorList (Results 1 – 25 of 26) sorted by relevance

12

/third_party/mindspore/mindspore/lite/src/
Dtensorlist.cc26 TensorList::TensorList(std::vector<int> shape, std::vector<int> element_shape, Category category) in TensorList() function in mindspore::lite::TensorList
30 TensorList::~TensorList() { in ~TensorList()
32 this->TensorList::FreeData(); in ~TensorList()
37 int TensorList::CopyTensorList(const TensorList &src, bool copy_data) { in CopyTensorList()
60 int TensorList::CopyTensorData(const TensorList &src) { in CopyTensorData()
83 int TensorList::MallocTensorListData(TypeId dtype, const std::vector<std::vector<int> > &tensor_sha… in MallocTensorListData()
120 int TensorList::MallocData(const AllocatorPtr allocator) { in MallocData()
146 void TensorList::FreeData() { in FreeData()
159 int TensorList::FreeTensorListData() { in FreeTensorListData()
174 int TensorList::SetTensor(int index, const Tensor *src_tensor) { in SetTensor()
[all …]
Dtensorlist.h58 class TensorList : public Tensor {
60 TensorList() = default;
62 TensorList(std::vector<int> shape, std::vector<int> element_shape, Category category = VAR);
64 ~TensorList() override;
66 TensorList(const TensorList &other) = delete;
68 TensorList &operator=(const TensorList &tl) = delete;
86 int CopyTensorList(const TensorList &src, bool copy_data);
88 int CopyTensorData(const TensorList &src);
Dlite_mindrt.h108 void MoveTensorListInputData(TensorList *dst_tensor, TensorList *src_tensor);
109 int CastTensorListInputData(TensorList *dst_tensor, TensorList *src_tensor);
Dlite_mindrt.cc113 auto old_tensorlist = reinterpret_cast<TensorList *>(old_tensor); in IsolateInputData()
309 …MoveTensorListInputData(reinterpret_cast<TensorList *>(dst_tensor), reinterpret_cast<TensorList *>… in MoveInputData()
330 …ret = CastTensorListInputData(reinterpret_cast<TensorList *>(dst), reinterpret_cast<TensorList *>(… in CastInputData()
346 reinterpret_cast<TensorList *>(dst_tensor)->tensors_data_type() != in NeedCastData()
347 reinterpret_cast<TensorList *>(src_tensor)->tensors_data_type()) { in NeedCastData()
382 void LiteOpActor::MoveTensorListInputData(TensorList *dst_tensorlist, TensorList *src_tensorlist) { in MoveTensorListInputData()
421 int LiteOpActor::CastTensorListInputData(TensorList *dst_tensorlist, TensorList *src_tensorlist) { in CastTensorListInputData()
714 auto input_tensorlist = reinterpret_cast<TensorList *>(input_tensor); in SetInputShape()
715 auto input_data_tensorlist = reinterpret_cast<TensorList *>(inputs_data_[i]); in SetInputShape()
Dlite_session.cc147 auto tensor_list = reinterpret_cast<TensorList *>(dst_tensor); in ConvertTensorsData()
201 dst_tensor = new (std::nothrow) TensorList(shape, std::vector<int>(), src_category); in ConvertTensor()
203 auto tensor_list = reinterpret_cast<TensorList *>(dst_tensor); in ConvertTensor()
Dscheduler.cc1595 auto tensor_list = reinterpret_cast<TensorList *>(tensor); in GetFirstFp32Fp16OrInt8Type()
1710 void CopyTensorList(TensorList *dst_tensor, TensorList *src_tensor) { in CopyTensorList()
/third_party/mindspore/mindspore/lite/test/ut/nnacl/infer/
Dinfer_manager_test.cc47 TensorList *tensorList = new (std::nothrow) TensorList; in TEST_F()
54 TensorList *out = reinterpret_cast<TensorList *>(outputs[0]); in TEST_F()
72 delete reinterpret_cast<TensorList *>(inputs[i]); in TEST_F()
79 delete reinterpret_cast<TensorList *>(outputs[i]); in TEST_F()
88 TensorList *tensorList = new TensorList; in TEST_F()
135 delete reinterpret_cast<TensorList *>(inputs[i]); in TEST_F()
166 TensorList *tensorList = new (std::nothrow) TensorList; in TEST_F()
173 TensorList *out = reinterpret_cast<TensorList *>(outputs[0]); in TEST_F()
187 delete reinterpret_cast<TensorList *>(inputs[i]); in TEST_F()
194 delete reinterpret_cast<TensorList *>(outputs[i]); in TEST_F()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/base/
Dcarry_data.cc49 ret = MoveTensorListData(reinterpret_cast<lite::TensorList *>(dst_tensor), in MoveData()
50 reinterpret_cast<lite::TensorList *>(src_tensor)); in MoveData()
90 int CarryDataKernel::MoveTensorListData(lite::TensorList *dst_tensorlist, lite::TensorList *src_ten… in MoveTensorListData()
Dcarry_data.h41 int MoveTensorListData(lite::TensorList *dst_tensorlist, lite::TensorList *src_tensorlist);
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/control/
Dtensor_array.cc59 this->tensor_list_ = std::make_unique<lite::TensorList>(shape, element_shape_v); in Init()
101 lite::TensorList **delta = static_cast<lite::TensorList **>(input_x->data()); in Run()
103 lite::TensorList *tensor_list = *delta; in Run()
Dtensorlist_setitem.h41 lite::TensorList *input0_ = nullptr;
43 lite::TensorList *output0_ = nullptr;
Dtensorlist_setitem.cc69 input0_ = reinterpret_cast<lite::TensorList *>(in_tensors_[0]); in Run()
71 output0_ = reinterpret_cast<lite::TensorList *>(out_tensors_[0]); in Run()
90 output0_ = reinterpret_cast<lite::TensorList *>(out_tensors_[0]); in Run()
Dtensorlist_stack.h49 lite::TensorList *input0_ = nullptr;
Dtensorlist_reserve.cc45 auto output = reinterpret_cast<lite::TensorList *>(out_tensors_[0]); in Run()
Dtensorlist_getitem.cc39 auto input0 = reinterpret_cast<lite::TensorList *>(in_tensors_.at(0)); in Run()
Dtensor_array.h43 std::unique_ptr<lite::TensorList> tensor_list_;
Dtensorlist_fromtensor.cc86 auto output0 = reinterpret_cast<lite::TensorList *>(output0_); in Run()
Dtensorlist_stack.cc58 input0_ = reinterpret_cast<lite::TensorList *>(in_tensors_.at(0)); in Init()
/third_party/mindspore/mindspore/lite/src/common/
Dtensor_util.h38 int TensorList2TensorListC(TensorList *src, TensorListC *dst);
39 int TensorListC2TensorList(const TensorListC *src, TensorList *dst);
Dtensor_util.cc101 int TensorList2TensorListC(TensorList *src, TensorListC *dst) { in TensorList2TensorListC()
136 int TensorListC2TensorList(const TensorListC *src, TensorList *dst) { in TensorListC2TensorList()
200 auto *tensor_list = reinterpret_cast<TensorList *>(input); in GenerateInTensorC()
/third_party/mindspore/mindspore/lite/tools/optimizer/graph/
Dnode_infershape.cc358 auto tensor_list = new (std::nothrow) lite::TensorList(data_info.shape_, {}); in GetCNodeTensorListVarInput()
439 …tensor = new (std::nothrow) lite::TensorList(data_info.shape_, std::vector<int>(), tensor_category… in ConvertToLiteTensor()
448 auto tensor_list = reinterpret_cast<lite::TensorList *>(tensor); in ConvertToLiteTensor()
545 auto tensor_list = reinterpret_cast<lite::TensorList *>(tensor); in ConvertTensorListToAbstract()
/third_party/mindspore/third_party/proto/tensorflow/
Dtypes.proto85 // "tensorflow::TensorList" in the variant type registry.
/third_party/mindspore/mindspore/ccsrc/vm/
Dvmimpl.h41 using TensorList = std::vector<tensor::TensorPtr>; variable
/third_party/mindspore/mindspore/lite/tools/converter/legacy_optimizer/graph/
Dinfershape_pass.cc110 lite_tensor = std::make_unique<TensorList>(tensor_shape, element_shape); in ConvertTensorList()
117 auto lite_tensor_list = reinterpret_cast<TensorList *>(lite_tensor.get()); in ConvertTensorList()
276 auto tensor_list = reinterpret_cast<TensorList *>(output_tensors[i]); in SetDataType()
/third_party/mindspore/mindspore/lite/src/runtime/
Dinfer_manager.cc165 auto *tensor_list = reinterpret_cast<TensorList *>(outputs.at(i)); in KernelInferShape()

12