Fix the build error for clang when export TIM_VX_ENABLE_PLATFORM=ON

Signed-off-by: yuenan.li <yuenan.li@verisilicon.com>
This commit is contained in:
yuenan.li 2022-08-05 10:56:15 +08:00 committed by Sven
parent 3663a99e0f
commit 9a28ff5758
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class NativeExecutable : public IExecutable{
void GetOutput(const std::vector<std::shared_ptr<ITensorHandle>>& th) override; void GetOutput(const std::vector<std::shared_ptr<ITensorHandle>>& th) override;
bool Submit(const std::shared_ptr<IExecutable>& ref, bool after = true) override; bool Submit(const std::shared_ptr<IExecutable>& ref, bool after = true) override;
bool Trigger(bool async = false) override; bool Trigger(bool async = false) override;
std::shared_ptr<ITensorHandle> AllocateTensor(const TensorSpec& tensor_spec); std::shared_ptr<ITensorHandle> AllocateTensor(const TensorSpec& tensor_spec) override;
bool Verify() override; bool Verify() override;
protected: protected:

View File

@ -21,13 +21,14 @@
* DEALINGS IN THE SOFTWARE. * DEALINGS IN THE SOFTWARE.
* *
*****************************************************************************/ *****************************************************************************/
#ifndef _VIP_VIRTUAL_DEVICE_PRIVARE_H #ifndef _VIP_VIRTUAL_DEVICE_PRIVATE_H
#define _VIP_VIRTUAL_DEVICE_PRIVATE_H #define _VIP_VIRTUAL_DEVICE_PRIVATE_H
#include <memory> #include <memory>
#include <queue> #include <queue>
#include <vector> #include <vector>
#include <map> #include <map>
#include <array>
#include <thread> #include <thread>
#include <iostream> #include <iostream>
#include <mutex> #include <mutex>