Path: blob/master/modules/dnn/src/vkcom/include/vkcom.hpp
16344 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html.3//4// Copyright (C) 2018, Intel Corporation, all rights reserved.5// Third party copyrights are property of their respective owners.67#ifndef OPENCV_DNN_VKCOM_HPP8#define OPENCV_DNN_VKCOM_HPP910#include <vector>1112namespace cv { namespace dnn { namespace vkcom {1314#ifdef HAVE_VULKAN1516enum Format{17kFormatInvalid = -1,18kFormatFp16,19kFormatFp32,20kFormatFp64,21kFormatInt32,22kFormatNum23};2425enum OpType {26kOpTypeConv,27kOpTypePool,28kOpTypeDWConv,29kOpTypeLRN,30kOpTypeConcat,31kOpTypeSoftmax,32kOpTypeReLU,33kOpTypePriorBox,34kOpTypePermute,35kOpTypeNum36};37enum PaddingMode { kPaddingModeSame, kPaddingModeValid, kPaddingModeCaffe, kPaddingModeNum };38enum FusedActivationType { kNone, kRelu, kRelu1, kRelu6, kActivationNum };39typedef std::vector<int> Shape;4041/* context APIs */42bool initPerThread();43void deinitPerThread();44bool isAvailable();4546#endif // HAVE_VULKAN4748}}} // namespace cv::dnn::vkcom4950#include "tensor.hpp"51#include "buffer.hpp"52#include "op_base.hpp"53#include "op_concat.hpp"54#include "op_conv.hpp"55#include "op_lrn.hpp"56#include "op_softmax.hpp"57#include "op_relu.hpp"58#include "op_pool.hpp"59#include "op_prior_box.hpp"60#include "op_permute.hpp"6162#endif // OPENCV_DNN_VKCOM_HPP636465