forked from alibaba/MNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVulkanScale.hpp
More file actions
33 lines (28 loc) · 897 Bytes
/
Copy pathVulkanScale.hpp
File metadata and controls
33 lines (28 loc) · 897 Bytes
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
//
// VulkanScale.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef VulkanScale_hpp
#define VulkanScale_hpp
#include <stdio.h>
#include "VulkanBasicExecution.hpp"
namespace MNN {
class VulkanScale : public VulkanBasicExecution {
public:
VulkanScale(const Op* op, Backend* bn);
virtual ~VulkanScale();
ErrorCode onEncode(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs,
const VulkanCommandPool::Buffer* cmdBuffer) override;
private:
std::shared_ptr<VulkanBuffer> mScaleParam;
const VulkanPipeline* mScalePipeline;
std::shared_ptr<VulkanPipeline::DescriptorSet> mDescriptorSet;
std::shared_ptr<VulkanBuffer> mScaleBuffer;
std::shared_ptr<VulkanBuffer> mBiasBuffer;
const VulkanSampler* mSampler;
};
} // namespace MNN
#endif /* VulkanScale_hpp */