chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// VulkanROIPooling.hpp
|
||||
// MNN
|
||||
//
|
||||
// Created by MNN on 2019/01/31.
|
||||
// Copyright © 2018, Alibaba Group Holding Limited
|
||||
//
|
||||
|
||||
#ifndef VulkanROIPooling_hpp
|
||||
#define VulkanROIPooling_hpp
|
||||
#include "VulkanBasicExecution.hpp"
|
||||
|
||||
namespace MNN {
|
||||
class VulkanROIPooling : public VulkanBasicExecution {
|
||||
public:
|
||||
VulkanROIPooling(Backend* bn, const float SpatialScale, Tensor * tensor);
|
||||
virtual ~VulkanROIPooling();
|
||||
ErrorCode onEncode(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs,
|
||||
const VulkanCommandPool::Buffer* cmdBuffer) override;
|
||||
|
||||
private:
|
||||
float mSpatialScale;
|
||||
std::shared_ptr<VulkanBuffer> mParamBuffer;
|
||||
const VulkanPipeline* mVulkanROIPoolingPipeline;
|
||||
std::shared_ptr<VulkanLayout::DescriptorSet> mDescriptorSet;
|
||||
};
|
||||
} // namespace MNN
|
||||
#endif
|
||||
Reference in New Issue
Block a user