forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVulkanBasicExecution.hpp
More file actions
40 lines (31 loc) · 1.07 KB
/
Copy pathVulkanBasicExecution.hpp
File metadata and controls
40 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// VulkanBasicExecution.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef VulkanBasicExecution_hpp
#define VulkanBasicExecution_hpp
#include "Execution.hpp"
#include "VulkanBackend.hpp"
namespace MNN {
class VulkanBasicExecution : public Execution {
public:
VulkanBasicExecution(Backend *bn);
virtual ~VulkanBasicExecution();
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs,
const VulkanCommandPool::Buffer *cmdBuffer) = 0;
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
std::shared_ptr<VulkanCommandPool::Buffer> mCmdBuffer;
};
typedef int ivec2[2];
typedef int ivec3[3];
typedef int ivec4[4];
typedef float vec2[2];
typedef float vec3[3];
typedef float vec4[4];
} // namespace MNN
#endif /* VulkanBasicExecution_hpp */