Searched refs:tensorImpl (Results 1 – 5 of 5) sorted by relevance
1005 if (tensorImpl == nullptr) { in OH_NNTensor_Create()1013 backend->DestroyTensor(tensorImpl); in OH_NNTensor_Create()1037 if (tensorImpl == nullptr) { in OH_NNTensor_CreateWithSize()1045 backend->DestroyTensor(tensorImpl); in OH_NNTensor_CreateWithSize()1094 if (tensorImpl == nullptr) { in OH_NNTensor_CreateWithFd()1102 backend->DestroyTensor(tensorImpl); in OH_NNTensor_CreateWithFd()1122 size_t backendID = tensorImpl->GetBackendID(); in OH_NNTensor_Destroy()1165 auto data = tensorImpl->GetData(); in OH_NNTensor_GetDataBuffer()1186 *size = tensorImpl->GetSize(); in OH_NNTensor_GetSize()1202 *fd = tensorImpl->GetFd(); in OH_NNTensor_GetFd()[all …]
190 NNTensor2_0* tensorImpl = new (std::nothrow) NNTensor2_0(m_backendID); in CreateTensor() local191 if (tensorImpl == nullptr) { in CreateTensor()196 auto ret = tensorImpl->SetTensorDesc(desc); in CreateTensor()199 delete tensorImpl; in CreateTensor()203 return reinterpret_cast<Tensor*>(tensorImpl); in CreateTensor()
682 MockTensor* tensorImpl = new (std::nothrow) MockTensor(); variable683 NN_Tensor* tensor = reinterpret_cast<NN_Tensor*>(tensorImpl);694 testing::Mock::AllowLeak(tensorImpl);711 NNTensor2_0* tensorImpl = new (std::nothrow) NNTensor2_0(deviceId); variable714 tensorImpl->SetTensorDesc(&TensorDesc);715 NN_Tensor* tensor = reinterpret_cast<NN_Tensor*>(tensorImpl);
677 MockTensor* tensorImpl = new (std::nothrow) MockTensor(); variable678 NN_Tensor* tensor = reinterpret_cast<NN_Tensor*>(tensorImpl);689 testing::Mock::AllowLeak(tensorImpl);706 NNTensor2_0* tensorImpl = new (std::nothrow) NNTensor2_0(deviceId); variable709 tensorImpl->SetTensorDesc(&TensorDesc);710 NN_Tensor* tensor = reinterpret_cast<NN_Tensor*>(tensorImpl);
676 MockTensor* tensorImpl = new (std::nothrow) MockTensor(); variable677 NN_Tensor* tensor = reinterpret_cast<NN_Tensor*>(tensorImpl);688 testing::Mock::AllowLeak(tensorImpl);705 NNTensor2_0* tensorImpl = new (std::nothrow) NNTensor2_0(deviceId); variable708 tensorImpl->SetTensorDesc(&TensorDesc);709 NN_Tensor* tensor = reinterpret_cast<NN_Tensor*>(tensorImpl);