speed up vulkan dnn, and support ios and apple m1 chip. (#23349)

This commit is contained in:
Zihao Mu 2023-05-19 01:02:27 +08:00 committed by GitHub
parent 435ccfdd51
commit 5025f29378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
117 changed files with 16867 additions and 9436 deletions

View File

@ -2,19 +2,9 @@
// File: vk_platform.h
//
/*
** Copyright (c) 2014-2017 The Khronos Group Inc.
** Copyright 2014-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
@ -52,7 +42,7 @@ extern "C"
#define VKAPI_CALL __stdcall
#define VKAPI_PTR VKAPI_CALL
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH < 7
#error "Vulkan isn't supported for the 'armeabi' NDK ABI"
#error "Vulkan is not supported for the 'armeabi' NDK ABI"
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7 && defined(__ARM_32BIT_STATE)
// On Android 32-bit ARM targets, Vulkan functions use the "hardfloat"
// calling convention, i.e. float parameters are passed in registers. This
@ -68,7 +58,9 @@ extern "C"
#define VKAPI_PTR
#endif
#include <stddef.h>
#if !defined(VK_NO_STDDEF_H)
#include <stddef.h>
#endif // !defined(VK_NO_STDDEF_H)
#if !defined(VK_NO_STDINT_H)
#if defined(_MSC_VER) && (_MSC_VER < 1600)

View File

@ -2,19 +2,9 @@
#define VULKAN_H_ 1
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
#include "vk_platform.h"
@ -38,20 +28,16 @@
#include "vulkan_macos.h"
#endif
#ifdef VK_USE_PLATFORM_MIR_KHR
#include <mir_toolkit/client_types.h>
#include "vulkan_mir.h"
#ifdef VK_USE_PLATFORM_METAL_EXT
#include "vulkan_metal.h"
#endif
#ifdef VK_USE_PLATFORM_VI_NN
#include "vulkan_vi.h"
#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
#include <wayland-client.h>
#include "vulkan_wayland.h"
#endif
@ -74,10 +60,40 @@
#endif
#ifdef VK_USE_PLATFORM_DIRECTFB_EXT
#include <directfb.h>
#include "vulkan_directfb.h"
#endif
#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
#include "vulkan_xlib_xrandr.h"
#endif
#ifdef VK_USE_PLATFORM_GGP
#include <ggp_c/vulkan_types.h>
#include "vulkan_ggp.h"
#endif
#ifdef VK_USE_PLATFORM_SCREEN_QNX
#include <screen/screen.h>
#include "vulkan_screen.h"
#endif
#ifdef VK_USE_PLATFORM_SCI
#include <nvscisync.h>
#include <nvscibuf.h>
#include "vulkan_sci.h"
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
#include "vulkan_beta.h"
#endif
#endif // VULKAN_H_

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_ANDROID_H_
#define VULKAN_ANDROID_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,14 +13,17 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_KHR_android_surface 1
struct ANativeWindow;
#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6
#define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface"
typedef VkFlags VkAndroidSurfaceCreateFlagsKHR;
typedef struct VkAndroidSurfaceCreateInfoKHR {
VkStructureType sType;
const void* pNext;
@ -42,7 +31,6 @@ typedef struct VkAndroidSurfaceCreateInfoKHR {
struct ANativeWindow* window;
} VkAndroidSurfaceCreateInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
#ifndef VK_NO_PROTOTYPES
@ -53,12 +41,11 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(
VkSurfaceKHR* pSurface);
#endif
#define VK_ANDROID_external_memory_android_hardware_buffer 1
struct AHardwareBuffer;
#define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_SPEC_VERSION 3
#define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_SPEC_VERSION 5
#define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME "VK_ANDROID_external_memory_android_hardware_buffer"
typedef struct VkAndroidHardwareBufferUsageANDROID {
VkStructureType sType;
void* pNext;
@ -103,6 +90,18 @@ typedef struct VkExternalFormatANDROID {
uint64_t externalFormat;
} VkExternalFormatANDROID;
typedef struct VkAndroidHardwareBufferFormatProperties2ANDROID {
VkStructureType sType;
void* pNext;
VkFormat format;
uint64_t externalFormat;
VkFormatFeatureFlags2 formatFeatures;
VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;
VkChromaLocation suggestedYChromaOffset;
} VkAndroidHardwareBufferFormatProperties2ANDROID;
typedef VkResult (VKAPI_PTR *PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(VkDevice device, const struct AHardwareBuffer* buffer, VkAndroidHardwareBufferPropertiesANDROID* pProperties);
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryAndroidHardwareBufferANDROID)(VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo, struct AHardwareBuffer** pBuffer);

492
3rdparty/include/vulkan/vulkan_beta.h vendored Normal file
View File

@ -0,0 +1,492 @@
#ifndef VULKAN_BETA_H_
#define VULKAN_BETA_H_ 1
/*
** Copyright 2015-2023 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
/*
** This header is generated from the Khronos Vulkan XML API Registry.
**
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_KHR_portability_subset 1
#define VK_KHR_PORTABILITY_SUBSET_SPEC_VERSION 1
#define VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME "VK_KHR_portability_subset"
typedef struct VkPhysicalDevicePortabilitySubsetFeaturesKHR {
VkStructureType sType;
void* pNext;
VkBool32 constantAlphaColorBlendFactors;
VkBool32 events;
VkBool32 imageViewFormatReinterpretation;
VkBool32 imageViewFormatSwizzle;
VkBool32 imageView2DOn3DImage;
VkBool32 multisampleArrayImage;
VkBool32 mutableComparisonSamplers;
VkBool32 pointPolygons;
VkBool32 samplerMipLodBias;
VkBool32 separateStencilMaskRef;
VkBool32 shaderSampleRateInterpolationFunctions;
VkBool32 tessellationIsolines;
VkBool32 tessellationPointMode;
VkBool32 triangleFans;
VkBool32 vertexAttributeAccessBeyondStride;
} VkPhysicalDevicePortabilitySubsetFeaturesKHR;
typedef struct VkPhysicalDevicePortabilitySubsetPropertiesKHR {
VkStructureType sType;
void* pNext;
uint32_t minVertexInputBindingStrideAlignment;
} VkPhysicalDevicePortabilitySubsetPropertiesKHR;
#define VK_KHR_video_encode_queue 1
#define VK_KHR_VIDEO_ENCODE_QUEUE_SPEC_VERSION 8
#define VK_KHR_VIDEO_ENCODE_QUEUE_EXTENSION_NAME "VK_KHR_video_encode_queue"
typedef enum VkVideoEncodeTuningModeKHR {
VK_VIDEO_ENCODE_TUNING_MODE_DEFAULT_KHR = 0,
VK_VIDEO_ENCODE_TUNING_MODE_HIGH_QUALITY_KHR = 1,
VK_VIDEO_ENCODE_TUNING_MODE_LOW_LATENCY_KHR = 2,
VK_VIDEO_ENCODE_TUNING_MODE_ULTRA_LOW_LATENCY_KHR = 3,
VK_VIDEO_ENCODE_TUNING_MODE_LOSSLESS_KHR = 4,
VK_VIDEO_ENCODE_TUNING_MODE_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeTuningModeKHR;
typedef VkFlags VkVideoEncodeFlagsKHR;
typedef enum VkVideoEncodeCapabilityFlagBitsKHR {
VK_VIDEO_ENCODE_CAPABILITY_PRECEDING_EXTERNALLY_ENCODED_BYTES_BIT_KHR = 0x00000001,
VK_VIDEO_ENCODE_CAPABILITY_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeCapabilityFlagBitsKHR;
typedef VkFlags VkVideoEncodeCapabilityFlagsKHR;
typedef enum VkVideoEncodeRateControlModeFlagBitsKHR {
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DEFAULT_KHR = 0,
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_DISABLED_BIT_KHR = 0x00000001,
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_CBR_BIT_KHR = 0x00000002,
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_VBR_BIT_KHR = 0x00000004,
VK_VIDEO_ENCODE_RATE_CONTROL_MODE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeRateControlModeFlagBitsKHR;
typedef VkFlags VkVideoEncodeRateControlModeFlagsKHR;
typedef enum VkVideoEncodeFeedbackFlagBitsKHR {
VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BUFFER_OFFSET_BIT_KHR = 0x00000001,
VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BYTES_WRITTEN_BIT_KHR = 0x00000002,
VK_VIDEO_ENCODE_FEEDBACK_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeFeedbackFlagBitsKHR;
typedef VkFlags VkVideoEncodeFeedbackFlagsKHR;
typedef enum VkVideoEncodeUsageFlagBitsKHR {
VK_VIDEO_ENCODE_USAGE_DEFAULT_KHR = 0,
VK_VIDEO_ENCODE_USAGE_TRANSCODING_BIT_KHR = 0x00000001,
VK_VIDEO_ENCODE_USAGE_STREAMING_BIT_KHR = 0x00000002,
VK_VIDEO_ENCODE_USAGE_RECORDING_BIT_KHR = 0x00000004,
VK_VIDEO_ENCODE_USAGE_CONFERENCING_BIT_KHR = 0x00000008,
VK_VIDEO_ENCODE_USAGE_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeUsageFlagBitsKHR;
typedef VkFlags VkVideoEncodeUsageFlagsKHR;
typedef enum VkVideoEncodeContentFlagBitsKHR {
VK_VIDEO_ENCODE_CONTENT_DEFAULT_KHR = 0,
VK_VIDEO_ENCODE_CONTENT_CAMERA_BIT_KHR = 0x00000001,
VK_VIDEO_ENCODE_CONTENT_DESKTOP_BIT_KHR = 0x00000002,
VK_VIDEO_ENCODE_CONTENT_RENDERED_BIT_KHR = 0x00000004,
VK_VIDEO_ENCODE_CONTENT_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
} VkVideoEncodeContentFlagBitsKHR;
typedef VkFlags VkVideoEncodeContentFlagsKHR;
typedef VkFlags VkVideoEncodeRateControlFlagsKHR;
typedef struct VkVideoEncodeInfoKHR {
VkStructureType sType;
const void* pNext;
VkVideoEncodeFlagsKHR flags;
uint32_t qualityLevel;
VkBuffer dstBuffer;
VkDeviceSize dstBufferOffset;
VkDeviceSize dstBufferRange;
VkVideoPictureResourceInfoKHR srcPictureResource;
const VkVideoReferenceSlotInfoKHR* pSetupReferenceSlot;
uint32_t referenceSlotCount;
const VkVideoReferenceSlotInfoKHR* pReferenceSlots;
uint32_t precedingExternallyEncodedBytes;
} VkVideoEncodeInfoKHR;
typedef struct VkVideoEncodeCapabilitiesKHR {
VkStructureType sType;
void* pNext;
VkVideoEncodeCapabilityFlagsKHR flags;
VkVideoEncodeRateControlModeFlagsKHR rateControlModes;
uint32_t maxRateControlLayers;
uint32_t maxQualityLevels;
VkExtent2D inputImageDataFillAlignment;
VkVideoEncodeFeedbackFlagsKHR supportedEncodeFeedbackFlags;
} VkVideoEncodeCapabilitiesKHR;
typedef struct VkQueryPoolVideoEncodeFeedbackCreateInfoKHR {
VkStructureType sType;
const void* pNext;
VkVideoEncodeFeedbackFlagsKHR encodeFeedbackFlags;
} VkQueryPoolVideoEncodeFeedbackCreateInfoKHR;
typedef struct VkVideoEncodeUsageInfoKHR {
VkStructureType sType;
const void* pNext;
VkVideoEncodeUsageFlagsKHR videoUsageHints;
VkVideoEncodeContentFlagsKHR videoContentHints;
VkVideoEncodeTuningModeKHR tuningMode;
} VkVideoEncodeUsageInfoKHR;
typedef struct VkVideoEncodeRateControlLayerInfoKHR {
VkStructureType sType;
const void* pNext;
uint64_t averageBitrate;
uint64_t maxBitrate;
uint32_t frameRateNumerator;
uint32_t frameRateDenominator;
uint32_t virtualBufferSizeInMs;
uint32_t initialVirtualBufferSizeInMs;
} VkVideoEncodeRateControlLayerInfoKHR;
typedef struct VkVideoEncodeRateControlInfoKHR {
VkStructureType sType;
const void* pNext;
VkVideoEncodeRateControlFlagsKHR flags;
VkVideoEncodeRateControlModeFlagBitsKHR rateControlMode;
uint32_t layerCount;
const VkVideoEncodeRateControlLayerInfoKHR* pLayers;
} VkVideoEncodeRateControlInfoKHR;
typedef void (VKAPI_PTR *PFN_vkCmdEncodeVideoKHR)(VkCommandBuffer commandBuffer, const VkVideoEncodeInfoKHR* pEncodeInfo);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR void VKAPI_CALL vkCmdEncodeVideoKHR(
VkCommandBuffer commandBuffer,
const VkVideoEncodeInfoKHR* pEncodeInfo);
#endif
#define VK_EXT_video_encode_h264 1
#include "vk_video/vulkan_video_codec_h264std.h"
#include "vk_video/vulkan_video_codec_h264std_encode.h"
#define VK_EXT_VIDEO_ENCODE_H264_SPEC_VERSION 10
#define VK_EXT_VIDEO_ENCODE_H264_EXTENSION_NAME "VK_EXT_video_encode_h264"
typedef enum VkVideoEncodeH264RateControlStructureEXT {
VK_VIDEO_ENCODE_H264_RATE_CONTROL_STRUCTURE_UNKNOWN_EXT = 0,
VK_VIDEO_ENCODE_H264_RATE_CONTROL_STRUCTURE_FLAT_EXT = 1,
VK_VIDEO_ENCODE_H264_RATE_CONTROL_STRUCTURE_DYADIC_EXT = 2,
VK_VIDEO_ENCODE_H264_RATE_CONTROL_STRUCTURE_MAX_ENUM_EXT = 0x7FFFFFFF
} VkVideoEncodeH264RateControlStructureEXT;
typedef enum VkVideoEncodeH264CapabilityFlagBitsEXT {
VK_VIDEO_ENCODE_H264_CAPABILITY_DIRECT_8X8_INFERENCE_ENABLED_BIT_EXT = 0x00000001,
VK_VIDEO_ENCODE_H264_CAPABILITY_DIRECT_8X8_INFERENCE_DISABLED_BIT_EXT = 0x00000002,
VK_VIDEO_ENCODE_H264_CAPABILITY_SEPARATE_COLOUR_PLANE_BIT_EXT = 0x00000004,
VK_VIDEO_ENCODE_H264_CAPABILITY_QPPRIME_Y_ZERO_TRANSFORM_BYPASS_BIT_EXT = 0x00000008,
VK_VIDEO_ENCODE_H264_CAPABILITY_SCALING_LISTS_BIT_EXT = 0x00000010,
VK_VIDEO_ENCODE_H264_CAPABILITY_HRD_COMPLIANCE_BIT_EXT = 0x00000020,
VK_VIDEO_ENCODE_H264_CAPABILITY_CHROMA_QP_OFFSET_BIT_EXT = 0x00000040,
VK_VIDEO_ENCODE_H264_CAPABILITY_SECOND_CHROMA_QP_OFFSET_BIT_EXT = 0x00000080,
VK_VIDEO_ENCODE_H264_CAPABILITY_PIC_INIT_QP_MINUS26_BIT_EXT = 0x00000100,
VK_VIDEO_ENCODE_H264_CAPABILITY_WEIGHTED_PRED_BIT_EXT = 0x00000200,
VK_VIDEO_ENCODE_H264_CAPABILITY_WEIGHTED_BIPRED_EXPLICIT_BIT_EXT = 0x00000400,
VK_VIDEO_ENCODE_H264_CAPABILITY_WEIGHTED_BIPRED_IMPLICIT_BIT_EXT = 0x00000800,
VK_VIDEO_ENCODE_H264_CAPABILITY_WEIGHTED_PRED_NO_TABLE_BIT_EXT = 0x00001000,
VK_VIDEO_ENCODE_H264_CAPABILITY_TRANSFORM_8X8_BIT_EXT = 0x00002000,
VK_VIDEO_ENCODE_H264_CAPABILITY_CABAC_BIT_EXT = 0x00004000,
VK_VIDEO_ENCODE_H264_CAPABILITY_CAVLC_BIT_EXT = 0x00008000,
VK_VIDEO_ENCODE_H264_CAPABILITY_DEBLOCKING_FILTER_DISABLED_BIT_EXT = 0x00010000,
VK_VIDEO_ENCODE_H264_CAPABILITY_DEBLOCKING_FILTER_ENABLED_BIT_EXT = 0x00020000,
VK_VIDEO_ENCODE_H264_CAPABILITY_DEBLOCKING_FILTER_PARTIAL_BIT_EXT = 0x00040000,
VK_VIDEO_ENCODE_H264_CAPABILITY_DISABLE_DIRECT_SPATIAL_MV_PRED_BIT_EXT = 0x00080000,
VK_VIDEO_ENCODE_H264_CAPABILITY_MULTIPLE_SLICE_PER_FRAME_BIT_EXT = 0x00100000,
VK_VIDEO_ENCODE_H264_CAPABILITY_SLICE_MB_COUNT_BIT_EXT = 0x00200000,
VK_VIDEO_ENCODE_H264_CAPABILITY_ROW_UNALIGNED_SLICE_BIT_EXT = 0x00400000,
VK_VIDEO_ENCODE_H264_CAPABILITY_DIFFERENT_SLICE_TYPE_BIT_EXT = 0x00800000,
VK_VIDEO_ENCODE_H264_CAPABILITY_B_FRAME_IN_L1_LIST_BIT_EXT = 0x01000000,
VK_VIDEO_ENCODE_H264_CAPABILITY_DIFFERENT_REFERENCE_FINAL_LISTS_BIT_EXT = 0x02000000,
VK_VIDEO_ENCODE_H264_CAPABILITY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
} VkVideoEncodeH264CapabilityFlagBitsEXT;
typedef VkFlags VkVideoEncodeH264CapabilityFlagsEXT;
typedef struct VkVideoEncodeH264CapabilitiesEXT {
VkStructureType sType;
void* pNext;
VkVideoEncodeH264CapabilityFlagsEXT flags;
uint32_t maxPPictureL0ReferenceCount;
uint32_t maxBPictureL0ReferenceCount;
uint32_t maxL1ReferenceCount;
VkBool32 motionVectorsOverPicBoundariesFlag;
uint32_t maxBytesPerPicDenom;
uint32_t maxBitsPerMbDenom;
uint32_t log2MaxMvLengthHorizontal;
uint32_t log2MaxMvLengthVertical;
} VkVideoEncodeH264CapabilitiesEXT;
typedef struct VkVideoEncodeH264SessionParametersAddInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t stdSPSCount;
const StdVideoH264SequenceParameterSet* pStdSPSs;
uint32_t stdPPSCount;
const StdVideoH264PictureParameterSet* pStdPPSs;
} VkVideoEncodeH264SessionParametersAddInfoEXT;
typedef struct VkVideoEncodeH264SessionParametersCreateInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t maxStdSPSCount;
uint32_t maxStdPPSCount;
const VkVideoEncodeH264SessionParametersAddInfoEXT* pParametersAddInfo;
} VkVideoEncodeH264SessionParametersCreateInfoEXT;
typedef struct VkVideoEncodeH264NaluSliceInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t mbCount;
const StdVideoEncodeH264ReferenceListsInfo* pStdReferenceFinalLists;
const StdVideoEncodeH264SliceHeader* pStdSliceHeader;
} VkVideoEncodeH264NaluSliceInfoEXT;
typedef struct VkVideoEncodeH264VclFrameInfoEXT {
VkStructureType sType;
const void* pNext;
const StdVideoEncodeH264ReferenceListsInfo* pStdReferenceFinalLists;
uint32_t naluSliceEntryCount;
const VkVideoEncodeH264NaluSliceInfoEXT* pNaluSliceEntries;
const StdVideoEncodeH264PictureInfo* pStdPictureInfo;
} VkVideoEncodeH264VclFrameInfoEXT;
typedef struct VkVideoEncodeH264DpbSlotInfoEXT {
VkStructureType sType;
const void* pNext;
const StdVideoEncodeH264ReferenceInfo* pStdReferenceInfo;
} VkVideoEncodeH264DpbSlotInfoEXT;
typedef struct VkVideoEncodeH264ProfileInfoEXT {
VkStructureType sType;
const void* pNext;
StdVideoH264ProfileIdc stdProfileIdc;
} VkVideoEncodeH264ProfileInfoEXT;
typedef struct VkVideoEncodeH264RateControlInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t gopFrameCount;
uint32_t idrPeriod;
uint32_t consecutiveBFrameCount;
VkVideoEncodeH264RateControlStructureEXT rateControlStructure;
uint32_t temporalLayerCount;
} VkVideoEncodeH264RateControlInfoEXT;
typedef struct VkVideoEncodeH264QpEXT {
int32_t qpI;
int32_t qpP;
int32_t qpB;
} VkVideoEncodeH264QpEXT;
typedef struct VkVideoEncodeH264FrameSizeEXT {
uint32_t frameISize;
uint32_t framePSize;
uint32_t frameBSize;
} VkVideoEncodeH264FrameSizeEXT;
typedef struct VkVideoEncodeH264RateControlLayerInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t temporalLayerId;
VkBool32 useInitialRcQp;
VkVideoEncodeH264QpEXT initialRcQp;
VkBool32 useMinQp;
VkVideoEncodeH264QpEXT minQp;
VkBool32 useMaxQp;
VkVideoEncodeH264QpEXT maxQp;
VkBool32 useMaxFrameSize;
VkVideoEncodeH264FrameSizeEXT maxFrameSize;
} VkVideoEncodeH264RateControlLayerInfoEXT;
#define VK_EXT_video_encode_h265 1
#include "vk_video/vulkan_video_codec_h265std.h"
#include "vk_video/vulkan_video_codec_h265std_encode.h"
#define VK_EXT_VIDEO_ENCODE_H265_SPEC_VERSION 10
#define VK_EXT_VIDEO_ENCODE_H265_EXTENSION_NAME "VK_EXT_video_encode_h265"
typedef enum VkVideoEncodeH265RateControlStructureEXT {
VK_VIDEO_ENCODE_H265_RATE_CONTROL_STRUCTURE_UNKNOWN_EXT = 0,
VK_VIDEO_ENCODE_H265_RATE_CONTROL_STRUCTURE_FLAT_EXT = 1,
VK_VIDEO_ENCODE_H265_RATE_CONTROL_STRUCTURE_DYADIC_EXT = 2,
VK_VIDEO_ENCODE_H265_RATE_CONTROL_STRUCTURE_MAX_ENUM_EXT = 0x7FFFFFFF
} VkVideoEncodeH265RateControlStructureEXT;
typedef enum VkVideoEncodeH265CapabilityFlagBitsEXT {
VK_VIDEO_ENCODE_H265_CAPABILITY_SEPARATE_COLOUR_PLANE_BIT_EXT = 0x00000001,
VK_VIDEO_ENCODE_H265_CAPABILITY_SCALING_LISTS_BIT_EXT = 0x00000002,
VK_VIDEO_ENCODE_H265_CAPABILITY_SAMPLE_ADAPTIVE_OFFSET_ENABLED_BIT_EXT = 0x00000004,
VK_VIDEO_ENCODE_H265_CAPABILITY_PCM_ENABLE_BIT_EXT = 0x00000008,
VK_VIDEO_ENCODE_H265_CAPABILITY_SPS_TEMPORAL_MVP_ENABLED_BIT_EXT = 0x00000010,
VK_VIDEO_ENCODE_H265_CAPABILITY_HRD_COMPLIANCE_BIT_EXT = 0x00000020,
VK_VIDEO_ENCODE_H265_CAPABILITY_INIT_QP_MINUS26_BIT_EXT = 0x00000040,
VK_VIDEO_ENCODE_H265_CAPABILITY_LOG2_PARALLEL_MERGE_LEVEL_MINUS2_BIT_EXT = 0x00000080,
VK_VIDEO_ENCODE_H265_CAPABILITY_SIGN_DATA_HIDING_ENABLED_BIT_EXT = 0x00000100,
VK_VIDEO_ENCODE_H265_CAPABILITY_TRANSFORM_SKIP_ENABLED_BIT_EXT = 0x00000200,
VK_VIDEO_ENCODE_H265_CAPABILITY_TRANSFORM_SKIP_DISABLED_BIT_EXT = 0x00000400,
VK_VIDEO_ENCODE_H265_CAPABILITY_PPS_SLICE_CHROMA_QP_OFFSETS_PRESENT_BIT_EXT = 0x00000800,
VK_VIDEO_ENCODE_H265_CAPABILITY_WEIGHTED_PRED_BIT_EXT = 0x00001000,
VK_VIDEO_ENCODE_H265_CAPABILITY_WEIGHTED_BIPRED_BIT_EXT = 0x00002000,
VK_VIDEO_ENCODE_H265_CAPABILITY_WEIGHTED_PRED_NO_TABLE_BIT_EXT = 0x00004000,
VK_VIDEO_ENCODE_H265_CAPABILITY_TRANSQUANT_BYPASS_ENABLED_BIT_EXT = 0x00008000,
VK_VIDEO_ENCODE_H265_CAPABILITY_ENTROPY_CODING_SYNC_ENABLED_BIT_EXT = 0x00010000,
VK_VIDEO_ENCODE_H265_CAPABILITY_DEBLOCKING_FILTER_OVERRIDE_ENABLED_BIT_EXT = 0x00020000,
VK_VIDEO_ENCODE_H265_CAPABILITY_MULTIPLE_TILE_PER_FRAME_BIT_EXT = 0x00040000,
VK_VIDEO_ENCODE_H265_CAPABILITY_MULTIPLE_SLICE_PER_TILE_BIT_EXT = 0x00080000,
VK_VIDEO_ENCODE_H265_CAPABILITY_MULTIPLE_TILE_PER_SLICE_BIT_EXT = 0x00100000,
VK_VIDEO_ENCODE_H265_CAPABILITY_SLICE_SEGMENT_CTB_COUNT_BIT_EXT = 0x00200000,
VK_VIDEO_ENCODE_H265_CAPABILITY_ROW_UNALIGNED_SLICE_SEGMENT_BIT_EXT = 0x00400000,
VK_VIDEO_ENCODE_H265_CAPABILITY_DEPENDENT_SLICE_SEGMENT_BIT_EXT = 0x00800000,
VK_VIDEO_ENCODE_H265_CAPABILITY_DIFFERENT_SLICE_TYPE_BIT_EXT = 0x01000000,
VK_VIDEO_ENCODE_H265_CAPABILITY_B_FRAME_IN_L1_LIST_BIT_EXT = 0x02000000,
VK_VIDEO_ENCODE_H265_CAPABILITY_DIFFERENT_REFERENCE_FINAL_LISTS_BIT_EXT = 0x04000000,
VK_VIDEO_ENCODE_H265_CAPABILITY_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
} VkVideoEncodeH265CapabilityFlagBitsEXT;
typedef VkFlags VkVideoEncodeH265CapabilityFlagsEXT;
typedef enum VkVideoEncodeH265CtbSizeFlagBitsEXT {
VK_VIDEO_ENCODE_H265_CTB_SIZE_16_BIT_EXT = 0x00000001,
VK_VIDEO_ENCODE_H265_CTB_SIZE_32_BIT_EXT = 0x00000002,
VK_VIDEO_ENCODE_H265_CTB_SIZE_64_BIT_EXT = 0x00000004,
VK_VIDEO_ENCODE_H265_CTB_SIZE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
} VkVideoEncodeH265CtbSizeFlagBitsEXT;
typedef VkFlags VkVideoEncodeH265CtbSizeFlagsEXT;
typedef enum VkVideoEncodeH265TransformBlockSizeFlagBitsEXT {
VK_VIDEO_ENCODE_H265_TRANSFORM_BLOCK_SIZE_4_BIT_EXT = 0x00000001,
VK_VIDEO_ENCODE_H265_TRANSFORM_BLOCK_SIZE_8_BIT_EXT = 0x00000002,
VK_VIDEO_ENCODE_H265_TRANSFORM_BLOCK_SIZE_16_BIT_EXT = 0x00000004,
VK_VIDEO_ENCODE_H265_TRANSFORM_BLOCK_SIZE_32_BIT_EXT = 0x00000008,
VK_VIDEO_ENCODE_H265_TRANSFORM_BLOCK_SIZE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
} VkVideoEncodeH265TransformBlockSizeFlagBitsEXT;
typedef VkFlags VkVideoEncodeH265TransformBlockSizeFlagsEXT;
typedef struct VkVideoEncodeH265CapabilitiesEXT {
VkStructureType sType;
void* pNext;
VkVideoEncodeH265CapabilityFlagsEXT flags;
VkVideoEncodeH265CtbSizeFlagsEXT ctbSizes;
VkVideoEncodeH265TransformBlockSizeFlagsEXT transformBlockSizes;
uint32_t maxPPictureL0ReferenceCount;
uint32_t maxBPictureL0ReferenceCount;
uint32_t maxL1ReferenceCount;
uint32_t maxSubLayersCount;
uint32_t minLog2MinLumaCodingBlockSizeMinus3;
uint32_t maxLog2MinLumaCodingBlockSizeMinus3;
uint32_t minLog2MinLumaTransformBlockSizeMinus2;
uint32_t maxLog2MinLumaTransformBlockSizeMinus2;
uint32_t minMaxTransformHierarchyDepthInter;
uint32_t maxMaxTransformHierarchyDepthInter;
uint32_t minMaxTransformHierarchyDepthIntra;
uint32_t maxMaxTransformHierarchyDepthIntra;
uint32_t maxDiffCuQpDeltaDepth;
uint32_t minMaxNumMergeCand;
uint32_t maxMaxNumMergeCand;
} VkVideoEncodeH265CapabilitiesEXT;
typedef struct VkVideoEncodeH265SessionParametersAddInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t stdVPSCount;
const StdVideoH265VideoParameterSet* pStdVPSs;
uint32_t stdSPSCount;
const StdVideoH265SequenceParameterSet* pStdSPSs;
uint32_t stdPPSCount;
const StdVideoH265PictureParameterSet* pStdPPSs;
} VkVideoEncodeH265SessionParametersAddInfoEXT;
typedef struct VkVideoEncodeH265SessionParametersCreateInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t maxStdVPSCount;
uint32_t maxStdSPSCount;
uint32_t maxStdPPSCount;
const VkVideoEncodeH265SessionParametersAddInfoEXT* pParametersAddInfo;
} VkVideoEncodeH265SessionParametersCreateInfoEXT;
typedef struct VkVideoEncodeH265NaluSliceSegmentInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t ctbCount;
const StdVideoEncodeH265ReferenceListsInfo* pStdReferenceFinalLists;
const StdVideoEncodeH265SliceSegmentHeader* pStdSliceSegmentHeader;
} VkVideoEncodeH265NaluSliceSegmentInfoEXT;
typedef struct VkVideoEncodeH265VclFrameInfoEXT {
VkStructureType sType;
const void* pNext;
const StdVideoEncodeH265ReferenceListsInfo* pStdReferenceFinalLists;
uint32_t naluSliceSegmentEntryCount;
const VkVideoEncodeH265NaluSliceSegmentInfoEXT* pNaluSliceSegmentEntries;
const StdVideoEncodeH265PictureInfo* pStdPictureInfo;
} VkVideoEncodeH265VclFrameInfoEXT;
typedef struct VkVideoEncodeH265DpbSlotInfoEXT {
VkStructureType sType;
const void* pNext;
const StdVideoEncodeH265ReferenceInfo* pStdReferenceInfo;
} VkVideoEncodeH265DpbSlotInfoEXT;
typedef struct VkVideoEncodeH265ProfileInfoEXT {
VkStructureType sType;
const void* pNext;
StdVideoH265ProfileIdc stdProfileIdc;
} VkVideoEncodeH265ProfileInfoEXT;
typedef struct VkVideoEncodeH265RateControlInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t gopFrameCount;
uint32_t idrPeriod;
uint32_t consecutiveBFrameCount;
VkVideoEncodeH265RateControlStructureEXT rateControlStructure;
uint32_t subLayerCount;
} VkVideoEncodeH265RateControlInfoEXT;
typedef struct VkVideoEncodeH265QpEXT {
int32_t qpI;
int32_t qpP;
int32_t qpB;
} VkVideoEncodeH265QpEXT;
typedef struct VkVideoEncodeH265FrameSizeEXT {
uint32_t frameISize;
uint32_t framePSize;
uint32_t frameBSize;
} VkVideoEncodeH265FrameSizeEXT;
typedef struct VkVideoEncodeH265RateControlLayerInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t temporalId;
VkBool32 useInitialRcQp;
VkVideoEncodeH265QpEXT initialRcQp;
VkBool32 useMinQp;
VkVideoEncodeH265QpEXT minQp;
VkBool32 useMaxQp;
VkVideoEncodeH265QpEXT maxQp;
VkBool32 useMaxFrameSize;
VkVideoEncodeH265FrameSizeEXT maxFrameSize;
} VkVideoEncodeH265RateControlLayerInfoEXT;
#ifdef __cplusplus
}
#endif
#endif

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,54 @@
#ifndef VULKAN_DIRECTFB_H_
#define VULKAN_DIRECTFB_H_ 1
/*
** Copyright 2015-2023 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
/*
** This header is generated from the Khronos Vulkan XML API Registry.
**
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_EXT_directfb_surface 1
#define VK_EXT_DIRECTFB_SURFACE_SPEC_VERSION 1
#define VK_EXT_DIRECTFB_SURFACE_EXTENSION_NAME "VK_EXT_directfb_surface"
typedef VkFlags VkDirectFBSurfaceCreateFlagsEXT;
typedef struct VkDirectFBSurfaceCreateInfoEXT {
VkStructureType sType;
const void* pNext;
VkDirectFBSurfaceCreateFlagsEXT flags;
IDirectFB* dfb;
IDirectFBSurface* surface;
} VkDirectFBSurfaceCreateInfoEXT;
typedef VkResult (VKAPI_PTR *PFN_vkCreateDirectFBSurfaceEXT)(VkInstance instance, const VkDirectFBSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, IDirectFB* dfb);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkCreateDirectFBSurfaceEXT(
VkInstance instance,
const VkDirectFBSurfaceCreateInfoEXT* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceDirectFBPresentationSupportEXT(
VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex,
IDirectFB* dfb);
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_FUCHSIA_H_
#define VULKAN_FUCHSIA_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_FUCHSIA_imagepipe_surface 1
#define VK_FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION 1
#define VK_FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME "VK_FUCHSIA_imagepipe_surface"
typedef VkFlags VkImagePipeSurfaceCreateFlagsFUCHSIA;
typedef struct VkImagePipeSurfaceCreateInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
@ -40,7 +30,6 @@ typedef struct VkImagePipeSurfaceCreateInfoFUCHSIA {
zx_handle_t imagePipeHandle;
} VkImagePipeSurfaceCreateInfoFUCHSIA;
typedef VkResult (VKAPI_PTR *PFN_vkCreateImagePipeSurfaceFUCHSIA)(VkInstance instance, const VkImagePipeSurfaceCreateInfoFUCHSIA* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
#ifndef VK_NO_PROTOTYPES
@ -51,6 +40,217 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateImagePipeSurfaceFUCHSIA(
VkSurfaceKHR* pSurface);
#endif
#define VK_FUCHSIA_external_memory 1
#define VK_FUCHSIA_EXTERNAL_MEMORY_SPEC_VERSION 1
#define VK_FUCHSIA_EXTERNAL_MEMORY_EXTENSION_NAME "VK_FUCHSIA_external_memory"
typedef struct VkImportMemoryZirconHandleInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkExternalMemoryHandleTypeFlagBits handleType;
zx_handle_t handle;
} VkImportMemoryZirconHandleInfoFUCHSIA;
typedef struct VkMemoryZirconHandlePropertiesFUCHSIA {
VkStructureType sType;
void* pNext;
uint32_t memoryTypeBits;
} VkMemoryZirconHandlePropertiesFUCHSIA;
typedef struct VkMemoryGetZirconHandleInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkDeviceMemory memory;
VkExternalMemoryHandleTypeFlagBits handleType;
} VkMemoryGetZirconHandleInfoFUCHSIA;
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryZirconHandleFUCHSIA)(VkDevice device, const VkMemoryGetZirconHandleInfoFUCHSIA* pGetZirconHandleInfo, zx_handle_t* pZirconHandle);
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA)(VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, zx_handle_t zirconHandle, VkMemoryZirconHandlePropertiesFUCHSIA* pMemoryZirconHandleProperties);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryZirconHandleFUCHSIA(
VkDevice device,
const VkMemoryGetZirconHandleInfoFUCHSIA* pGetZirconHandleInfo,
zx_handle_t* pZirconHandle);
VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryZirconHandlePropertiesFUCHSIA(
VkDevice device,
VkExternalMemoryHandleTypeFlagBits handleType,
zx_handle_t zirconHandle,
VkMemoryZirconHandlePropertiesFUCHSIA* pMemoryZirconHandleProperties);
#endif
#define VK_FUCHSIA_external_semaphore 1
#define VK_FUCHSIA_EXTERNAL_SEMAPHORE_SPEC_VERSION 1
#define VK_FUCHSIA_EXTERNAL_SEMAPHORE_EXTENSION_NAME "VK_FUCHSIA_external_semaphore"
typedef struct VkImportSemaphoreZirconHandleInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkSemaphore semaphore;
VkSemaphoreImportFlags flags;
VkExternalSemaphoreHandleTypeFlagBits handleType;
zx_handle_t zirconHandle;
} VkImportSemaphoreZirconHandleInfoFUCHSIA;
typedef struct VkSemaphoreGetZirconHandleInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkSemaphore semaphore;
VkExternalSemaphoreHandleTypeFlagBits handleType;
} VkSemaphoreGetZirconHandleInfoFUCHSIA;
typedef VkResult (VKAPI_PTR *PFN_vkImportSemaphoreZirconHandleFUCHSIA)(VkDevice device, const VkImportSemaphoreZirconHandleInfoFUCHSIA* pImportSemaphoreZirconHandleInfo);
typedef VkResult (VKAPI_PTR *PFN_vkGetSemaphoreZirconHandleFUCHSIA)(VkDevice device, const VkSemaphoreGetZirconHandleInfoFUCHSIA* pGetZirconHandleInfo, zx_handle_t* pZirconHandle);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkImportSemaphoreZirconHandleFUCHSIA(
VkDevice device,
const VkImportSemaphoreZirconHandleInfoFUCHSIA* pImportSemaphoreZirconHandleInfo);
VKAPI_ATTR VkResult VKAPI_CALL vkGetSemaphoreZirconHandleFUCHSIA(
VkDevice device,
const VkSemaphoreGetZirconHandleInfoFUCHSIA* pGetZirconHandleInfo,
zx_handle_t* pZirconHandle);
#endif
#define VK_FUCHSIA_buffer_collection 1
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferCollectionFUCHSIA)
#define VK_FUCHSIA_BUFFER_COLLECTION_SPEC_VERSION 2
#define VK_FUCHSIA_BUFFER_COLLECTION_EXTENSION_NAME "VK_FUCHSIA_buffer_collection"
typedef VkFlags VkImageFormatConstraintsFlagsFUCHSIA;
typedef enum VkImageConstraintsInfoFlagBitsFUCHSIA {
VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_RARELY_FUCHSIA = 0x00000001,
VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_OFTEN_FUCHSIA = 0x00000002,
VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_RARELY_FUCHSIA = 0x00000004,
VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_OFTEN_FUCHSIA = 0x00000008,
VK_IMAGE_CONSTRAINTS_INFO_PROTECTED_OPTIONAL_FUCHSIA = 0x00000010,
VK_IMAGE_CONSTRAINTS_INFO_FLAG_BITS_MAX_ENUM_FUCHSIA = 0x7FFFFFFF
} VkImageConstraintsInfoFlagBitsFUCHSIA;
typedef VkFlags VkImageConstraintsInfoFlagsFUCHSIA;
typedef struct VkBufferCollectionCreateInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
zx_handle_t collectionToken;
} VkBufferCollectionCreateInfoFUCHSIA;
typedef struct VkImportMemoryBufferCollectionFUCHSIA {
VkStructureType sType;
const void* pNext;
VkBufferCollectionFUCHSIA collection;
uint32_t index;
} VkImportMemoryBufferCollectionFUCHSIA;
typedef struct VkBufferCollectionImageCreateInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkBufferCollectionFUCHSIA collection;
uint32_t index;
} VkBufferCollectionImageCreateInfoFUCHSIA;
typedef struct VkBufferCollectionConstraintsInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
uint32_t minBufferCount;
uint32_t maxBufferCount;
uint32_t minBufferCountForCamping;
uint32_t minBufferCountForDedicatedSlack;
uint32_t minBufferCountForSharedSlack;
} VkBufferCollectionConstraintsInfoFUCHSIA;
typedef struct VkBufferConstraintsInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkBufferCreateInfo createInfo;
VkFormatFeatureFlags requiredFormatFeatures;
VkBufferCollectionConstraintsInfoFUCHSIA bufferCollectionConstraints;
} VkBufferConstraintsInfoFUCHSIA;
typedef struct VkBufferCollectionBufferCreateInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkBufferCollectionFUCHSIA collection;
uint32_t index;
} VkBufferCollectionBufferCreateInfoFUCHSIA;
typedef struct VkSysmemColorSpaceFUCHSIA {
VkStructureType sType;
const void* pNext;
uint32_t colorSpace;
} VkSysmemColorSpaceFUCHSIA;
typedef struct VkBufferCollectionPropertiesFUCHSIA {
VkStructureType sType;
void* pNext;
uint32_t memoryTypeBits;
uint32_t bufferCount;
uint32_t createInfoIndex;
uint64_t sysmemPixelFormat;
VkFormatFeatureFlags formatFeatures;
VkSysmemColorSpaceFUCHSIA sysmemColorSpaceIndex;
VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;
VkChromaLocation suggestedYChromaOffset;
} VkBufferCollectionPropertiesFUCHSIA;
typedef struct VkImageFormatConstraintsInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
VkImageCreateInfo imageCreateInfo;
VkFormatFeatureFlags requiredFormatFeatures;
VkImageFormatConstraintsFlagsFUCHSIA flags;
uint64_t sysmemPixelFormat;
uint32_t colorSpaceCount;
const VkSysmemColorSpaceFUCHSIA* pColorSpaces;
} VkImageFormatConstraintsInfoFUCHSIA;
typedef struct VkImageConstraintsInfoFUCHSIA {
VkStructureType sType;
const void* pNext;
uint32_t formatConstraintsCount;
const VkImageFormatConstraintsInfoFUCHSIA* pFormatConstraints;
VkBufferCollectionConstraintsInfoFUCHSIA bufferCollectionConstraints;
VkImageConstraintsInfoFlagsFUCHSIA flags;
} VkImageConstraintsInfoFUCHSIA;
typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferCollectionFUCHSIA)(VkDevice device, const VkBufferCollectionCreateInfoFUCHSIA* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferCollectionFUCHSIA* pCollection);
typedef VkResult (VKAPI_PTR *PFN_vkSetBufferCollectionImageConstraintsFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, const VkImageConstraintsInfoFUCHSIA* pImageConstraintsInfo);
typedef VkResult (VKAPI_PTR *PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, const VkBufferConstraintsInfoFUCHSIA* pBufferConstraintsInfo);
typedef void (VKAPI_PTR *PFN_vkDestroyBufferCollectionFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, const VkAllocationCallbacks* pAllocator);
typedef VkResult (VKAPI_PTR *PFN_vkGetBufferCollectionPropertiesFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, VkBufferCollectionPropertiesFUCHSIA* pProperties);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferCollectionFUCHSIA(
VkDevice device,
const VkBufferCollectionCreateInfoFUCHSIA* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkBufferCollectionFUCHSIA* pCollection);
VKAPI_ATTR VkResult VKAPI_CALL vkSetBufferCollectionImageConstraintsFUCHSIA(
VkDevice device,
VkBufferCollectionFUCHSIA collection,
const VkImageConstraintsInfoFUCHSIA* pImageConstraintsInfo);
VKAPI_ATTR VkResult VKAPI_CALL vkSetBufferCollectionBufferConstraintsFUCHSIA(
VkDevice device,
VkBufferCollectionFUCHSIA collection,
const VkBufferConstraintsInfoFUCHSIA* pBufferConstraintsInfo);
VKAPI_ATTR void VKAPI_CALL vkDestroyBufferCollectionFUCHSIA(
VkDevice device,
VkBufferCollectionFUCHSIA collection,
const VkAllocationCallbacks* pAllocator);
VKAPI_ATTR VkResult VKAPI_CALL vkGetBufferCollectionPropertiesFUCHSIA(
VkDevice device,
VkBufferCollectionFUCHSIA collection,
VkBufferCollectionPropertiesFUCHSIA* pProperties);
#endif
#ifdef __cplusplus
}
#endif

58
3rdparty/include/vulkan/vulkan_ggp.h vendored Normal file
View File

@ -0,0 +1,58 @@
#ifndef VULKAN_GGP_H_
#define VULKAN_GGP_H_ 1
/*
** Copyright 2015-2023 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
/*
** This header is generated from the Khronos Vulkan XML API Registry.
**
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_GGP_stream_descriptor_surface 1
#define VK_GGP_STREAM_DESCRIPTOR_SURFACE_SPEC_VERSION 1
#define VK_GGP_STREAM_DESCRIPTOR_SURFACE_EXTENSION_NAME "VK_GGP_stream_descriptor_surface"
typedef VkFlags VkStreamDescriptorSurfaceCreateFlagsGGP;
typedef struct VkStreamDescriptorSurfaceCreateInfoGGP {
VkStructureType sType;
const void* pNext;
VkStreamDescriptorSurfaceCreateFlagsGGP flags;
GgpStreamDescriptor streamDescriptor;
} VkStreamDescriptorSurfaceCreateInfoGGP;
typedef VkResult (VKAPI_PTR *PFN_vkCreateStreamDescriptorSurfaceGGP)(VkInstance instance, const VkStreamDescriptorSurfaceCreateInfoGGP* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkCreateStreamDescriptorSurfaceGGP(
VkInstance instance,
const VkStreamDescriptorSurfaceCreateInfoGGP* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
#endif
#define VK_GGP_frame_token 1
#define VK_GGP_FRAME_TOKEN_SPEC_VERSION 1
#define VK_GGP_FRAME_TOKEN_EXTENSION_NAME "VK_GGP_frame_token"
typedef struct VkPresentFrameTokenGGP {
VkStructureType sType;
const void* pNext;
GgpFrameToken frameToken;
} VkPresentFrameTokenGGP;
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_IOS_H_
#define VULKAN_IOS_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_MVK_ios_surface 1
#define VK_MVK_IOS_SURFACE_SPEC_VERSION 2
#define VK_MVK_IOS_SURFACE_SPEC_VERSION 3
#define VK_MVK_IOS_SURFACE_EXTENSION_NAME "VK_MVK_ios_surface"
typedef VkFlags VkIOSSurfaceCreateFlagsMVK;
typedef struct VkIOSSurfaceCreateInfoMVK {
VkStructureType sType;
const void* pNext;
@ -40,7 +30,6 @@ typedef struct VkIOSSurfaceCreateInfoMVK {
const void* pView;
} VkIOSSurfaceCreateInfoMVK;
typedef VkResult (VKAPI_PTR *PFN_vkCreateIOSSurfaceMVK)(VkInstance instance, const VkIOSSurfaceCreateInfoMVK* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
#ifndef VK_NO_PROTOTYPES

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_MACOS_H_
#define VULKAN_MACOS_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_MVK_macos_surface 1
#define VK_MVK_MACOS_SURFACE_SPEC_VERSION 2
#define VK_MVK_MACOS_SURFACE_SPEC_VERSION 3
#define VK_MVK_MACOS_SURFACE_EXTENSION_NAME "VK_MVK_macos_surface"
typedef VkFlags VkMacOSSurfaceCreateFlagsMVK;
typedef struct VkMacOSSurfaceCreateInfoMVK {
VkStructureType sType;
const void* pNext;
@ -40,7 +30,6 @@ typedef struct VkMacOSSurfaceCreateInfoMVK {
const void* pView;
} VkMacOSSurfaceCreateInfoMVK;
typedef VkResult (VKAPI_PTR *PFN_vkCreateMacOSSurfaceMVK)(VkInstance instance, const VkMacOSSurfaceCreateInfoMVK* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
#ifndef VK_NO_PROTOTYPES

193
3rdparty/include/vulkan/vulkan_metal.h vendored Normal file
View File

@ -0,0 +1,193 @@
#ifndef VULKAN_METAL_H_
#define VULKAN_METAL_H_ 1
/*
** Copyright 2015-2023 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
/*
** This header is generated from the Khronos Vulkan XML API Registry.
**
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_EXT_metal_surface 1
#ifdef __OBJC__
@class CAMetalLayer;
#else
typedef void CAMetalLayer;
#endif
#define VK_EXT_METAL_SURFACE_SPEC_VERSION 1
#define VK_EXT_METAL_SURFACE_EXTENSION_NAME "VK_EXT_metal_surface"
typedef VkFlags VkMetalSurfaceCreateFlagsEXT;
typedef struct VkMetalSurfaceCreateInfoEXT {
VkStructureType sType;
const void* pNext;
VkMetalSurfaceCreateFlagsEXT flags;
const CAMetalLayer* pLayer;
} VkMetalSurfaceCreateInfoEXT;
typedef VkResult (VKAPI_PTR *PFN_vkCreateMetalSurfaceEXT)(VkInstance instance, const VkMetalSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkCreateMetalSurfaceEXT(
VkInstance instance,
const VkMetalSurfaceCreateInfoEXT* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
#endif
#define VK_EXT_metal_objects 1
#ifdef __OBJC__
@protocol MTLDevice;
typedef id<MTLDevice> MTLDevice_id;
#else
typedef void* MTLDevice_id;
#endif
#ifdef __OBJC__
@protocol MTLCommandQueue;
typedef id<MTLCommandQueue> MTLCommandQueue_id;
#else
typedef void* MTLCommandQueue_id;
#endif
#ifdef __OBJC__
@protocol MTLBuffer;
typedef id<MTLBuffer> MTLBuffer_id;
#else
typedef void* MTLBuffer_id;
#endif
#ifdef __OBJC__
@protocol MTLTexture;
typedef id<MTLTexture> MTLTexture_id;
#else
typedef void* MTLTexture_id;
#endif
typedef struct __IOSurface* IOSurfaceRef;
#ifdef __OBJC__
@protocol MTLSharedEvent;
typedef id<MTLSharedEvent> MTLSharedEvent_id;
#else
typedef void* MTLSharedEvent_id;
#endif
#define VK_EXT_METAL_OBJECTS_SPEC_VERSION 1
#define VK_EXT_METAL_OBJECTS_EXTENSION_NAME "VK_EXT_metal_objects"
typedef enum VkExportMetalObjectTypeFlagBitsEXT {
VK_EXPORT_METAL_OBJECT_TYPE_METAL_DEVICE_BIT_EXT = 0x00000001,
VK_EXPORT_METAL_OBJECT_TYPE_METAL_COMMAND_QUEUE_BIT_EXT = 0x00000002,
VK_EXPORT_METAL_OBJECT_TYPE_METAL_BUFFER_BIT_EXT = 0x00000004,
VK_EXPORT_METAL_OBJECT_TYPE_METAL_TEXTURE_BIT_EXT = 0x00000008,
VK_EXPORT_METAL_OBJECT_TYPE_METAL_IOSURFACE_BIT_EXT = 0x00000010,
VK_EXPORT_METAL_OBJECT_TYPE_METAL_SHARED_EVENT_BIT_EXT = 0x00000020,
VK_EXPORT_METAL_OBJECT_TYPE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
} VkExportMetalObjectTypeFlagBitsEXT;
typedef VkFlags VkExportMetalObjectTypeFlagsEXT;
typedef struct VkExportMetalObjectCreateInfoEXT {
VkStructureType sType;
const void* pNext;
VkExportMetalObjectTypeFlagBitsEXT exportObjectType;
} VkExportMetalObjectCreateInfoEXT;
typedef struct VkExportMetalObjectsInfoEXT {
VkStructureType sType;
const void* pNext;
} VkExportMetalObjectsInfoEXT;
typedef struct VkExportMetalDeviceInfoEXT {
VkStructureType sType;
const void* pNext;
MTLDevice_id mtlDevice;
} VkExportMetalDeviceInfoEXT;
typedef struct VkExportMetalCommandQueueInfoEXT {
VkStructureType sType;
const void* pNext;
VkQueue queue;
MTLCommandQueue_id mtlCommandQueue;
} VkExportMetalCommandQueueInfoEXT;
typedef struct VkExportMetalBufferInfoEXT {
VkStructureType sType;
const void* pNext;
VkDeviceMemory memory;
MTLBuffer_id mtlBuffer;
} VkExportMetalBufferInfoEXT;
typedef struct VkImportMetalBufferInfoEXT {
VkStructureType sType;
const void* pNext;
MTLBuffer_id mtlBuffer;
} VkImportMetalBufferInfoEXT;
typedef struct VkExportMetalTextureInfoEXT {
VkStructureType sType;
const void* pNext;
VkImage image;
VkImageView imageView;
VkBufferView bufferView;
VkImageAspectFlagBits plane;
MTLTexture_id mtlTexture;
} VkExportMetalTextureInfoEXT;
typedef struct VkImportMetalTextureInfoEXT {
VkStructureType sType;
const void* pNext;
VkImageAspectFlagBits plane;
MTLTexture_id mtlTexture;
} VkImportMetalTextureInfoEXT;
typedef struct VkExportMetalIOSurfaceInfoEXT {
VkStructureType sType;
const void* pNext;
VkImage image;
IOSurfaceRef ioSurface;
} VkExportMetalIOSurfaceInfoEXT;
typedef struct VkImportMetalIOSurfaceInfoEXT {
VkStructureType sType;
const void* pNext;
IOSurfaceRef ioSurface;
} VkImportMetalIOSurfaceInfoEXT;
typedef struct VkExportMetalSharedEventInfoEXT {
VkStructureType sType;
const void* pNext;
VkSemaphore semaphore;
VkEvent event;
MTLSharedEvent_id mtlSharedEvent;
} VkExportMetalSharedEventInfoEXT;
typedef struct VkImportMetalSharedEventInfoEXT {
VkStructureType sType;
const void* pNext;
MTLSharedEvent_id mtlSharedEvent;
} VkImportMetalSharedEventInfoEXT;
typedef void (VKAPI_PTR *PFN_vkExportMetalObjectsEXT)(VkDevice device, VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR void VKAPI_CALL vkExportMetalObjectsEXT(
VkDevice device,
VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,65 +0,0 @@
#ifndef VULKAN_MIR_H_
#define VULKAN_MIR_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
/*
** This header is generated from the Khronos Vulkan XML API Registry.
**
*/
#define VK_KHR_mir_surface 1
#define VK_KHR_MIR_SURFACE_SPEC_VERSION 4
#define VK_KHR_MIR_SURFACE_EXTENSION_NAME "VK_KHR_mir_surface"
typedef VkFlags VkMirSurfaceCreateFlagsKHR;
typedef struct VkMirSurfaceCreateInfoKHR {
VkStructureType sType;
const void* pNext;
VkMirSurfaceCreateFlagsKHR flags;
MirConnection* connection;
MirSurface* mirSurface;
} VkMirSurfaceCreateInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkCreateMirSurfaceKHR)(VkInstance instance, const VkMirSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, MirConnection* connection);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkCreateMirSurfaceKHR(
VkInstance instance,
const VkMirSurfaceCreateInfoKHR* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceMirPresentationSupportKHR(
VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex,
MirConnection* connection);
#endif
#ifdef __cplusplus
}
#endif
#endif

54
3rdparty/include/vulkan/vulkan_screen.h vendored Normal file
View File

@ -0,0 +1,54 @@
#ifndef VULKAN_SCREEN_H_
#define VULKAN_SCREEN_H_ 1
/*
** Copyright 2015-2023 The Khronos Group Inc.
**
** SPDX-License-Identifier: Apache-2.0
*/
/*
** This header is generated from the Khronos Vulkan XML API Registry.
**
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_QNX_screen_surface 1
#define VK_QNX_SCREEN_SURFACE_SPEC_VERSION 1
#define VK_QNX_SCREEN_SURFACE_EXTENSION_NAME "VK_QNX_screen_surface"
typedef VkFlags VkScreenSurfaceCreateFlagsQNX;
typedef struct VkScreenSurfaceCreateInfoQNX {
VkStructureType sType;
const void* pNext;
VkScreenSurfaceCreateFlagsQNX flags;
struct _screen_context* context;
struct _screen_window* window;
} VkScreenSurfaceCreateInfoQNX;
typedef VkResult (VKAPI_PTR *PFN_vkCreateScreenSurfaceQNX)(VkInstance instance, const VkScreenSurfaceCreateInfoQNX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct _screen_window* window);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkCreateScreenSurfaceQNX(
VkInstance instance,
const VkScreenSurfaceCreateInfoQNX* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceScreenPresentationSupportQNX(
VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex,
struct _screen_window* window);
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_VI_H_
#define VULKAN_VI_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_NN_vi_surface 1
#define VK_NN_VI_SURFACE_SPEC_VERSION 1
#define VK_NN_VI_SURFACE_EXTENSION_NAME "VK_NN_vi_surface"
typedef VkFlags VkViSurfaceCreateFlagsNN;
typedef struct VkViSurfaceCreateInfoNN {
VkStructureType sType;
const void* pNext;
@ -40,7 +30,6 @@ typedef struct VkViSurfaceCreateInfoNN {
void* window;
} VkViSurfaceCreateInfoNN;
typedef VkResult (VKAPI_PTR *PFN_vkCreateViSurfaceNN)(VkInstance instance, const VkViSurfaceCreateInfoNN* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
#ifndef VK_NO_PROTOTYPES

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_WAYLAND_H_
#define VULKAN_WAYLAND_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_KHR_wayland_surface 1
#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 6
#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
typedef struct VkWaylandSurfaceCreateInfoKHR {
VkStructureType sType;
const void* pNext;
@ -41,7 +31,6 @@ typedef struct VkWaylandSurfaceCreateInfoKHR {
struct wl_surface* surface;
} VkWaylandSurfaceCreateInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display);

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_WIN32_H_
#define VULKAN_WIN32_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_KHR_win32_surface 1
#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 6
#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface"
typedef VkFlags VkWin32SurfaceCreateFlagsKHR;
typedef struct VkWin32SurfaceCreateInfoKHR {
VkStructureType sType;
const void* pNext;
@ -41,7 +31,6 @@ typedef struct VkWin32SurfaceCreateInfoKHR {
HWND hwnd;
} VkWin32SurfaceCreateInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkCreateWin32SurfaceKHR)(VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex);
@ -57,10 +46,10 @@ VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR(
uint32_t queueFamilyIndex);
#endif
#define VK_KHR_external_memory_win32 1
#define VK_KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
#define VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_KHR_external_memory_win32"
typedef struct VkImportMemoryWin32HandleInfoKHR {
VkStructureType sType;
const void* pNext;
@ -90,7 +79,6 @@ typedef struct VkMemoryGetWin32HandleInfoKHR {
VkExternalMemoryHandleTypeFlagBits handleType;
} VkMemoryGetWin32HandleInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandleKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandlePropertiesKHR)(VkDevice device, VkExternalMemoryHandleTypeFlagBits handleType, HANDLE handle, VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties);
@ -107,10 +95,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandlePropertiesKHR(
VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties);
#endif
#define VK_KHR_win32_keyed_mutex 1
#define VK_KHR_WIN32_KEYED_MUTEX_SPEC_VERSION 1
#define VK_KHR_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_KHR_win32_keyed_mutex"
typedef struct VkWin32KeyedMutexAcquireReleaseInfoKHR {
VkStructureType sType;
const void* pNext;
@ -128,7 +116,6 @@ typedef struct VkWin32KeyedMutexAcquireReleaseInfoKHR {
#define VK_KHR_external_semaphore_win32 1
#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION 1
#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME "VK_KHR_external_semaphore_win32"
typedef struct VkImportSemaphoreWin32HandleInfoKHR {
VkStructureType sType;
const void* pNext;
@ -163,7 +150,6 @@ typedef struct VkSemaphoreGetWin32HandleInfoKHR {
VkExternalSemaphoreHandleTypeFlagBits handleType;
} VkSemaphoreGetWin32HandleInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkImportSemaphoreWin32HandleKHR)(VkDevice device, const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo);
typedef VkResult (VKAPI_PTR *PFN_vkGetSemaphoreWin32HandleKHR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
@ -178,10 +164,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetSemaphoreWin32HandleKHR(
HANDLE* pHandle);
#endif
#define VK_KHR_external_fence_win32 1
#define VK_KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION 1
#define VK_KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME "VK_KHR_external_fence_win32"
typedef struct VkImportFenceWin32HandleInfoKHR {
VkStructureType sType;
const void* pNext;
@ -207,7 +193,6 @@ typedef struct VkFenceGetWin32HandleInfoKHR {
VkExternalFenceHandleTypeFlagBits handleType;
} VkFenceGetWin32HandleInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkImportFenceWin32HandleKHR)(VkDevice device, const VkImportFenceWin32HandleInfoKHR* pImportFenceWin32HandleInfo);
typedef VkResult (VKAPI_PTR *PFN_vkGetFenceWin32HandleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
@ -222,10 +207,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceWin32HandleKHR(
HANDLE* pHandle);
#endif
#define VK_NV_external_memory_win32 1
#define VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
#define VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_NV_external_memory_win32"
typedef struct VkImportMemoryWin32HandleInfoNV {
VkStructureType sType;
const void* pNext;
@ -240,7 +225,6 @@ typedef struct VkExportMemoryWin32HandleInfoNV {
DWORD dwAccess;
} VkExportMemoryWin32HandleInfoNV;
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandleNV)(VkDevice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
#ifndef VK_NO_PROTOTYPES
@ -251,10 +235,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandleNV(
HANDLE* pHandle);
#endif
#define VK_NV_win32_keyed_mutex 1
#define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 1
#define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex"
#define VK_NV_win32_keyed_mutex 1
#define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 2
#define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex"
typedef struct VkWin32KeyedMutexAcquireReleaseInfoNV {
VkStructureType sType;
const void* pNext;
@ -269,6 +253,79 @@ typedef struct VkWin32KeyedMutexAcquireReleaseInfoNV {
#define VK_EXT_full_screen_exclusive 1
#define VK_EXT_FULL_SCREEN_EXCLUSIVE_SPEC_VERSION 4
#define VK_EXT_FULL_SCREEN_EXCLUSIVE_EXTENSION_NAME "VK_EXT_full_screen_exclusive"
typedef enum VkFullScreenExclusiveEXT {
VK_FULL_SCREEN_EXCLUSIVE_DEFAULT_EXT = 0,
VK_FULL_SCREEN_EXCLUSIVE_ALLOWED_EXT = 1,
VK_FULL_SCREEN_EXCLUSIVE_DISALLOWED_EXT = 2,
VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT = 3,
VK_FULL_SCREEN_EXCLUSIVE_MAX_ENUM_EXT = 0x7FFFFFFF
} VkFullScreenExclusiveEXT;
typedef struct VkSurfaceFullScreenExclusiveInfoEXT {
VkStructureType sType;
void* pNext;
VkFullScreenExclusiveEXT fullScreenExclusive;
} VkSurfaceFullScreenExclusiveInfoEXT;
typedef struct VkSurfaceCapabilitiesFullScreenExclusiveEXT {
VkStructureType sType;
void* pNext;
VkBool32 fullScreenExclusiveSupported;
} VkSurfaceCapabilitiesFullScreenExclusiveEXT;
typedef struct VkSurfaceFullScreenExclusiveWin32InfoEXT {
VkStructureType sType;
const void* pNext;
HMONITOR hmonitor;
} VkSurfaceFullScreenExclusiveWin32InfoEXT;
typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModes2EXT)(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes);
typedef VkResult (VKAPI_PTR *PFN_vkAcquireFullScreenExclusiveModeEXT)(VkDevice device, VkSwapchainKHR swapchain);
typedef VkResult (VKAPI_PTR *PFN_vkReleaseFullScreenExclusiveModeEXT)(VkDevice device, VkSwapchainKHR swapchain);
typedef VkResult (VKAPI_PTR *PFN_vkGetDeviceGroupSurfacePresentModes2EXT)(VkDevice device, const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, VkDeviceGroupPresentModeFlagsKHR* pModes);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModes2EXT(
VkPhysicalDevice physicalDevice,
const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
uint32_t* pPresentModeCount,
VkPresentModeKHR* pPresentModes);
VKAPI_ATTR VkResult VKAPI_CALL vkAcquireFullScreenExclusiveModeEXT(
VkDevice device,
VkSwapchainKHR swapchain);
VKAPI_ATTR VkResult VKAPI_CALL vkReleaseFullScreenExclusiveModeEXT(
VkDevice device,
VkSwapchainKHR swapchain);
VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupSurfacePresentModes2EXT(
VkDevice device,
const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo,
VkDeviceGroupPresentModeFlagsKHR* pModes);
#endif
#define VK_NV_acquire_winrt_display 1
#define VK_NV_ACQUIRE_WINRT_DISPLAY_SPEC_VERSION 1
#define VK_NV_ACQUIRE_WINRT_DISPLAY_EXTENSION_NAME "VK_NV_acquire_winrt_display"
typedef VkResult (VKAPI_PTR *PFN_vkAcquireWinrtDisplayNV)(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
typedef VkResult (VKAPI_PTR *PFN_vkGetWinrtDisplayNV)(VkPhysicalDevice physicalDevice, uint32_t deviceRelativeId, VkDisplayKHR* pDisplay);
#ifndef VK_NO_PROTOTYPES
VKAPI_ATTR VkResult VKAPI_CALL vkAcquireWinrtDisplayNV(
VkPhysicalDevice physicalDevice,
VkDisplayKHR display);
VKAPI_ATTR VkResult VKAPI_CALL vkGetWinrtDisplayNV(
VkPhysicalDevice physicalDevice,
uint32_t deviceRelativeId,
VkDisplayKHR* pDisplay);
#endif
#ifdef __cplusplus
}
#endif

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_XCB_H_
#define VULKAN_XCB_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_KHR_xcb_surface 1
#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
typedef VkFlags VkXcbSurfaceCreateFlagsKHR;
typedef struct VkXcbSurfaceCreateInfoKHR {
VkStructureType sType;
const void* pNext;
@ -41,7 +31,6 @@ typedef struct VkXcbSurfaceCreateInfoKHR {
xcb_window_t window;
} VkXcbSurfaceCreateInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id);

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_XLIB_H_
#define VULKAN_XLIB_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,12 +13,16 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_KHR_xlib_surface 1
#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6
#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface"
typedef VkFlags VkXlibSurfaceCreateFlagsKHR;
typedef struct VkXlibSurfaceCreateInfoKHR {
VkStructureType sType;
const void* pNext;
@ -41,7 +31,6 @@ typedef struct VkXlibSurfaceCreateInfoKHR {
Window window;
} VkXlibSurfaceCreateInfoKHR;
typedef VkResult (VKAPI_PTR *PFN_vkCreateXlibSurfaceKHR)(VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display* dpy, VisualID visualID);

View File

@ -1,24 +1,10 @@
#ifndef VULKAN_XLIB_XRANDR_H_
#define VULKAN_XLIB_XRANDR_H_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** Copyright (c) 2015-2018 The Khronos Group Inc.
** Copyright 2015-2023 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
** SPDX-License-Identifier: Apache-2.0
*/
/*
@ -27,10 +13,15 @@ extern "C" {
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_EXT_acquire_xlib_display 1
#define VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION 1
#define VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_xlib_display"
typedef VkResult (VKAPI_PTR *PFN_vkAcquireXlibDisplayEXT)(VkPhysicalDevice physicalDevice, Display* dpy, VkDisplayKHR display);
typedef VkResult (VKAPI_PTR *PFN_vkGetRandROutputDisplayEXT)(VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput, VkDisplayKHR* pDisplay);

View File

@ -1,5 +1,5 @@
set(VULKAN_INCLUDE_DIRS "${OpenCV_SOURCE_DIR}/3rdparty/include" CACHE PATH "Vulkan include directory")
set(VULKAN_LIBRARIES "")
set(VULKAN_LIBRARIES "" CACHE PATH "Path to Vulkan Libraries.")
try_compile(VALID_VULKAN
"${OpenCV_BINARY_DIR}"

View File

@ -330,7 +330,7 @@ CV__DNN_INLINE_NS_BEGIN
virtual Ptr<BackendNode> initNgraph(const std::vector<Ptr<BackendWrapper> > &inputs, const std::vector<Ptr<BackendNode> >& nodes);
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs);
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs, std::vector<Ptr<BackendWrapper> > &outputs);
virtual Ptr<BackendNode> initWebnn(const std::vector<Ptr<BackendWrapper> > &inputs, const std::vector<Ptr<BackendNode> >& nodes);

View File

@ -14,6 +14,7 @@ namespace cv { namespace dnn {
CV__DNN_INLINE_NS_BEGIN
#define IS_DNN_OPENCL_TARGET(id) (id == DNN_TARGET_OPENCL || id == DNN_TARGET_OPENCL_FP16)
#define IS_DNN_CPU_TARGET(id) (id == DNN_TARGET_CPU || id == DNN_TARGET_CPU_FP16)
#define IS_DNN_VULKAN_TARGET(id) (id == DNN_TARGET_VULKAN)
Mutex& getInitializationMutex();
void initializeLayerFactory();

View File

@ -87,11 +87,11 @@ public:
CV_Assert(inputs[0].dims == outputs[0].dims);
if (weightShape.dims() == 3)
{
kernel_size.assign(1, kernel_size[0]);
strides.assign(1, strides[0]);
dilations.assign(1, dilations[0]);
pads_begin.assign(1, pads_begin[0]);
pads_end.assign(1, pads_end[0]);
kernel_size.resize(1, kernel_size[0]);
strides.resize(1, strides[0]);
dilations.resize(1, dilations[0]);
pads_begin.resize(1, pads_begin[0]);
pads_end.resize(1, pads_end[0]);
}
CV_Assert(weightShape.dims() == kernel_size.size() + 2);
for (int i = 0; i < kernel_size.size(); i++) {

View File

@ -89,10 +89,10 @@ public:
if (inputs[0].dims == 3)
{
// Pool1D
kernel_size.assign(1, kernel_size[0]);
strides.assign(1, strides[0]);
pads_begin.assign(1, pads_begin[0]);
pads_end.assign(1, pads_end[0]);
kernel_size.resize(1, kernel_size[0]);
strides.resize(1, strides[0]);
pads_begin.resize(1, pads_begin[0]);
pads_end.resize(1, pads_end[0]);
}
}

View File

@ -50,7 +50,8 @@ Ptr<BackendNode> Layer::initCUDA(
return Ptr<BackendNode>();
}
Ptr<BackendNode> Layer::initVkCom(const std::vector<Ptr<BackendWrapper>>&)
Ptr<BackendNode> Layer::initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs,
std::vector<Ptr<BackendWrapper> > &outputs)
{
CV_Error(Error::StsNotImplemented, "VkCom pipeline of " + type + " layers is not defined.");
return Ptr<BackendNode>();

View File

@ -141,7 +141,6 @@ public:
backendId == DNN_BACKEND_CUDA ||
(backendId == DNN_BACKEND_HALIDE && haveHalide() && axis == 1 && !padding) || // By channels
(backendId == DNN_BACKEND_WEBNN && !padding) ||
(backendId == DNN_BACKEND_VKCOM && haveVulkan() && !padding) ||
(backendId == DNN_BACKEND_CANN && !padding);
}
@ -332,17 +331,6 @@ public:
}
#endif
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &input) CV_OVERRIDE
{
#ifdef HAVE_VULKAN
vkcom::Tensor in = VkComTensor(input[0]);
int cAxis = normalize_axis(axis, in.dimNum());
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpConcat(cAxis));
return Ptr<BackendNode>(new VkComBackendNode(input, op));
#endif // HAVE_VULKAN
return Ptr<BackendNode>();
}
virtual Ptr<BackendNode> initHalide(const std::vector<Ptr<BackendWrapper> > &input) CV_OVERRIDE
{
#ifdef HAVE_HALIDE

View File

@ -134,11 +134,11 @@ public:
CV_Assert(inputs[0].dims == outputs[0].dims);
if (weightShape.dims() == 3)
{
kernel_size.assign(1, kernel_size[0]);
strides.assign(1, strides[0]);
dilations.assign(1, dilations[0]);
pads_begin.assign(1, pads_begin[0]);
pads_end.assign(1, pads_end[0]);
kernel_size.resize(1, kernel_size[0]);
strides.resize(1, strides[0]);
dilations.resize(1, dilations[0]);
pads_begin.resize(1, pads_begin[0]);
pads_end.resize(1, pads_end[0]);
}
CV_Assert(weightShape.dims() == kernel_size.size() + 2);
for (int i = 0; i < kernel_size.size(); i++) {
@ -665,68 +665,50 @@ public:
biasvec[outCn] = biasvec[outCn+1] = biasvec[outCn-1];
}
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs, std::vector<Ptr<BackendWrapper> > &outputs) CV_OVERRIDE
{
#ifdef HAVE_VULKAN
CV_Assert(!blobs.empty());
int out_channel = blobs[0].size[0];
bool has_bias = hasBias() || fusedBias;
int filter_size[2] = {kernel.height, kernel.width};
int pad_size[2] = {pad.height, pad.width};
int stride_size[2] = {stride.height, stride.width};
int dilation_size[2] = {dilation.height, dilation.width};
int activation = 0;
vkcom::Tensor input_tensor = VkComTensor(inputs[0]);
int in_channel = input_tensor.dimSize(1);
int group = in_channel / blobs[0].size[1];
int activationType = transFusedActivType(activ);
// TODO: support group > 1
if (group != 1)
CV_Assert(inputs.size() == 1 && outputs.size() == 1);
Ptr<VkComBackendWrapper> inputWrap = inputs[0].dynamicCast<VkComBackendWrapper>();
Ptr<VkComBackendWrapper> outputWrap = outputs[0].dynamicCast<VkComBackendWrapper>();
CV_Assert(inputWrap && outputWrap);
MatShape inpShape = shape(*inputWrap->getMat());
MatShape outShape = shape(*outputWrap->getMat());
CV_Assert(inpShape.size() == 4 && inpShape.size() == outShape.size());
if (activationType == -1)
{
CV_LOG_WARNING(NULL, "Unsupported fused Active type in Conv layer!!!");
return Ptr<BackendNode>();
}
const int inpGroupCn = blobs[0].size[1];
int ngroups = inpShape[1] / inpGroupCn;
CV_Assert(outShape[1] % ngroups == 0);
if (ngroups != 1)
return Ptr<BackendNode>();
int padding_mode;
if (padMode.empty())
{
padding_mode = vkcom::kPaddingModeCaffe;
}
else if (padMode == "VALID")
{
padding_mode = vkcom::kPaddingModeValid;
}
else if (padMode == "SAME")
{
padding_mode = vkcom::kPaddingModeSame;
}
else
CV_Error(Error::StsError, "Unsupported padding mode " + padMode);
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpConv(out_channel, has_bias,
filter_size, pad_size,
stride_size, dilation_size,
activation, group,
padding_mode));
std::vector<Ptr<BackendWrapper> > blobsWrapper;
Mat weightVK;
if (fusedWeights)
{
Mat wm;
weightsMat.copyTo(wm); // to handle the case of isContinuous() == false
wm = wm.reshape(1, blobs[0].dims, blobs[0].size);
blobsWrapper.push_back(Ptr<BackendWrapper>(new VkComBackendWrapper(wm)));
weightsMat.copyTo(weightVK); // to handle the case of isContinuous() == false
weightVK = weightVK.reshape(1, blobs[0].dims, blobs[0].size);
}
else
{
blobsWrapper.push_back(Ptr<BackendWrapper>(new VkComBackendWrapper(blobs[0])));
}
weightVK = blobs[0];
if (has_bias)
{
Mat biasesMat({out_channel}, CV_32F, &biasvec[0]);
blobsWrapper.push_back(Ptr<BackendWrapper>(new VkComBackendWrapper(biasesMat)));
}
CV_Assert(weightVK.isContinuous());
CV_Assert(pads_begin.size() == 2);
CV_Assert(fusedAdd == false && "Vulkan Backend can not support the Conv_Add optimization.");
Ptr<vkcom::OpBase> op(new vkcom::OpConv(weightVK, biasvec, activationType, ngroups, outShape[1], inpShape[1],
kernel.height, kernel.width, stride.height, stride.width,
dilation.height, dilation.width, pads_begin[1], pads_begin[0]));
return Ptr<BackendNode>(new VkComBackendNode(inputs, op, blobsWrapper));
return Ptr<BackendNode>(new VkComBackendNode(inputs, op, outputs));
#endif // HAVE_VULKAN
return Ptr<BackendNode>();
}

View File

@ -216,13 +216,6 @@ public:
}
#endif
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> >& inputs) CV_OVERRIDE
{
#ifdef HAVE_VULKAN
return Ptr<BackendNode>(new VkComBackendNode(inputs, func.initVkCom()));
#endif // HAVE_VULKAN
return Ptr<BackendNode>();
}
virtual bool tryFuse(Ptr<dnn::Layer>& top) CV_OVERRIDE
{
@ -359,7 +352,6 @@ struct ReLUFunctor : public BaseFunctor
return backendId == DNN_BACKEND_OPENCV ||
backendId == DNN_BACKEND_CUDA ||
backendId == DNN_BACKEND_HALIDE ||
backendId == DNN_BACKEND_VKCOM ||
backendId == DNN_BACKEND_CANN;
}
@ -514,14 +506,6 @@ struct ReLUFunctor : public BaseFunctor
}
#endif
#ifdef HAVE_VULKAN
std::shared_ptr<vkcom::OpBase> initVkCom()
{
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpReLU(slope));
return op;
}
#endif // HAVE_VULKAN
bool tryQuantize(const std::vector<std::vector<float> > &scales,
const std::vector<std::vector<int> > &zeropoints, LayerParams& params)
{
@ -706,14 +690,6 @@ struct ReLU6Functor : public BaseFunctor
}
#endif
#ifdef HAVE_VULKAN
std::shared_ptr<vkcom::OpBase> initVkCom()
{
// TODO: add vkcom implementation
return std::shared_ptr<vkcom::OpBase>();
}
#endif // HAVE_VULKAN
bool tryQuantize(const std::vector<std::vector<float> > &scales,
const std::vector<std::vector<int> > &zeropoints, LayerParams& params)
{
@ -830,14 +806,6 @@ struct BaseDefaultFunctor : public BaseFunctor
}
#endif
#ifdef HAVE_VULKAN
std::shared_ptr<vkcom::OpBase> initVkCom()
{
// TODO: add vkcom implementation
return std::shared_ptr<vkcom::OpBase>();
}
#endif // HAVE_VULKAN
private:
static const char* const ocl_kernel_name;
};
@ -2371,14 +2339,6 @@ struct PowerFunctor : public BaseFunctor
}
#endif
#ifdef HAVE_VULKAN
std::shared_ptr<vkcom::OpBase> initVkCom()
{
// TODO: add vkcom implementation
return std::shared_ptr<vkcom::OpBase>();
}
#endif // HAVE_VULKAN
bool tryFuse(Ptr<dnn::Layer>& top)
{
if (power != 1.0f && shift != 0.0f)
@ -2635,14 +2595,6 @@ struct ChannelsPReLUFunctor : public BaseFunctor
}
#endif
#ifdef HAVE_VULKAN
std::shared_ptr<vkcom::OpBase> initVkCom()
{
// TODO: add vkcom implementation
return std::shared_ptr<vkcom::OpBase>();
}
#endif // HAVE_VULKAN
int64 getFLOPSPerElement() const { return 1; }
};

View File

@ -48,6 +48,7 @@
#include "../ie_ngraph.hpp"
#include "../op_webnn.hpp"
#include "../op_cann.hpp"
#include "../op_vkcom.hpp"
#include <opencv2/dnn/shape_utils.hpp>
@ -187,7 +188,8 @@ public:
backendId == DNN_BACKEND_CUDA ||
(backendId == DNN_BACKEND_HALIDE && haveHalide() && axis == 1 && !tranAorB) ||
(backendId == DNN_BACKEND_WEBNN && axis == 1 && !tranAorB) ||
backendId == DNN_BACKEND_CANN;;
backendId == DNN_BACKEND_CANN ||
(backendId == DNN_BACKEND_VKCOM && haveVulkan() && !tranAorB);
}
virtual bool setActivation(const Ptr<ActivationLayer>& layer) CV_OVERRIDE
@ -637,6 +639,72 @@ public:
}
#endif
#ifdef HAVE_VULKAN
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs,
std::vector<Ptr<BackendWrapper> > &outputs) CV_OVERRIDE
{
auto biasMat_ = bias ? biasMat : Mat();
auto input_wrapper = inputs[0].dynamicCast<VkComBackendWrapper>();
CV_Assert((inputs.size() == 2 || inputs.size() == 1) && outputs.size() == 1);
std::vector<Mat> vkBlobs;
Ptr<vkcom::OpBase> op;
if (!biasMat_.empty() || !activ.empty())
{
return Ptr<BackendNode>();
}
Ptr<VkComBackendWrapper> outputWrap = outputs[0].dynamicCast<VkComBackendWrapper>();
CV_Assert(outputWrap);
// TODO: Currently, we only support the 2D MatMul. Need support the FC layer and bias case in the future.
if (inputs.size() == 2)
{
Ptr<VkComBackendWrapper> inputWrap0 = inputs[0].dynamicCast<VkComBackendWrapper>();
Ptr<VkComBackendWrapper> inputWrap1 = inputs[1].dynamicCast<VkComBackendWrapper>();
CV_Assert(inputWrap0 && inputWrap1);
MatShape inpShape0 = shape(*inputWrap0->getMat());
MatShape inpShape1 = shape(*inputWrap1->getMat());
MatShape outShape = shape(*outputWrap->getMat());
// TODO Currently, vulkan only support 2D matmul. Try to support 3D and 4D matmul.
if (inpShape0.size() != 2 || inpShape1.size() != 2)
return Ptr<BackendNode>();
op = (new vkcom::OpMatMul(vkBlobs, inpShape0[0], inpShape0[1], outShape[1]));
}
else
{
CV_Assert(!weightsMat.empty());
Mat wm;
weightsMat.copyTo(wm); // to handle the case of isContinuous() == false
wm = wm.reshape(1, blobs[0].dims, blobs[0].size);
vkBlobs.push_back(wm.t());
Ptr<VkComBackendWrapper> inputWrap = inputs[0].dynamicCast<VkComBackendWrapper>();
CV_Assert(inputWrap);
MatShape inpShape = shape(*inputWrap->getMat());
MatShape outShape = shape(*outputWrap->getMat());
MatShape wShape = shape(weightsMat);
// TODO Currently, vulkan only support 2D matmul. Try to support 3D and 4D matmul.
if (inpShape.size() != 2 || wShape.size() != 2)
return Ptr<BackendNode>();
// TODO: Currently, only focus on 2D MatMul.
CV_Assert(inpShape.size() == 2 && outShape.size() == 2 && wShape.size() == 2);
CV_Assert(inpShape[1] == outShape[0]);
op = (new vkcom::OpMatMul(vkBlobs, inpShape[0], inpShape[1], outShape[1]));
}
return Ptr<BackendNode>(new VkComBackendNode(inputs, op, outputs));
}
#endif
virtual Ptr<BackendNode> initHalide(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
{
#ifdef HAVE_HALIDE
@ -844,15 +912,27 @@ public:
{
CV_UNUSED(inputs); // suppress unused variable warning
long flops = 0;
int innerSize = 0;
if (!blobs.empty())
{
innerSize = blobs[0].size[1];
}
else
{
CV_Assert(inputs.size() == 2);
if (transB)
innerSize = inputs[1][1];
else
innerSize = inputs[1][0];
}
int innerSize = blobs[0].size[1];
for(int i = 0; i < outputs.size(); i++)
{
flops += CV_BIG_INT(3)*innerSize*total(outputs[i]);
}
return flops;
}
bool bias;

View File

@ -107,7 +107,6 @@ public:
return backendId == DNN_BACKEND_OPENCV ||
backendId == DNN_BACKEND_CUDA ||
backendId == DNN_BACKEND_HALIDE ||
(backendId == DNN_BACKEND_VKCOM && haveVulkan() && (size % 2 == 1) && (type == CHANNEL_NRM)) ||
backendId == DNN_BACKEND_CANN;
}
@ -362,15 +361,6 @@ public:
}
#endif
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
{
#ifdef HAVE_VULKAN
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpLRN(size / 2, bias, alpha, beta, normBySize));
return Ptr<BackendNode>(new VkComBackendNode(inputs, op));
#endif
return Ptr<BackendNode>();
}
virtual Ptr<BackendNode> initHalide(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
{
#ifdef HAVE_HALIDE

View File

@ -93,7 +93,8 @@ public:
CV_Error(Error::StsNotImplemented, msg);
}
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs,
std::vector<Ptr<BackendWrapper> > &outputs) CV_OVERRIDE
{
CV_Error(Error::StsNotImplemented, msg);
}

View File

@ -144,7 +144,6 @@ public:
return backendId == DNN_BACKEND_OPENCV ||
backendId == DNN_BACKEND_CUDA ||
backendId == DNN_BACKEND_WEBNN ||
(backendId == DNN_BACKEND_VKCOM && haveVulkan()) ||
backendId == DNN_BACKEND_CANN;
}
@ -511,15 +510,6 @@ public:
#endif
#ifdef HAVE_VULKAN
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &input) CV_OVERRIDE
{
CV_Assert(!_order.empty());
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpPermute(_order));
return Ptr<BackendNode>(new VkComBackendNode(input, op));
}
#endif // HAVE_VULKAN
#ifdef HAVE_TIMVX
virtual Ptr<BackendNode> initTimVX(void* timVXInfo_,
const std::vector<Ptr<BackendWrapper> > &inputsWrapper,

View File

@ -182,10 +182,10 @@ public:
if (inputs[0].dims == 3)
{
// Pool1D
kernel_size.assign(1, kernel_size[0]);
strides.assign(1, strides[0]);
pads_begin.assign(1, pads_begin[0]);
pads_end.assign(1, pads_end[0]);
kernel_size.resize(1, kernel_size[0]);
strides.resize(1, strides[0]);
pads_begin.resize(1, pads_begin[0]);
pads_end.resize(1, pads_end[0]);
}
#ifdef HAVE_OPENCL
@ -227,13 +227,6 @@ public:
return haveHalide() &&
(type == MAX || (type == AVE && !pads_begin[0] && !pads_begin[1] && !pads_end[0] && !pads_end[1]));
}
else if (backendId == DNN_BACKEND_VKCOM)
{
if (kernel_size.empty() || kernel_size.size() == 2)
return haveVulkan() &&
(type == MAX || type == AVE);
return false;
}
else if (backendId == DNN_BACKEND_WEBNN)
{
if (kernel_size.empty() || kernel_size.size() == 2)
@ -501,42 +494,6 @@ public:
}
#endif
#ifdef HAVE_VULKAN
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
{
int padding_mode;
vkcom::PoolType pool_type;
int filter_size[2] = {static_cast<int>(kernel_size[0]), static_cast<int>(kernel_size[1])};
int pad_size[2] = {static_cast<int>(pads_begin[0]), static_cast<int>(pads_begin[1])};
int stride_size[2] = {static_cast<int>(strides[0]), static_cast<int>(strides[1])};
pool_type = type == MAX ? vkcom::kPoolTypeMax:
(type == AVE ? vkcom::kPoolTypeAvg:
vkcom::kPoolTypeNum);
if (padMode.empty())
{
padding_mode = vkcom::kPaddingModeCaffe;
}
else if (padMode == "VALID")
{
padding_mode = vkcom::kPaddingModeValid;
}
else if (padMode == "SAME")
{
padding_mode = vkcom::kPaddingModeSame;
}
else
CV_Error(Error::StsError, "Unsupported padding mode " + padMode);
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpPool(filter_size, pad_size,
stride_size, padding_mode,
pool_type, avePoolPaddedArea));
return Ptr<BackendNode>(new VkComBackendNode(inputs, op));
}
#endif
virtual Ptr<BackendNode> initHalide(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
{
if (type == MAX)

View File

@ -297,8 +297,7 @@ public:
return _explicitSizes || _stepX == _stepY;
#endif
return backendId == DNN_BACKEND_OPENCV ||
backendId == DNN_BACKEND_CUDA ||
(backendId == DNN_BACKEND_VKCOM && haveVulkan());
backendId == DNN_BACKEND_CUDA;
}
bool getMemoryShapes(const std::vector<MatShape> &inputs,
@ -608,20 +607,6 @@ public:
}
#endif
#ifdef HAVE_VULKAN
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &input) CV_OVERRIDE
{
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpPriorBox(_stepX, _stepY,
_clip, _numPriors,
_variance, _offsetsX,
_offsetsY, _boxWidths,
_boxHeights));
return Ptr<BackendNode>(new VkComBackendNode(input, op));
}
#endif // HAVE_VULKAN
virtual int64 getFLOPS(const std::vector<MatShape> &inputs,
const std::vector<MatShape> &outputs) const CV_OVERRIDE
{

View File

@ -46,7 +46,6 @@
#include "../op_halide.hpp"
#include "../op_inf_engine.hpp"
#include "../ie_ngraph.hpp"
#include "../op_vkcom.hpp"
#include "../op_webnn.hpp"
#include "../op_cann.hpp"
@ -117,7 +116,6 @@ public:
return backendId == DNN_BACKEND_OPENCV ||
backendId == DNN_BACKEND_CUDA ||
(backendId == DNN_BACKEND_HALIDE && haveHalide() && axisRaw == 1) ||
(backendId == DNN_BACKEND_VKCOM && haveVulkan()) ||
backendId == DNN_BACKEND_CANN;
}
@ -327,18 +325,6 @@ public:
}
#endif
virtual Ptr<BackendNode> initVkCom(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
{
#ifdef HAVE_VULKAN
vkcom::Tensor in = VkComTensor(inputs[0]);
int cAxis = normalize_axis(axisRaw, in.dimNum());
std::shared_ptr<vkcom::OpBase> op(new vkcom::OpSoftmax(cAxis, logSoftMax));
return Ptr<BackendNode>(new VkComBackendNode(inputs, op));
#endif // HAVE_VULKAN
return Ptr<BackendNode>();
}
virtual Ptr<BackendNode> initHalide(const std::vector<Ptr<BackendWrapper> > &inputs) CV_OVERRIDE
{
#ifdef HAVE_HALIDE

View File

@ -32,7 +32,10 @@ std::string detail::NetImplBase::getDumpFileNameBase() const
Net::Impl::~Impl()
{
// nothing
#ifdef HAVE_VULKAN
if (context)
context->reset();
#endif
}
@ -1538,10 +1541,14 @@ string Net::Impl::dump(bool forceAllocation) const
else
{
if (itBackend->second == prevNode)
skipId.push_back(idPrev);
{
if (idPrev != -1)
skipId.push_back(idPrev);
}
else if (!skipId.empty())
{
skipId.push_back(idPrev);
if (idPrev != -1)
skipId.push_back(idPrev);
std::sort(skipId.begin(), skipId.end());
for (int i = 0; i < skipId.size(); i++)
{

View File

@ -179,6 +179,7 @@ struct Net::Impl : public detail::NetImplBase
#endif
#ifdef HAVE_VULKAN
Ptr<vkcom::Context> context;
void initVkComBackend();
#endif

View File

@ -39,7 +39,8 @@ void Net::Impl::fuseLayers(const std::vector<LayerPin>& blobsToKeep_)
if(!fusion || (preferableBackend != DNN_BACKEND_OPENCV &&
preferableBackend != DNN_BACKEND_CUDA &&
preferableBackend != DNN_BACKEND_INFERENCE_ENGINE_NGRAPH &&
preferableBackend != DNN_BACKEND_TIMVX))
preferableBackend != DNN_BACKEND_TIMVX &&
preferableBackend != DNN_BACKEND_VKCOM))
return;
#if 0 // FIXIT mode without fusion is broken due to unsupported layers and handling of "custom" nodes
@ -111,7 +112,8 @@ void Net::Impl::fuseLayers(const std::vector<LayerPin>& blobsToKeep_)
break;
}
if (preferableBackend != DNN_BACKEND_OPENCV && preferableBackend != DNN_BACKEND_CUDA)
if (preferableBackend != DNN_BACKEND_OPENCV && preferableBackend != DNN_BACKEND_CUDA
&& preferableBackend != DNN_BACKEND_VKCOM)
continue; // Go to the next layer.
// TODO: OpenCL target support more fusion styles.
@ -141,6 +143,28 @@ void Net::Impl::fuseLayers(const std::vector<LayerPin>& blobsToKeep_)
if (nextActivLayer.empty())
break;
// For now, Vulkan target support fusion with activation of ReLU/ReLU6
if (IS_DNN_VULKAN_TARGET(preferableTarget))
{
if (nextData->type == "ReLU")
{
Ptr<ReLULayer> nextReLULayer = nextData->layerInstance.dynamicCast<ReLULayer>();
CV_Assert(nextReLULayer);
if (nextReLULayer->negativeSlope != 0.0f)
break; // Skip LeakyReLU
}
else if (nextData->type == "ReLU6")
{
Ptr<ReLU6Layer> nextReLU6Layer = nextData->layerInstance.dynamicCast<ReLU6Layer>();
CV_Assert(nextReLU6Layer);
if( fabs(nextReLU6Layer->minValue) > FLT_EPSILON || fabs(nextReLU6Layer->maxValue - 6.0f) > FLT_EPSILON)
break; // Skip ReLU6 if the minValue != 0 or maxValue != 6.
}
else
break;
}
if (currLayer->setActivation(nextActivLayer))
{
printf_(("\tfused with %s\n", nextActivLayer->name.c_str()));

View File

@ -18,12 +18,13 @@ namespace dnn
CV__DNN_INLINE_NS_BEGIN
void Net::Impl::initVkComBackend()
{
CV_TRACE_FUNCTION();
CV_Assert(preferableBackend == DNN_BACKEND_VKCOM);
context = vkcom::Context::create();
for (MapIdToLayerData::iterator it = layers.begin(); it != layers.end(); it++)
{
LayerData &ld = it->second;
@ -33,12 +34,9 @@ void Net::Impl::initVkComBackend()
continue;
}
ld.skip = false;
try
{
ld.backendNodes[DNN_BACKEND_VKCOM] =
layer->initVkCom(ld.inputBlobsWrappers);
ld.backendNodes[DNN_BACKEND_VKCOM] = layer->initVkCom(ld.inputBlobsWrappers, ld.outputBlobsWrappers);
}
catch (const cv::Exception& e)
{
@ -52,150 +50,187 @@ CV__DNN_INLINE_NS_END
///////////////////////////////////////////////////////////////////////////////
void copyToTensor(vkcom::Tensor &dst, const Mat &src)
int transFusedActivType(Ptr<ActivationLayer> &actLayer)
{
if (actLayer)
{
CV_Assert(src.isContinuous() && src.type() == CV_32F);
Ptr<ReLULayer> activ_relu = actLayer.dynamicCast<ReLULayer>();
Ptr<ReLU6Layer> activ_relu6 = actLayer.dynamicCast<ReLU6Layer>();
std::vector<int> mat_shape = shape(src);
dst.reshape((const char*)src.data, mat_shape);
}
void copyToMat(Mat &dst, vkcom::Tensor &src)
{
CV_Assert(dst.type() == CV_32F);
std::vector<int> shape = src.getShape();
void *data = src.map();
Mat tmp(shape, CV_32F, data);
tmp.copyTo(dst);
src.unMap();
}
vkcom::Tensor VkComTensor(const Ptr<BackendWrapper>& ptr)
{
CV_Assert(!ptr.empty());
return ptr.dynamicCast<VkComBackendWrapper>()->getTensor();
}
void setDirty(std::vector<Ptr<BackendWrapper> >& ptrs)
{
for (const Ptr<BackendWrapper>& ptr : ptrs)
if (!activ_relu.empty())
{
ptr.dynamicCast<VkComBackendWrapper>()->setDeviceDirty();
if (activ_relu->negativeSlope == 0.0f)
{
return 1; // kFusedActivRelu
}
else // Leaky ReLU
{
return -1; // kFusedActivNone
}
}
}
std::vector<vkcom::Tensor> VkComTensors(const std::vector<Ptr<BackendWrapper> >& ptrs)
{
std::vector<vkcom::Tensor> vec;
vec.reserve(ptrs.size());
for (const Ptr<BackendWrapper>& ptr : ptrs)
else if (!activ_relu6.empty())
{
vec.push_back(VkComTensor(ptr));
return 2; // kFusedActivRelu6
}
return vec;
else
return -1; // kFusedActivUnsupport
}
else
return 0; // kFusedActivNone
}
void copyToTensor(vkcom::Tensor &dst, const Mat &src)
{
CV_Assert(src.isContinuous() && src.type() == CV_32F);
std::vector<int> mat_shape = shape(src);
// The following code will copy the src data from CPU Mat to GPU VkBuffer.
dst.reshape((const char*)src.data, mat_shape);
}
void copyToMat(Mat &dst, vkcom::Tensor &src)
{
CV_Assert(dst.type() == CV_32F);
std::vector<int> shape = src.getShape();
void *data = src.map();
Mat tmp(shape, CV_32F, data);
tmp.copyTo(dst);
src.unMap();
}
vkcom::Tensor VkComTensor(const Ptr<BackendWrapper>& ptr)
{
CV_Assert(!ptr.empty());
return ptr.dynamicCast<VkComBackendWrapper>()->getTensor();
}
void setDirty(std::vector<Ptr<BackendWrapper> >& ptrs)
{
for (const Ptr<BackendWrapper>& ptr : ptrs)
{
ptr.dynamicCast<VkComBackendWrapper>()->setDeviceDirty();
}
}
std::vector<vkcom::Tensor> VkComTensors(const std::vector<Ptr<BackendWrapper> >& ptrs)
{
std::vector<vkcom::Tensor> vec;
vec.reserve(ptrs.size());
for (const Ptr<BackendWrapper>& ptr : ptrs)
{
vec.push_back(VkComTensor(ptr));
}
return vec;
}
VkComBackendNode::VkComBackendNode(const std::vector<Ptr<BackendWrapper> >& inputsWrapper,
const Ptr<vkcom::OpBase>& op,
const std::vector<Ptr<BackendWrapper> >& outputsWrapper)
: BackendNode(DNN_BACKEND_VKCOM)
{
operation = op;
inputsWrapper_ = inputsWrapper;
ins = VkComTensors(inputsWrapper_);
outputsWrapper_ = outputsWrapper;
outs = VkComTensors(outputsWrapper_);
}
bool VkComBackendNode::forward()
{
for (int i = 0, n = inputsWrapper_.size(); i < n; ++i)
{
inputsWrapper_[i].dynamicCast<VkComBackendWrapper>()->copyToDevice();
}
VkComBackendNode::VkComBackendNode(const std::vector<Ptr<BackendWrapper> >& inputsWrapper,
const std::shared_ptr<vkcom::OpBase>& op,
const std::vector<Ptr<BackendWrapper> >& blobsWrapper)
: BackendNode(DNN_BACKEND_VKCOM)
return operation->forward(ins, outs);
}
VkComBackendWrapper::VkComBackendWrapper(Mat& m) : BackendWrapper(DNN_BACKEND_VKCOM, DNN_TARGET_VULKAN)
{
CV_Assert(m.isContinuous());
copyToTensor(tensor, m);
host = &m;
hostDirty = false;
deviceDirty = false;
}
// Other constructor, need change the logical. The purpose is to decline the data copy.
VkComBackendWrapper::VkComBackendWrapper(const Ptr<BackendWrapper>& baseBuffer, Mat& m)
: BackendWrapper(DNN_BACKEND_VKCOM, DNN_TARGET_VULKAN)
{
Ptr<VkComBackendWrapper> base = baseBuffer.dynamicCast<VkComBackendWrapper>();
CV_Assert(!base.empty());
host = &m;
tensor = base->tensor;
CV_Assert(tensor.count() >= m.total());
tensor.reshape(0, shape(m));
hostDirty = false;
deviceDirty = false;
}
void VkComBackendWrapper::copyToHost()
{
if (deviceDirty)
copyToMat(*host, tensor);
}
void VkComBackendWrapper::setHostDirty()
{
hostDirty = true;
};
void VkComBackendWrapper::setDeviceDirty()
{
deviceDirty = true;
};
void VkComBackendWrapper::copyToDevice()
{
if (hostDirty)
{
operation = op;
inputsWrapper_ = inputsWrapper;
ins = VkComTensors(inputsWrapper_);
if (!blobsWrapper.empty())
{
blobs = VkComTensors(blobsWrapper);
}
}
bool VkComBackendNode::forward(std::vector<vkcom::Tensor>& outs)
{
for (int i = 0, n = inputsWrapper_.size(); i < n; ++i)
{
inputsWrapper_[i].dynamicCast<VkComBackendWrapper>()->copyToDevice();
}
return operation->forward(ins, blobs, outs);
}
VkComBackendWrapper::VkComBackendWrapper(Mat& m) : BackendWrapper(DNN_BACKEND_VKCOM, DNN_TARGET_VULKAN)
{
copyToTensor(tensor, m);
host = &m;
copyToTensor(tensor, *host);
hostDirty = false;
deviceDirty = false;
}
}
VkComBackendWrapper::VkComBackendWrapper(const Ptr<BackendWrapper>& baseBuffer, Mat& m)
: BackendWrapper(DNN_BACKEND_VKCOM, DNN_TARGET_VULKAN)
{
Ptr<VkComBackendWrapper> base = baseBuffer.dynamicCast<VkComBackendWrapper>();
CV_Assert(!base.empty());
vkcom::Tensor VkComBackendWrapper::getTensor()
{
return tensor;
}
host = &m;
tensor = base->tensor;
CV_Assert(tensor.count() >= m.total());
tensor.reshape(0, shape(m));
hostDirty = false;
deviceDirty = false;
}
Mat* VkComBackendWrapper::getMat()
{
return host;
}
void VkComBackendWrapper::copyToHost()
{
if (deviceDirty)
copyToMat(*host, tensor);
}
void VkComBackendWrapper::setHostDirty()
{
hostDirty = true;
};
void VkComBackendWrapper::setDeviceDirty()
{
deviceDirty = true;
};
void VkComBackendWrapper::copyToDevice()
{
if (hostDirty)
{
copyToTensor(tensor, *host);
hostDirty = false;
}
}
vkcom::Tensor VkComBackendWrapper::getTensor()
{
return tensor;
}
#endif
void forwardVkCom(std::vector<Ptr<BackendWrapper> > &outputs,
const Ptr<BackendNode>& node)
{
#ifdef HAVE_VULKAN
CV_Assert(!node.empty());
Ptr<VkComBackendNode> node_ = node.dynamicCast<VkComBackendNode>();
std::vector<vkcom::Tensor> outs = VkComTensors(outputs);
node_->forward(outs);
setDirty(outputs);
void forwardVkCom(std::vector<Ptr<BackendWrapper> > &outputs,
const Ptr<BackendNode>& node)
{
#ifdef HAVE_VULKAN
CV_Assert(!node.empty());
Ptr<VkComBackendNode> node_ = node.dynamicCast<VkComBackendNode>();
CV_Assert(node_->forward());
setDirty(outputs);
#endif
}
}
bool haveVulkan()
{
bool haveVulkan()
{
#ifdef HAVE_VULKAN
return vkcom::isAvailable();
return vkcom::isAvailable();
#else
return false;
return false;
#endif // HAVE_VULKAN
}
}
} // namespace dnn
} // namespace cv

View File

@ -18,56 +18,63 @@ namespace cv
namespace dnn
{
#ifdef HAVE_VULKAN
std::vector<vkcom::Tensor> VkComTensors(const std::vector<Ptr<BackendWrapper> >& ptrs);
std::vector<vkcom::Tensor> VkComTensors(const std::vector<Ptr<BackendWrapper> >& ptrs);
vkcom::Tensor VkComTensor(const Ptr<BackendWrapper>& ptr);
vkcom::Tensor VkComTensor(const Ptr<BackendWrapper>& ptr);
// Data copied from/to Mat to/from Tensor. Change the shape of dst if
// needed to make it the same shape as src
void copyToTensor(vkcom::Tensor &dst, const Mat &src);
// the input is the OpenCV activation layer, and the output is the activation in Vulkan backend.
int transFusedActivType(Ptr<ActivationLayer> &actLayer);
void copyToMat(Mat &dst, const vkcom::Tensor &src);
// Data copied from/to Mat to/from Tensor. Change the shape of dst if
// needed to make it the same shape as src
void copyToMat(Mat &dst, const vkcom::Tensor &src);
void copyToTensor(vkcom::Tensor &dst, const Mat &src);
class VkComBackendNode : public BackendNode
{
public:
VkComBackendNode(const std::vector<Ptr<BackendWrapper> >& inputsWrapper,
const std::shared_ptr<vkcom::OpBase> &op,
const std::vector<Ptr<BackendWrapper> >& blobsWrapper =
std::vector<Ptr<BackendWrapper> >());
void printTensor(vkcom::Tensor &dst);
bool forward(std::vector<vkcom::Tensor>& outs);
// VkComBackendNode contains the input and output of a layer/op.
// And the specific weight and the parameter information of the layer will be saved in the Op instance.
class VkComBackendNode : public BackendNode
{
public:
VkComBackendNode(const std::vector<Ptr<BackendWrapper> >& inputsWrapper,
const Ptr<vkcom::OpBase>& op,
const std::vector<Ptr<BackendWrapper> >& outputsWrapper);
bool forward();
private:
std::vector<vkcom::Tensor> ins;
std::vector<vkcom::Tensor> blobs;
std::vector<vkcom::Tensor> outs;
std::vector<Ptr<BackendWrapper> > inputsWrapper_;
std::shared_ptr<vkcom::OpBase> operation;
};
std::vector<Ptr<BackendWrapper> > outputsWrapper_;
Ptr<vkcom::OpBase> operation;
};
class VkComBackendWrapper : public BackendWrapper
{
public:
VkComBackendWrapper(Mat& m);
VkComBackendWrapper(const Ptr<BackendWrapper>& baseBuffer, Mat& m);
class VkComBackendWrapper : public BackendWrapper
{
public:
VkComBackendWrapper(Mat& m);
VkComBackendWrapper(const Ptr<BackendWrapper>& baseBuffer, Mat& m);
virtual void copyToHost() CV_OVERRIDE;
virtual void setHostDirty() CV_OVERRIDE;
void setDeviceDirty();
void copyToDevice();
vkcom::Tensor getTensor();
virtual void copyToHost() CV_OVERRIDE;
virtual void setHostDirty() CV_OVERRIDE;
void setDeviceDirty();
void copyToDevice();
vkcom::Tensor getTensor();
Mat* getMat();
private:
vkcom::Tensor tensor;
Mat* host;
bool hostDirty;
bool deviceDirty;
};
private:
vkcom::Tensor tensor;
Mat* host;
bool hostDirty;
bool deviceDirty;
};
#endif // HAVE_VULKAN
void forwardVkCom(std::vector<Ptr<BackendWrapper> > &outputs, const Ptr<BackendNode>& node);
void forwardVkCom(std::vector<Ptr<BackendWrapper> > &outputs, const Ptr<BackendNode>& node);
bool haveVulkan();
bool haveVulkan();
} // namespace dnn
} // namespace cv

View File

@ -19,17 +19,15 @@ namespace cv { namespace dnn { namespace vkcom {
class Buffer
{
public:
Buffer(VkDevice& device)
: device_(device), buffer_(VK_NULL_HANDLE), memory_(VK_NULL_HANDLE){};
Buffer(VkDevice& device, size_t size_in_bytes, const char* data);
Buffer(VkBufferUsageFlags usageFlag = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT);
Buffer(size_t size_in_bytes, const char* data, VkBufferUsageFlags usageFlags = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT);
~Buffer();
VkDeviceMemory getVkMemory() { return memory_; }
VkBuffer getVkBuffer() { return buffer_; }
private:
Buffer();
bool init(size_t size_in_bytes, const char* data);
VkDevice device_;
VkBufferUsageFlags usageFlag_;
VkBuffer buffer_;
VkDeviceMemory memory_;
};

View File

@ -0,0 +1,82 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_COMMAND_VULKAN_HPP
#define OPENCV_COMMAND_VULKAN_HPP
#include <queue>
#ifdef HAVE_VULKAN
#include <vulkan/vulkan.h>
#endif // HAVE_VULKAN
#include "fence.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
class CommandPool;
// CommandBuffer will record and dispatch the VkCommand, it was allocated from CommandPool.
class CommandBuffer
{
public:
~CommandBuffer();
void beginRecord(VkCommandBufferUsageFlags flag = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT);
void endRecord();
enum BarrierType {
READ_WRITE = 0,
WRITE_WRITE = 1,
};
void barrierSource(VkBuffer source, size_t start, size_t size, BarrierType type = READ_WRITE) const;
VkCommandBuffer get()
{
return cmdBuffer;
}
private:
friend class CommandPool;
CommandBuffer(CommandPool* pool);
CommandPool* cmdPool;
VkCommandBuffer cmdBuffer;
// If is true, the deconstructor will release the instance, otherwise, re-use it.
bool needRelease = true;
};
class CommandPool
{
public:
static Ptr<CommandPool> create(const VkQueue& q, uint32_t _queueFamilyIndex);
void operator=(const CommandPool &) = delete;
CommandPool(CommandPool &other) = delete;
void reset();
~CommandPool();
VkCommandPool get() const
{
return cmdPool;
}
Ptr<CommandBuffer> allocBuffer();
void submitAndWait(VkCommandBuffer& buffer) const;
std::queue<VkCommandBuffer > bufferQueue; // For re-use the CommandBuffer.
private:
CommandPool(const VkQueue& q, uint32_t _queueFamilyIndex);
const VkQueue& queue;
VkCommandPool cmdPool;
uint32_t queueFamilyIndex;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif //OPENCV_COMMAND_VULKAN_HPP

View File

@ -0,0 +1,184 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
/*
The code has been borrowed from ncnn inference engine (https://github.com/Tencent/ncnn/blob/20230223/src/gpu.cpp)
and adapted for OpenCV by Zihao Mu.
Below is the original copyright:
*/
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
#ifndef OPENCV_CONTEXT_VULKAN_HPP
#define OPENCV_CONTEXT_VULKAN_HPP
#include "../../precomp.hpp"
#ifdef HAVE_VULKAN
#include <vulkan/vulkan.h>
#endif // HAVE_VULKAN
#include "command.hpp"
#include "pipeline.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
// NOTE: Manually set true to enable ValidationLayers, default is false.
const bool enableValidationLayers = false;
enum GPU_TYPE {
GPU_TYPE_NOFOUND = -1,
GPU_TYPE_DISCRETE = 0,
GPU_TYPE_INTEGRATED = 1,
GPU_TYPE_VIRTUAL = 2,
GPU_TYPE_CPU_ONLY = 3,
};
// GPUInfo will parse GPU hardware information and save it in param.
struct GPUInfo
{
// memory properties
VkPhysicalDeviceMemoryProperties physicalDeviceMemoryProperties;
// basic info
GPU_TYPE type; // cpu, integrated GPU, discrete GPU.
uint32_t apiVersion;
uint32_t driverVersion;
uint32_t vendorId;
uint32_t deviceId;
char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
uint8_t pipelineCacheUUID[VK_UUID_SIZE];
// hardware limit
uint32_t maxSharedMemorySize;
uint32_t maxWorkgroupCount_x;
uint32_t maxWorkgroupCount_y;
uint32_t maxWorkgroupCount_z;
uint32_t maxWorkgroup_invocations;
uint32_t maxWorkgroupSize_x;
uint32_t maxWorkgroupSize_y;
uint32_t maxWorkgroupSize_z;
size_t memoryMapAlignment;
size_t bufferOffsetAlignment;
size_t non_coherent_atom_size;
size_t bufferImageGranularity;
uint32_t maxImageDimension_1d;
uint32_t maxImageDimension_2d;
uint32_t maxImageDimension_3d;
float timestampPeriod;
// runtime
uint32_t computeQueueFamilyIndex;
uint32_t graphicsQueueFamilyIndex;
uint32_t transferQueueFamilyIndex;
bool unifiedComputeTransferQueue;
uint32_t computeQueueCount;
uint32_t graphicsQueueCount;
uint32_t transferQueueCount;
// subgroup
uint32_t subgroupSize;
bool supportSubgroupBasic;
bool supportSubgroupVote;
bool supportSubgroupBallot;
bool supportSubgroupShuffle;
// TODO! Maybe in OpenCV we just care about if the device supports the FP16 or INT8.
// fp16 and int8 feature
bool support_fp16_packed;
bool support_fp16_storage;
bool support_fp16_arithmetic;
bool support_int8_packed;
bool support_int8_storage;
bool support_int8_arithmetic;
// cooperative matrix
bool support_cooperative_matrix;
// extension capability
int support_VK_KHR_8bit_storage;
int support_VK_KHR_16bit_storage;
int support_VK_KHR_bind_memory2;
int support_VK_KHR_create_renderpass2;
int support_VK_KHR_dedicated_allocation;
int support_VK_KHR_descriptor_update_template;
int support_VK_KHR_external_memory;
int support_VK_KHR_get_memory_requirements2;
int support_VK_KHR_maintenance1;
int support_VK_KHR_maintenance2;
int support_VK_KHR_maintenance3;
int support_VK_KHR_multiview;
int support_VK_KHR_portability_subset;
int support_VK_KHR_push_descriptor;
int support_VK_KHR_sampler_ycbcr_conversion;
int support_VK_KHR_shader_float16_int8;
int support_VK_KHR_shader_float_controls;
int support_VK_KHR_storage_buffer_storage_class;
int support_VK_KHR_swapchain;
int support_VK_EXT_descriptor_indexing;
int support_VK_EXT_memory_budget;
int support_VK_EXT_queue_family_foreign;
#if defined(__ANDROID_API__) && __ANDROID_API__ >= 26
int support_VK_ANDROID_external_memory_android_hardware_buffer;
#endif // __ANDROID_API__ >= 26
int support_VK_NV_cooperative_matrix;
};
// It contains all source we need in Vulkan Backend.
// every class may need use the resource from context.
class Context
{
public:
static Ptr<Context> create();
void operator=(const Context &) = delete;
Context(Context &other) = delete;
~Context(); // TODO deconstruct this class when net was deconstructed.
void reset();
private:
GPUInfo parseGPUInfo(VkPhysicalDevice& device);
// The following function will create kInstance.
void createInstance();
int findBestPhysicalGPUIndex();
Context();
// Vulkan related resource.
VkInstance kInstance = VK_NULL_HANDLE;
VkPhysicalDevice kPhysicalDevice = VK_NULL_HANDLE;
uint32_t kQueueFamilyIndex;
std::vector<GPUInfo> gpuInfoList; // store all available GPU information.
int bestGPUIndex;
std::vector<const char *> kEnabledLayers;
VkDebugReportCallbackEXT kDebugReportCallback = VK_NULL_HANDLE;
// Extension things
std::vector<const char *> enabledExtensions;
uint32_t instanceExtensionPropertyCount;
std::vector<VkExtensionProperties> instanceExtensionProperties;
uint32_t instanceApiVersion;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif //OPENCV_CONTEXT_VULKAN_HPP

View File

@ -0,0 +1,33 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_FENCE_HPP
#define OPENCV_FENCE_HPP
#include "../../precomp.hpp"
#ifdef HAVE_VULKAN
#include <vulkan/vulkan.h>
#endif // HAVE_VULKAN
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
// Used for synchronize and wait
class Fence
{
public:
Fence();
~Fence();
VkFence get() const;
VkResult reset() const;
VkResult wait() const;
private:
VkFence fence;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif //OPENCV_FENCE_HPP

View File

@ -10,6 +10,7 @@
#include "../../precomp.hpp"
#include "vkcom.hpp"
#include "context.hpp"
namespace cv { namespace dnn { namespace vkcom {
@ -23,31 +24,14 @@ class OpBase
public:
OpBase();
virtual ~OpBase();
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) = 0;
virtual bool forward(std::vector<Tensor>& ins, std::vector<Tensor>& outs) = 0;
protected:
void initVulkanThing(int buffer_num);
void createDescriptorSetLayout(int buffer_num);
void createDescriptorSet(int buffer_num);
void createShaderModule(const uint32_t* spv, size_t sz, const std::string& source = std::string());
void createPipeline(size_t push_constants_size = 0, VkSpecializationInfo* specialization_info = 0);
void createCommandBuffer();
void recordCommandBuffer(void* push_constants = NULL, size_t push_constants_size = 0);
void runCommandBuffer();
VkPipeline pipeline_;
VkCommandBuffer cmd_buffer_;
VkDescriptorPool descriptor_pool_;
VkDescriptorSet descriptor_set_;
VkDevice device_;
VkDescriptorSetLayout descriptor_set_layout_;
VkPipelineLayout pipeline_layout_;
VkShaderModule module_;
std::vector<VkDescriptorType> destTypes; // Save the input data type.
std::string shader_name; // the key which is used for retrieve Pipeline from PipelineFactory.
std::string type_;
int group_x_;
int group_y_;
int group_z_;
std::string type_;
};
#endif // HAVE_VULKAN

View File

@ -1,55 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_OP_CONCAT_HPP
#define OPENCV_DNN_VKCOM_OP_CONCAT_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
struct ConcatShaderConfig
{
int local_size_x;
int local_size_y;
int local_size_z;
int block_height;
int block_width;
int block_depth;
};
class OpConcat: public OpBase
{
public:
OpConcat(const int axis);
bool forward(std::vector<Tensor>& ins, Tensor& out);
void reshapeOutTensor(std::vector<Tensor *>& in, Tensor& out);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
private:
bool init(const int axis);
bool computeGroupCount();
ConcatShaderConfig config_;
int axis_;
int out_concat_axis_;
int accumulated_concat_axis_;
int concat_size_;
int total_concat_size_;
int thread_num_;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_OP_CONCAT_HPP

View File

@ -17,10 +17,10 @@ namespace cv { namespace dnn { namespace vkcom {
enum ConvShaderType
{
kConvShaderTypeBasic = 0,
kConvShaderType48,
kConvShaderTypeDepthWise,
kConvShaderTypeNum
kConvShaderTypeGeneric = 0,
kConvShaderTypeDepthWise = 2, // special branch
kConvShaderTypeWinograd = 3,
kConvShaderTest = 4,
};
struct ConvShaderConfig
@ -28,55 +28,46 @@ struct ConvShaderConfig
int local_size_x;
int local_size_y;
int local_size_z;
int block_height;
int block_width;
int block_depth;
ConvShaderType shader_type;
};
// Current Vulkan Convolution layer only support Conv2D.
class OpConv : public OpBase
{
public:
OpConv(const int out_channel, const bool has_bias,
const int* filter_size, const int* pad,
const int* stride, const int* dilation,
const int activation, const int group,
const int padding_mode);
void reshapeOutTensor(Tensor& in, Tensor& out);
bool forward(Tensor& in, Tensor& filter_weights, Tensor& bias, Tensor& out);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
OpConv(const Mat& weightBlob, const std::vector<float>& biasvec, int activType, const int ngroups, const int K, const int C, const int Hk, const int Wk,
const int stride_h, const int stride_w, const int dilation_h, const int dilation_w,
const int pad_left, const int pad_top);
~OpConv();
void firstForward(); // Execute only in the first forward.
virtual bool forward(std::vector<Tensor>& ins, std::vector<Tensor>& outs) CV_OVERRIDE;
std::vector<float> biasCopy;
Ptr<Tensor> weightTensorPtr;
Ptr<Tensor> biasTensorPtr;
private:
bool init(const int out_channel, const bool has_bias,
const int* filter_size, const int* pad,
const int* stride, const int* dilation,
const int activation, const int group,
const int padding_mode);
bool computeGroupCount();
int batch_;
int in_height_;
int in_width_;
int in_channel_;
int out_height_;
int out_width_;
int out_channel_;
int filter_height_;
int filter_width_;
int stride_height_;
int stride_width_;
int padding_top_;
int padding_left_;
int dilation_height_;
int dilation_width_;
int activation_;
PaddingMode padding_mode_;
int group_;
int has_bias_;
Tensor swizzled_weights;
ConvShaderConfig config_;
bool dwconv_;
FusedActivationType activ;
const int ngroups;
const int K, C, Hk, Wk; // output channel, input channel, height of kernel, width of kernel.
const int stride_h, stride_w;
const int dilation_h, dilation_w;
const int pad_left, pad_top;
int H0, W0;
int Hi, Wi;
int batch;
int Kg, Cg;
int CgHkWk, CgHkWk_aligned, ksize;
int STRIP_LEN;
bool fast_1x1 = false;
ConvShaderType shaderType;
ConvShaderConfig config;
bool firstForwardFinsh = false;
};
#endif // HAVE_VULKAN

View File

@ -1,70 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_OP_LRN_HPP
#define OPENCV_DNN_VKCOM_OP_LRN_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
enum LRNShaderType
{
kLRNShaderTypeBasic = 0,
kLRNShaderTypeNum
};
struct LRNShaderConfig
{
int local_size_x;
int local_size_y;
int local_size_z;
int block_height;
int block_width;
int block_depth;
LRNShaderType shader_type;
};
class OpLRN : public OpBase
{
public:
OpLRN(const int radius, const float bias,
const float alpha, const float beta,
const bool norm_by_size);
void reshapeOutTensor(Tensor& in, Tensor& out);
bool forward(Tensor& in, Tensor& out);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
private:
bool init(const int radius, const float bias,
const float alpha, const float beta,
const bool norm_by_size);
bool computeGroupCount();
int batch_;
int height_;
int width_;
int channels_;
int radius_;
float bias_;
float alpha_;
float beta_;
int filter_len_;
int thread_num_;
bool norm_by_size_;
LRNShaderConfig config_;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_OP_LRN_HPP

View File

@ -0,0 +1,47 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_OP_MATMUL_HPP
#define OPENCV_OP_MATMUL_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
struct MatMulShaderConfig
{
int local_size_x;
int local_size_y;
int local_size_z;
};
// Current Vulkan Convolution layer only support Conv2D.
class OpMatMul : public OpBase
{
public:
OpMatMul(std::vector<Mat>& matBlobs, const int M, const int K, const int N);
void firstForward(); // Execute only in the first forward.
virtual bool forward(std::vector<Tensor>& ins, std::vector<Tensor>& outs) CV_OVERRIDE;
Ptr<Tensor> weightTensorPtr;
private:
bool computeGroupCount();
const int M, K, N;
int Hi, Wi;
int H0, W0;
int batch;
MatMulShaderConfig config;
bool firstForwardFinsh = false;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif //OPENCV_OP_MATMUL_HPP

View File

@ -1,50 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_OP_PERMUTE_HPP
#define OPENCV_DNN_VKCOM_OP_PERMUTE_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
class OpPermute: public OpBase
{
public:
OpPermute(std::vector<size_t>& order);
bool forward(std::vector<Tensor>& ins, std::vector<Tensor>& outs);
void reshapeOutTensor(std::vector<Tensor *>& in, std::vector<Tensor>& outs);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
private:
void prepareStrides(const Shape &shape_before, const Shape &shape_after);
bool computeGroupCount();
std::vector<int> order_;
bool need_permute_;
int global_size_;
int nthreads_;
int dims_;
Tensor tensor_order_;
Tensor tensor_old_stride_;
Tensor tensor_new_stride_;
std::vector<int> old_stride_;
std::vector<int> new_stride_;
Shape in_shape_;
Shape out_shape_;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_OP_PERMUTE_HPP

View File

@ -1,70 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_OP_POOL_HPP
#define OPENCV_DNN_VKCOM_OP_POOL_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
enum PoolType { kPoolTypeAvg, kPoolTypeMax, kPoolTypeNum };
struct PoolShaderConfig
{
int local_size_x;
int local_size_y;
int local_size_z;
int block_height;
int block_width;
int block_depth;
};
class OpPool: public OpBase
{
public:
OpPool(const int* filter_size, const int* pad, const int* stride,
const int padding_mode, const PoolType pool_type,
const bool avg_pool_padded_area);
bool forward(Tensor& in, Tensor& out, Tensor& mask);
void reshapeOutTensor(Tensor& in, Tensor& out);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
private:
bool init(const int* filter_size, const int* pad, const int* stride,
const int padding_mode, const PoolType type, const bool avg_pool_padded_area);
bool computeGroupCount();
int batch_;
int channels_;
int in_height_;
int in_width_;
int out_height_;
int out_width_;
int filter_height_;
int filter_width_;
int stride_height_;
int stride_width_;
int padding_left_;
int padding_top_;
PoolType pool_type_;
int avg_pool_padded_area_;
int need_mask_;
PaddingMode padding_mode_;
//int activation_;
PoolShaderConfig config_;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_OP_POOL_HPP

View File

@ -1,66 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_OP_PRIOR_BOX_HPP
#define OPENCV_DNN_VKCOM_OP_PRIOR_BOX_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
class OpPriorBox: public OpBase
{
public:
OpPriorBox(float step_x,
float step_y,
bool clip,
int num_priors,
std::vector<float>& variance,
std::vector<float>& offsets_x,
std::vector<float>& offsets_y,
std::vector<float>& box_widths,
std::vector<float>& box_heights);
bool forward(std::vector<Tensor>& in, Tensor& out);
void reshapeOutTensor(std::vector<Tensor *>& in, Tensor& out);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
private:
bool computeGroupCount();
int global_size_;
int nthreads_;
float step_x_;
float step_y_;
bool clip_;
int num_priors_;
std::vector<float> variance_;
std::vector<float> offsets_x_;
std::vector<float> offsets_y_;
std::vector<float> box_widths_;
std::vector<float> box_heights_;
int img_h_;
int img_w_;
int in_h_;
int in_w_;
int out_channel_;
int out_channel_size_;
Tensor tensor_offsets_x_;
Tensor tensor_offsets_y_;
Tensor tensor_widths_;
Tensor tensor_heights_;
Tensor tensor_variance_;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_OP_PRIOR_BOX_HPP

View File

@ -1,37 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_OP_RELU_HPP
#define OPENCV_DNN_VKCOM_OP_RELU_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
class OpReLU: public OpBase
{
public:
OpReLU(const float slope = 1.f);
bool forward(Tensor& in, Tensor& out);
void reshapeOutTensor(Tensor& in, Tensor& out);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
private:
bool computeGroupCount();
int total_;
float slope_;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_OP_RELU_HPP

View File

@ -1,56 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_OP_SOFTMAX_HPP
#define OPENCV_DNN_VKCOM_OP_SOFTMAX_HPP
#include "vkcom.hpp"
#include "op_base.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
struct SoftmaxShaderConfig
{
int local_size_x;
int local_size_y;
int local_size_z;
int block_height;
int block_width;
int block_depth;
};
class OpSoftmax: public OpBase
{
public:
OpSoftmax(const int axis, const bool log_softmax = false);
~OpSoftmax();
void reshapeOutTensor(Tensor& in, Tensor& out);
bool forward(Tensor& in, Tensor& out);
virtual bool forward(std::vector<Tensor>& ins,
std::vector<Tensor>& blobs,
std::vector<Tensor>& outs) CV_OVERRIDE;
private:
bool init(const int axis, const bool log_softmax);
bool computeGroupCount();
int axis_;
int channels_;
int channel_size_;
int outer_size_;
bool log_softmax_;
SoftmaxShaderConfig config_;
Tensor* max_tensor_;
Tensor* sum_tensor_;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_OP_SOFTMAX_HPP

View File

@ -0,0 +1,104 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_PIPELINE_VULKAN_HPP
#define OPENCV_PIPELINE_VULKAN_HPP
#include "../../precomp.hpp"
#include "tensor.hpp"
#include <map>
#include <queue>
#ifdef HAVE_VULKAN
#include <vulkan/vulkan.h>
#endif // HAVE_VULKAN
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
class Pipeline;
class Descriptor
{
public:
static Ptr<Descriptor> create(const VkDescriptorPool& pool, const VkDescriptorSet& set,
Pipeline* _pipeline);
~Descriptor();
void writeTensor(Tensor tensor, int bindIndex);
// the buffer is bond to the device VkMemory.
void writeBuffer(VkBuffer buffer, int bindIndex, size_t size, VkDeviceSize offset = 0);
VkDescriptorSet get() const
{
return desSet;
}
private:
friend class Pipeline;
Descriptor(const VkDescriptorPool& pool, const VkDescriptorSet& set, Pipeline* _pipeline);
VkDescriptorPool desPool;
VkDescriptorSet desSet;
Pipeline* pipeline;
// If is true, the deconstruct will release the instance, otherwise, re-use it.
bool needRelease = true;
};
class Pipeline
{
public:
static Ptr<Pipeline> create(const uint32_t* spv, size_t length, const std::vector<VkDescriptorType>& bufferTypes,
VkPipelineCache& cache, const std::vector<uint32_t>& localSize = std::vector<uint32_t>());
~Pipeline();
VkPipeline get() const
{
return pipelineVK;
}
Ptr<Descriptor> createSet();
void bind(VkCommandBuffer buffer, VkDescriptorSet descriptorSet) const;
inline VkDescriptorType argType(int index) const
{
return bufferTypes[index];
}
// To save the descriptor that can be reused.
std::queue<std::pair<VkDescriptorPool, VkDescriptorSet> > descriptorPairQueue;
private:
Pipeline(const uint32_t* spv, size_t length, const std::vector<VkDescriptorType>& bufferTypes,
VkPipelineCache& cache, const std::vector<uint32_t>& localSize = std::vector<uint32_t>());
VkPipeline pipelineVK;
VkPipelineLayout pipelineLayout;
std::vector<VkDescriptorPoolSize> desPoolSize;
VkDescriptorSetLayout setLayout;
std::vector<VkDescriptorType> bufferTypes;
};
class PipelineFactory
{
public:
static Ptr<PipelineFactory> create();
// Try to retrieve the Pipeline from pipelineCreated, create a new pipeline instance if not found.
Ptr<Pipeline> getPipeline(const std::string& key, const std::vector<VkDescriptorType>& types,
const std::vector<uint32_t>& localSize = std::vector<uint32_t>());
~PipelineFactory();
void reset();
void operator=(const PipelineFactory &) = delete;
PipelineFactory(PipelineFactory &other) = delete;
private:
PipelineFactory();
mutable std::map<std::string, Ptr<Pipeline> > pipelineCreated;
VkPipelineCache pipelineCache;
};
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif //OPENCV_PIPELINE_VULKAN_HPP

View File

@ -1,9 +1,6 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_TENSOR_HPP
#define OPENCV_DNN_VKCOM_TENSOR_HPP
@ -23,8 +20,9 @@ class Buffer;
class Tensor
{
public:
Tensor(Format fmt = kFormatFp32);
Tensor(const char* data, std::vector<int>& shape, Format fmt = kFormatFp32);
Tensor(Format fmt = kFormatFp32, VkBufferUsageFlags usageFlag = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT);
Tensor(const char* data, std::vector<int>& shape, Format fmt = kFormatFp32,
VkBufferUsageFlags usageFlag = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT);
void* map();
void unMap();
Shape getShape() const;
@ -42,14 +40,14 @@ public:
size_t size() const { return size_in_byte_; }
bool isEmpty() { return size_in_byte_ == 0 ? true : false; }
void copyTo(Tensor& dst);
std::shared_ptr<Buffer> getBuffer() { return buffer_; }
Ptr<Buffer> getBuffer() { return buffer_; }
private:
VkDevice device_;
std::vector<int> shape_;
size_t size_in_byte_;
std::shared_ptr<Buffer> buffer_;
Ptr<Buffer> buffer_;
Format format_;
VkBufferUsageFlags usageFlag_;
};
#endif // HAVE_VULKAN

View File

@ -24,19 +24,17 @@ enum Format{
};
enum OpType {
kOpTypeNull = -1,
kOpTypeConv,
kOpTypePool,
kOpTypeDWConv,
kOpTypeLRN,
kOpTypeConcat,
kOpTypeSoftmax,
kOpTypeReLU,
kOpTypePriorBox,
kOpTypePermute,
kOpTypeNum
kOpTypeMatMul,
};
enum FusedActivationType {
kFusedActivUnsupport = -1,
kFusedActivNone = 0,
kFusedActivRelu = 1,
kFusedActivRelu6 = 2,
};
enum PaddingMode { kPaddingModeSame, kPaddingModeValid, kPaddingModeCaffe, kPaddingModeNum };
enum FusedActivationType { kNone, kRelu, kRelu1, kRelu6, kActivationNum };
typedef std::vector<int> Shape;
bool isAvailable();
@ -45,16 +43,13 @@ bool isAvailable();
}}} // namespace cv::dnn::vkcom
#include "tensor.hpp"
#include "buffer.hpp"
#include "tensor.hpp"
#include "context.hpp"
// layer
#include "op_base.hpp"
#include "op_concat.hpp"
#include "op_conv.hpp"
#include "op_lrn.hpp"
#include "op_softmax.hpp"
#include "op_relu.hpp"
#include "op_pool.hpp"
#include "op_prior_box.hpp"
#include "op_permute.hpp"
#include "op_matmul.hpp"
#endif // OPENCV_DNN_VKCOM_HPP

View File

@ -1,69 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(push_constant) uniform pushBlock {
int channels;
int in_h;
int in_w;
int out_h;
int out_w;
int padding_h;
int padding_w;
int filter_h;
int filter_w;
int stride_h;
int stride_w;
int total;
int padded_area;
} p;
layout(binding = 0) readonly buffer Input0{
float in_buffer[];
};
layout(binding = 1) writeonly buffer Output{
float out_buffer[];
};
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
int global_size = int(gl_WorkGroupSize.x * gl_NumWorkGroups.x);
int gid = int(gl_GlobalInvocationID.x);
for (int index = gid; index < p.total; index += global_size)
{
const int pw = index % p.out_w;
const int ph = (index / p.out_w) % p.out_h;
const int c = (index / p.out_w / p.out_h) % p.channels;
const int n = index / p.out_w / p.out_h / p.channels;
int hstart = ph * p.stride_h - p.padding_h;
int wstart = pw * p.stride_w - p.padding_w;
int hend = min(hstart + p.filter_h, p.in_h + p.padding_h);
int wend = min(wstart + p.filter_w, p.in_w + p.padding_w);
int pool_size;
if (p.padded_area == 1)
{
pool_size = (hend - hstart) * (wend - wstart);
hstart = max(hstart, 0);
wstart = max(wstart, 0);
hend = min(hend, p.in_h);
wend = min(wend, p.in_w);
}
else
{
hstart = max(hstart, 0);
wstart = max(wstart, 0);
hend = min(hend, p.in_h);
wend = min(wend, p.in_w);
pool_size = (hend - hstart) * (wend - wstart);
}
float aveval = 0;
int off = (n * p.channels + c) * p.in_h * p.in_w;
for (int h = hstart; h < hend; ++h) {
for (int w = wstart; w < wend; ++w) {
aveval += in_buffer[off + h * p.in_w + w];
}
}
out_buffer[index] = aveval / pool_size;
}
}

View File

@ -1,208 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int avg_pool_spv[1538] = {
0x07230203,0x00010000,0x00080001,0x000000f5,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000d,0x00000015,0x00060010,
0x00000004,0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00050005,0x00000008,0x626f6c67,0x735f6c61,
0x00657a69,0x00070005,0x0000000d,0x4e5f6c67,0x6f576d75,0x72476b72,0x7370756f,0x00000000,
0x00030005,0x00000014,0x00646967,0x00080005,0x00000015,0x475f6c67,0x61626f6c,0x766e496c,
0x7461636f,0x496e6f69,0x00000044,0x00040005,0x00000019,0x65646e69,0x00000078,0x00050005,
0x00000021,0x68737570,0x636f6c42,0x0000006b,0x00060006,0x00000021,0x00000000,0x6e616863,
0x736c656e,0x00000000,0x00050006,0x00000021,0x00000001,0x685f6e69,0x00000000,0x00050006,
0x00000021,0x00000002,0x775f6e69,0x00000000,0x00050006,0x00000021,0x00000003,0x5f74756f,
0x00000068,0x00050006,0x00000021,0x00000004,0x5f74756f,0x00000077,0x00060006,0x00000021,
0x00000005,0x64646170,0x5f676e69,0x00000068,0x00060006,0x00000021,0x00000006,0x64646170,
0x5f676e69,0x00000077,0x00060006,0x00000021,0x00000007,0x746c6966,0x685f7265,0x00000000,
0x00060006,0x00000021,0x00000008,0x746c6966,0x775f7265,0x00000000,0x00060006,0x00000021,
0x00000009,0x69727473,0x685f6564,0x00000000,0x00060006,0x00000021,0x0000000a,0x69727473,
0x775f6564,0x00000000,0x00050006,0x00000021,0x0000000b,0x61746f74,0x0000006c,0x00060006,
0x00000021,0x0000000c,0x64646170,0x615f6465,0x00616572,0x00030005,0x00000023,0x00000070,
0x00030005,0x0000002a,0x00007770,0x00030005,0x00000030,0x00006870,0x00030005,0x00000039,
0x00000063,0x00030005,0x00000045,0x0000006e,0x00040005,0x00000050,0x61747368,0x00007472,
0x00040005,0x0000005a,0x61747377,0x00007472,0x00040005,0x00000064,0x646e6568,0x00000000,
0x00040005,0x00000071,0x646e6577,0x00000000,0x00050005,0x00000084,0x6c6f6f70,0x7a69735f,
0x00000065,0x00040005,0x000000ae,0x76657661,0x00006c61,0x00030005,0x000000b0,0x0066666f,
0x00030005,0x000000bd,0x00000068,0x00030005,0x000000c7,0x00000077,0x00040005,0x000000d2,
0x75706e49,0x00003074,0x00060006,0x000000d2,0x00000000,0x625f6e69,0x65666675,0x00000072,
0x00030005,0x000000d4,0x00000000,0x00040005,0x000000e7,0x7074754f,0x00007475,0x00060006,
0x000000e7,0x00000000,0x5f74756f,0x66667562,0x00007265,0x00030005,0x000000e9,0x00000000,
0x00040047,0x0000000d,0x0000000b,0x00000018,0x00040047,0x00000015,0x0000000b,0x0000001c,
0x00050048,0x00000021,0x00000000,0x00000023,0x00000000,0x00050048,0x00000021,0x00000001,
0x00000023,0x00000004,0x00050048,0x00000021,0x00000002,0x00000023,0x00000008,0x00050048,
0x00000021,0x00000003,0x00000023,0x0000000c,0x00050048,0x00000021,0x00000004,0x00000023,
0x00000010,0x00050048,0x00000021,0x00000005,0x00000023,0x00000014,0x00050048,0x00000021,
0x00000006,0x00000023,0x00000018,0x00050048,0x00000021,0x00000007,0x00000023,0x0000001c,
0x00050048,0x00000021,0x00000008,0x00000023,0x00000020,0x00050048,0x00000021,0x00000009,
0x00000023,0x00000024,0x00050048,0x00000021,0x0000000a,0x00000023,0x00000028,0x00050048,
0x00000021,0x0000000b,0x00000023,0x0000002c,0x00050048,0x00000021,0x0000000c,0x00000023,
0x00000030,0x00030047,0x00000021,0x00000002,0x00040047,0x000000d1,0x00000006,0x00000004,
0x00040048,0x000000d2,0x00000000,0x00000018,0x00050048,0x000000d2,0x00000000,0x00000023,
0x00000000,0x00030047,0x000000d2,0x00000003,0x00040047,0x000000d4,0x00000022,0x00000000,
0x00040047,0x000000d4,0x00000021,0x00000000,0x00040047,0x000000e6,0x00000006,0x00000004,
0x00040048,0x000000e7,0x00000000,0x00000019,0x00050048,0x000000e7,0x00000000,0x00000023,
0x00000000,0x00030047,0x000000e7,0x00000003,0x00040047,0x000000e9,0x00000022,0x00000000,
0x00040047,0x000000e9,0x00000021,0x00000001,0x00040047,0x000000f4,0x0000000b,0x00000019,
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,
0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,
0x00000000,0x0004002b,0x00000009,0x0000000a,0x00000100,0x00040017,0x0000000b,0x00000009,
0x00000003,0x00040020,0x0000000c,0x00000001,0x0000000b,0x0004003b,0x0000000c,0x0000000d,
0x00000001,0x0004002b,0x00000009,0x0000000e,0x00000000,0x00040020,0x0000000f,0x00000001,
0x00000009,0x0004003b,0x0000000c,0x00000015,0x00000001,0x000f001e,0x00000021,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00040020,0x00000022,0x00000009,0x00000021,
0x0004003b,0x00000022,0x00000023,0x00000009,0x0004002b,0x00000006,0x00000024,0x0000000b,
0x00040020,0x00000025,0x00000009,0x00000006,0x00020014,0x00000028,0x0004002b,0x00000006,
0x0000002c,0x00000004,0x0004002b,0x00000006,0x00000035,0x00000003,0x0004002b,0x00000006,
0x00000041,0x00000000,0x0004002b,0x00000006,0x00000052,0x00000009,0x0004002b,0x00000006,
0x00000056,0x00000005,0x0004002b,0x00000006,0x0000005c,0x0000000a,0x0004002b,0x00000006,
0x00000060,0x00000006,0x0004002b,0x00000006,0x00000066,0x00000007,0x0004002b,0x00000006,
0x0000006a,0x00000001,0x0004002b,0x00000006,0x00000073,0x00000008,0x0004002b,0x00000006,
0x00000077,0x00000002,0x0004002b,0x00000006,0x0000007e,0x0000000c,0x00030016,0x000000ac,
0x00000020,0x00040020,0x000000ad,0x00000007,0x000000ac,0x0004002b,0x000000ac,0x000000af,
0x00000000,0x0003001d,0x000000d1,0x000000ac,0x0003001e,0x000000d2,0x000000d1,0x00040020,
0x000000d3,0x00000002,0x000000d2,0x0004003b,0x000000d3,0x000000d4,0x00000002,0x00040020,
0x000000dd,0x00000002,0x000000ac,0x0003001d,0x000000e6,0x000000ac,0x0003001e,0x000000e7,
0x000000e6,0x00040020,0x000000e8,0x00000002,0x000000e7,0x0004003b,0x000000e8,0x000000e9,
0x00000002,0x0004002b,0x00000009,0x000000f3,0x00000001,0x0006002c,0x0000000b,0x000000f4,
0x0000000a,0x000000f3,0x000000f3,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,
0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,0x0004003b,0x00000007,
0x00000014,0x00000007,0x0004003b,0x00000007,0x00000019,0x00000007,0x0004003b,0x00000007,
0x0000002a,0x00000007,0x0004003b,0x00000007,0x00000030,0x00000007,0x0004003b,0x00000007,
0x00000039,0x00000007,0x0004003b,0x00000007,0x00000045,0x00000007,0x0004003b,0x00000007,
0x00000050,0x00000007,0x0004003b,0x00000007,0x0000005a,0x00000007,0x0004003b,0x00000007,
0x00000064,0x00000007,0x0004003b,0x00000007,0x00000071,0x00000007,0x0004003b,0x00000007,
0x00000084,0x00000007,0x0004003b,0x000000ad,0x000000ae,0x00000007,0x0004003b,0x00000007,
0x000000b0,0x00000007,0x0004003b,0x00000007,0x000000bd,0x00000007,0x0004003b,0x00000007,
0x000000c7,0x00000007,0x00050041,0x0000000f,0x00000010,0x0000000d,0x0000000e,0x0004003d,
0x00000009,0x00000011,0x00000010,0x00050084,0x00000009,0x00000012,0x0000000a,0x00000011,
0x0004007c,0x00000006,0x00000013,0x00000012,0x0003003e,0x00000008,0x00000013,0x00050041,
0x0000000f,0x00000016,0x00000015,0x0000000e,0x0004003d,0x00000009,0x00000017,0x00000016,
0x0004007c,0x00000006,0x00000018,0x00000017,0x0003003e,0x00000014,0x00000018,0x0004003d,
0x00000006,0x0000001a,0x00000014,0x0003003e,0x00000019,0x0000001a,0x000200f9,0x0000001b,
0x000200f8,0x0000001b,0x000400f6,0x0000001d,0x0000001e,0x00000000,0x000200f9,0x0000001f,
0x000200f8,0x0000001f,0x0004003d,0x00000006,0x00000020,0x00000019,0x00050041,0x00000025,
0x00000026,0x00000023,0x00000024,0x0004003d,0x00000006,0x00000027,0x00000026,0x000500b1,
0x00000028,0x00000029,0x00000020,0x00000027,0x000400fa,0x00000029,0x0000001c,0x0000001d,
0x000200f8,0x0000001c,0x0004003d,0x00000006,0x0000002b,0x00000019,0x00050041,0x00000025,
0x0000002d,0x00000023,0x0000002c,0x0004003d,0x00000006,0x0000002e,0x0000002d,0x0005008b,
0x00000006,0x0000002f,0x0000002b,0x0000002e,0x0003003e,0x0000002a,0x0000002f,0x0004003d,
0x00000006,0x00000031,0x00000019,0x00050041,0x00000025,0x00000032,0x00000023,0x0000002c,
0x0004003d,0x00000006,0x00000033,0x00000032,0x00050087,0x00000006,0x00000034,0x00000031,
0x00000033,0x00050041,0x00000025,0x00000036,0x00000023,0x00000035,0x0004003d,0x00000006,
0x00000037,0x00000036,0x0005008b,0x00000006,0x00000038,0x00000034,0x00000037,0x0003003e,
0x00000030,0x00000038,0x0004003d,0x00000006,0x0000003a,0x00000019,0x00050041,0x00000025,
0x0000003b,0x00000023,0x0000002c,0x0004003d,0x00000006,0x0000003c,0x0000003b,0x00050087,
0x00000006,0x0000003d,0x0000003a,0x0000003c,0x00050041,0x00000025,0x0000003e,0x00000023,
0x00000035,0x0004003d,0x00000006,0x0000003f,0x0000003e,0x00050087,0x00000006,0x00000040,
0x0000003d,0x0000003f,0x00050041,0x00000025,0x00000042,0x00000023,0x00000041,0x0004003d,
0x00000006,0x00000043,0x00000042,0x0005008b,0x00000006,0x00000044,0x00000040,0x00000043,
0x0003003e,0x00000039,0x00000044,0x0004003d,0x00000006,0x00000046,0x00000019,0x00050041,
0x00000025,0x00000047,0x00000023,0x0000002c,0x0004003d,0x00000006,0x00000048,0x00000047,
0x00050087,0x00000006,0x00000049,0x00000046,0x00000048,0x00050041,0x00000025,0x0000004a,
0x00000023,0x00000035,0x0004003d,0x00000006,0x0000004b,0x0000004a,0x00050087,0x00000006,
0x0000004c,0x00000049,0x0000004b,0x00050041,0x00000025,0x0000004d,0x00000023,0x00000041,
0x0004003d,0x00000006,0x0000004e,0x0000004d,0x00050087,0x00000006,0x0000004f,0x0000004c,
0x0000004e,0x0003003e,0x00000045,0x0000004f,0x0004003d,0x00000006,0x00000051,0x00000030,
0x00050041,0x00000025,0x00000053,0x00000023,0x00000052,0x0004003d,0x00000006,0x00000054,
0x00000053,0x00050084,0x00000006,0x00000055,0x00000051,0x00000054,0x00050041,0x00000025,
0x00000057,0x00000023,0x00000056,0x0004003d,0x00000006,0x00000058,0x00000057,0x00050082,
0x00000006,0x00000059,0x00000055,0x00000058,0x0003003e,0x00000050,0x00000059,0x0004003d,
0x00000006,0x0000005b,0x0000002a,0x00050041,0x00000025,0x0000005d,0x00000023,0x0000005c,
0x0004003d,0x00000006,0x0000005e,0x0000005d,0x00050084,0x00000006,0x0000005f,0x0000005b,
0x0000005e,0x00050041,0x00000025,0x00000061,0x00000023,0x00000060,0x0004003d,0x00000006,
0x00000062,0x00000061,0x00050082,0x00000006,0x00000063,0x0000005f,0x00000062,0x0003003e,
0x0000005a,0x00000063,0x0004003d,0x00000006,0x00000065,0x00000050,0x00050041,0x00000025,
0x00000067,0x00000023,0x00000066,0x0004003d,0x00000006,0x00000068,0x00000067,0x00050080,
0x00000006,0x00000069,0x00000065,0x00000068,0x00050041,0x00000025,0x0000006b,0x00000023,
0x0000006a,0x0004003d,0x00000006,0x0000006c,0x0000006b,0x00050041,0x00000025,0x0000006d,
0x00000023,0x00000056,0x0004003d,0x00000006,0x0000006e,0x0000006d,0x00050080,0x00000006,
0x0000006f,0x0000006c,0x0000006e,0x0007000c,0x00000006,0x00000070,0x00000001,0x00000027,
0x00000069,0x0000006f,0x0003003e,0x00000064,0x00000070,0x0004003d,0x00000006,0x00000072,
0x0000005a,0x00050041,0x00000025,0x00000074,0x00000023,0x00000073,0x0004003d,0x00000006,
0x00000075,0x00000074,0x00050080,0x00000006,0x00000076,0x00000072,0x00000075,0x00050041,
0x00000025,0x00000078,0x00000023,0x00000077,0x0004003d,0x00000006,0x00000079,0x00000078,
0x00050041,0x00000025,0x0000007a,0x00000023,0x00000060,0x0004003d,0x00000006,0x0000007b,
0x0000007a,0x00050080,0x00000006,0x0000007c,0x00000079,0x0000007b,0x0007000c,0x00000006,
0x0000007d,0x00000001,0x00000027,0x00000076,0x0000007c,0x0003003e,0x00000071,0x0000007d,
0x00050041,0x00000025,0x0000007f,0x00000023,0x0000007e,0x0004003d,0x00000006,0x00000080,
0x0000007f,0x000500aa,0x00000028,0x00000081,0x00000080,0x0000006a,0x000300f7,0x00000083,
0x00000000,0x000400fa,0x00000081,0x00000082,0x00000098,0x000200f8,0x00000082,0x0004003d,
0x00000006,0x00000085,0x00000064,0x0004003d,0x00000006,0x00000086,0x00000050,0x00050082,
0x00000006,0x00000087,0x00000085,0x00000086,0x0004003d,0x00000006,0x00000088,0x00000071,
0x0004003d,0x00000006,0x00000089,0x0000005a,0x00050082,0x00000006,0x0000008a,0x00000088,
0x00000089,0x00050084,0x00000006,0x0000008b,0x00000087,0x0000008a,0x0003003e,0x00000084,
0x0000008b,0x0004003d,0x00000006,0x0000008c,0x00000050,0x0007000c,0x00000006,0x0000008d,
0x00000001,0x0000002a,0x0000008c,0x00000041,0x0003003e,0x00000050,0x0000008d,0x0004003d,
0x00000006,0x0000008e,0x0000005a,0x0007000c,0x00000006,0x0000008f,0x00000001,0x0000002a,
0x0000008e,0x00000041,0x0003003e,0x0000005a,0x0000008f,0x0004003d,0x00000006,0x00000090,
0x00000064,0x00050041,0x00000025,0x00000091,0x00000023,0x0000006a,0x0004003d,0x00000006,
0x00000092,0x00000091,0x0007000c,0x00000006,0x00000093,0x00000001,0x00000027,0x00000090,
0x00000092,0x0003003e,0x00000064,0x00000093,0x0004003d,0x00000006,0x00000094,0x00000071,
0x00050041,0x00000025,0x00000095,0x00000023,0x00000077,0x0004003d,0x00000006,0x00000096,
0x00000095,0x0007000c,0x00000006,0x00000097,0x00000001,0x00000027,0x00000094,0x00000096,
0x0003003e,0x00000071,0x00000097,0x000200f9,0x00000083,0x000200f8,0x00000098,0x0004003d,
0x00000006,0x00000099,0x00000050,0x0007000c,0x00000006,0x0000009a,0x00000001,0x0000002a,
0x00000099,0x00000041,0x0003003e,0x00000050,0x0000009a,0x0004003d,0x00000006,0x0000009b,
0x0000005a,0x0007000c,0x00000006,0x0000009c,0x00000001,0x0000002a,0x0000009b,0x00000041,
0x0003003e,0x0000005a,0x0000009c,0x0004003d,0x00000006,0x0000009d,0x00000064,0x00050041,
0x00000025,0x0000009e,0x00000023,0x0000006a,0x0004003d,0x00000006,0x0000009f,0x0000009e,
0x0007000c,0x00000006,0x000000a0,0x00000001,0x00000027,0x0000009d,0x0000009f,0x0003003e,
0x00000064,0x000000a0,0x0004003d,0x00000006,0x000000a1,0x00000071,0x00050041,0x00000025,
0x000000a2,0x00000023,0x00000077,0x0004003d,0x00000006,0x000000a3,0x000000a2,0x0007000c,
0x00000006,0x000000a4,0x00000001,0x00000027,0x000000a1,0x000000a3,0x0003003e,0x00000071,
0x000000a4,0x0004003d,0x00000006,0x000000a5,0x00000064,0x0004003d,0x00000006,0x000000a6,
0x00000050,0x00050082,0x00000006,0x000000a7,0x000000a5,0x000000a6,0x0004003d,0x00000006,
0x000000a8,0x00000071,0x0004003d,0x00000006,0x000000a9,0x0000005a,0x00050082,0x00000006,
0x000000aa,0x000000a8,0x000000a9,0x00050084,0x00000006,0x000000ab,0x000000a7,0x000000aa,
0x0003003e,0x00000084,0x000000ab,0x000200f9,0x00000083,0x000200f8,0x00000083,0x0003003e,
0x000000ae,0x000000af,0x0004003d,0x00000006,0x000000b1,0x00000045,0x00050041,0x00000025,
0x000000b2,0x00000023,0x00000041,0x0004003d,0x00000006,0x000000b3,0x000000b2,0x00050084,
0x00000006,0x000000b4,0x000000b1,0x000000b3,0x0004003d,0x00000006,0x000000b5,0x00000039,
0x00050080,0x00000006,0x000000b6,0x000000b4,0x000000b5,0x00050041,0x00000025,0x000000b7,
0x00000023,0x0000006a,0x0004003d,0x00000006,0x000000b8,0x000000b7,0x00050084,0x00000006,
0x000000b9,0x000000b6,0x000000b8,0x00050041,0x00000025,0x000000ba,0x00000023,0x00000077,
0x0004003d,0x00000006,0x000000bb,0x000000ba,0x00050084,0x00000006,0x000000bc,0x000000b9,
0x000000bb,0x0003003e,0x000000b0,0x000000bc,0x0004003d,0x00000006,0x000000be,0x00000050,
0x0003003e,0x000000bd,0x000000be,0x000200f9,0x000000bf,0x000200f8,0x000000bf,0x000400f6,
0x000000c1,0x000000c2,0x00000000,0x000200f9,0x000000c3,0x000200f8,0x000000c3,0x0004003d,
0x00000006,0x000000c4,0x000000bd,0x0004003d,0x00000006,0x000000c5,0x00000064,0x000500b1,
0x00000028,0x000000c6,0x000000c4,0x000000c5,0x000400fa,0x000000c6,0x000000c0,0x000000c1,
0x000200f8,0x000000c0,0x0004003d,0x00000006,0x000000c8,0x0000005a,0x0003003e,0x000000c7,
0x000000c8,0x000200f9,0x000000c9,0x000200f8,0x000000c9,0x000400f6,0x000000cb,0x000000cc,
0x00000000,0x000200f9,0x000000cd,0x000200f8,0x000000cd,0x0004003d,0x00000006,0x000000ce,
0x000000c7,0x0004003d,0x00000006,0x000000cf,0x00000071,0x000500b1,0x00000028,0x000000d0,
0x000000ce,0x000000cf,0x000400fa,0x000000d0,0x000000ca,0x000000cb,0x000200f8,0x000000ca,
0x0004003d,0x00000006,0x000000d5,0x000000b0,0x0004003d,0x00000006,0x000000d6,0x000000bd,
0x00050041,0x00000025,0x000000d7,0x00000023,0x00000077,0x0004003d,0x00000006,0x000000d8,
0x000000d7,0x00050084,0x00000006,0x000000d9,0x000000d6,0x000000d8,0x00050080,0x00000006,
0x000000da,0x000000d5,0x000000d9,0x0004003d,0x00000006,0x000000db,0x000000c7,0x00050080,
0x00000006,0x000000dc,0x000000da,0x000000db,0x00060041,0x000000dd,0x000000de,0x000000d4,
0x00000041,0x000000dc,0x0004003d,0x000000ac,0x000000df,0x000000de,0x0004003d,0x000000ac,
0x000000e0,0x000000ae,0x00050081,0x000000ac,0x000000e1,0x000000e0,0x000000df,0x0003003e,
0x000000ae,0x000000e1,0x000200f9,0x000000cc,0x000200f8,0x000000cc,0x0004003d,0x00000006,
0x000000e2,0x000000c7,0x00050080,0x00000006,0x000000e3,0x000000e2,0x0000006a,0x0003003e,
0x000000c7,0x000000e3,0x000200f9,0x000000c9,0x000200f8,0x000000cb,0x000200f9,0x000000c2,
0x000200f8,0x000000c2,0x0004003d,0x00000006,0x000000e4,0x000000bd,0x00050080,0x00000006,
0x000000e5,0x000000e4,0x0000006a,0x0003003e,0x000000bd,0x000000e5,0x000200f9,0x000000bf,
0x000200f8,0x000000c1,0x0004003d,0x00000006,0x000000ea,0x00000019,0x0004003d,0x000000ac,
0x000000eb,0x000000ae,0x0004003d,0x00000006,0x000000ec,0x00000084,0x0004006f,0x000000ac,
0x000000ed,0x000000ec,0x00050088,0x000000ac,0x000000ee,0x000000eb,0x000000ed,0x00060041,
0x000000dd,0x000000ef,0x000000e9,0x00000041,0x000000ea,0x0003003e,0x000000ef,0x000000ee,
0x000200f9,0x0000001e,0x000200f8,0x0000001e,0x0004003d,0x00000006,0x000000f0,0x00000008,
0x0004003d,0x00000006,0x000000f1,0x00000019,0x00050080,0x00000006,0x000000f2,0x000000f1,
0x000000f0,0x0003003e,0x00000019,0x000000f2,0x000200f9,0x0000001b,0x000200f8,0x0000001d,
0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,29 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(push_constant) uniform pushBlock {
int out_concat_axis;
int accumulated_concat_axis;
int concat_size;
int total_concat_size;
int thread_num;
} p;
layout(binding = 0) readonly buffer Input0{
float data[];
} src;
layout(binding = 1) writeonly buffer Output{
float data[];
} dst;
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
int index = int(gl_GlobalInvocationID.x);
if (index < p.thread_num)
{
int concat_num = index / p.total_concat_size;
int concat_index = index % p.total_concat_size;
int out_index = concat_index + (concat_num * p.out_concat_axis + p.accumulated_concat_axis) * p.concat_size;
dst.data[out_index] = src.data[index];
}
}

View File

@ -1,83 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int concat_spv[541] = {
0x07230203,0x00010000,0x00080001,0x0000004b,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00040005,0x00000008,0x65646e69,0x00000078,0x00080005,
0x0000000c,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00050005,
0x00000013,0x68737570,0x636f6c42,0x0000006b,0x00070006,0x00000013,0x00000000,0x5f74756f,
0x636e6f63,0x615f7461,0x00736978,0x00090006,0x00000013,0x00000001,0x75636361,0x616c756d,
0x5f646574,0x636e6f63,0x615f7461,0x00736978,0x00060006,0x00000013,0x00000002,0x636e6f63,
0x735f7461,0x00657a69,0x00080006,0x00000013,0x00000003,0x61746f74,0x6f635f6c,0x7461636e,
0x7a69735f,0x00000065,0x00060006,0x00000013,0x00000004,0x65726874,0x6e5f6461,0x00006d75,
0x00030005,0x00000015,0x00000070,0x00050005,0x0000001e,0x636e6f63,0x6e5f7461,0x00006d75,
0x00060005,0x00000024,0x636e6f63,0x695f7461,0x7865646e,0x00000000,0x00050005,0x00000029,
0x5f74756f,0x65646e69,0x00000078,0x00040005,0x0000003b,0x7074754f,0x00007475,0x00050006,
0x0000003b,0x00000000,0x61746164,0x00000000,0x00030005,0x0000003d,0x00747364,0x00040005,
0x00000040,0x75706e49,0x00003074,0x00050006,0x00000040,0x00000000,0x61746164,0x00000000,
0x00030005,0x00000042,0x00637273,0x00040047,0x0000000c,0x0000000b,0x0000001c,0x00050048,
0x00000013,0x00000000,0x00000023,0x00000000,0x00050048,0x00000013,0x00000001,0x00000023,
0x00000004,0x00050048,0x00000013,0x00000002,0x00000023,0x00000008,0x00050048,0x00000013,
0x00000003,0x00000023,0x0000000c,0x00050048,0x00000013,0x00000004,0x00000023,0x00000010,
0x00030047,0x00000013,0x00000002,0x00040047,0x0000003a,0x00000006,0x00000004,0x00040048,
0x0000003b,0x00000000,0x00000019,0x00050048,0x0000003b,0x00000000,0x00000023,0x00000000,
0x00030047,0x0000003b,0x00000003,0x00040047,0x0000003d,0x00000022,0x00000000,0x00040047,
0x0000003d,0x00000021,0x00000001,0x00040047,0x0000003f,0x00000006,0x00000004,0x00040048,
0x00000040,0x00000000,0x00000018,0x00050048,0x00000040,0x00000000,0x00000023,0x00000000,
0x00030047,0x00000040,0x00000003,0x00040047,0x00000042,0x00000022,0x00000000,0x00040047,
0x00000042,0x00000021,0x00000000,0x00040047,0x0000004a,0x0000000b,0x00000019,0x00020013,
0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,
0x00040020,0x00000007,0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,0x00000000,
0x00040017,0x0000000a,0x00000009,0x00000003,0x00040020,0x0000000b,0x00000001,0x0000000a,
0x0004003b,0x0000000b,0x0000000c,0x00000001,0x0004002b,0x00000009,0x0000000d,0x00000000,
0x00040020,0x0000000e,0x00000001,0x00000009,0x0007001e,0x00000013,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00040020,0x00000014,0x00000009,0x00000013,0x0004003b,
0x00000014,0x00000015,0x00000009,0x0004002b,0x00000006,0x00000016,0x00000004,0x00040020,
0x00000017,0x00000009,0x00000006,0x00020014,0x0000001a,0x0004002b,0x00000006,0x00000020,
0x00000003,0x0004002b,0x00000006,0x0000002c,0x00000000,0x0004002b,0x00000006,0x00000030,
0x00000001,0x0004002b,0x00000006,0x00000034,0x00000002,0x00030016,0x00000039,0x00000020,
0x0003001d,0x0000003a,0x00000039,0x0003001e,0x0000003b,0x0000003a,0x00040020,0x0000003c,
0x00000002,0x0000003b,0x0004003b,0x0000003c,0x0000003d,0x00000002,0x0003001d,0x0000003f,
0x00000039,0x0003001e,0x00000040,0x0000003f,0x00040020,0x00000041,0x00000002,0x00000040,
0x0004003b,0x00000041,0x00000042,0x00000002,0x00040020,0x00000044,0x00000002,0x00000039,
0x0004002b,0x00000009,0x00000048,0x00000100,0x0004002b,0x00000009,0x00000049,0x00000001,
0x0006002c,0x0000000a,0x0000004a,0x00000048,0x00000049,0x00000049,0x00050036,0x00000002,
0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,
0x00000007,0x0004003b,0x00000007,0x0000001e,0x00000007,0x0004003b,0x00000007,0x00000024,
0x00000007,0x0004003b,0x00000007,0x00000029,0x00000007,0x00050041,0x0000000e,0x0000000f,
0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,0x0000000f,0x0004007c,0x00000006,
0x00000011,0x00000010,0x0003003e,0x00000008,0x00000011,0x0004003d,0x00000006,0x00000012,
0x00000008,0x00050041,0x00000017,0x00000018,0x00000015,0x00000016,0x0004003d,0x00000006,
0x00000019,0x00000018,0x000500b1,0x0000001a,0x0000001b,0x00000012,0x00000019,0x000300f7,
0x0000001d,0x00000000,0x000400fa,0x0000001b,0x0000001c,0x0000001d,0x000200f8,0x0000001c,
0x0004003d,0x00000006,0x0000001f,0x00000008,0x00050041,0x00000017,0x00000021,0x00000015,
0x00000020,0x0004003d,0x00000006,0x00000022,0x00000021,0x00050087,0x00000006,0x00000023,
0x0000001f,0x00000022,0x0003003e,0x0000001e,0x00000023,0x0004003d,0x00000006,0x00000025,
0x00000008,0x00050041,0x00000017,0x00000026,0x00000015,0x00000020,0x0004003d,0x00000006,
0x00000027,0x00000026,0x0005008b,0x00000006,0x00000028,0x00000025,0x00000027,0x0003003e,
0x00000024,0x00000028,0x0004003d,0x00000006,0x0000002a,0x00000024,0x0004003d,0x00000006,
0x0000002b,0x0000001e,0x00050041,0x00000017,0x0000002d,0x00000015,0x0000002c,0x0004003d,
0x00000006,0x0000002e,0x0000002d,0x00050084,0x00000006,0x0000002f,0x0000002b,0x0000002e,
0x00050041,0x00000017,0x00000031,0x00000015,0x00000030,0x0004003d,0x00000006,0x00000032,
0x00000031,0x00050080,0x00000006,0x00000033,0x0000002f,0x00000032,0x00050041,0x00000017,
0x00000035,0x00000015,0x00000034,0x0004003d,0x00000006,0x00000036,0x00000035,0x00050084,
0x00000006,0x00000037,0x00000033,0x00000036,0x00050080,0x00000006,0x00000038,0x0000002a,
0x00000037,0x0003003e,0x00000029,0x00000038,0x0004003d,0x00000006,0x0000003e,0x00000029,
0x0004003d,0x00000006,0x00000043,0x00000008,0x00060041,0x00000044,0x00000045,0x00000042,
0x0000002c,0x00000043,0x0004003d,0x00000039,0x00000046,0x00000045,0x00060041,0x00000044,
0x00000047,0x0000003d,0x0000002c,0x0000003e,0x0003003e,0x00000047,0x00000046,0x000200f9,
0x0000001d,0x000200f8,0x0000001d,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,76 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(binding = 0) readonly buffer Input0{
float image_data[];
};
layout(binding = 1) readonly buffer Input1 {
float bias_data[];
};
layout(binding = 2) readonly buffer Input3{
float weight_data[];
};
layout(binding = 3) writeonly buffer Output{
float convolved_image_data[];
};
layout(push_constant) uniform pushBlock {
int in_h;
int in_w;
int out_h;
int out_w;
int stride_h;
int stride_w;
int pad_h;
int pad_w;
int filter_h;
int filter_w;
int dilation_h;
int dilation_w;
int channels;
int batch;
int has_bias;
int M;
int K;
int N;
int basic_shader_batch_idx;
int basic_shader_partition_idx;
int basic_shader_partition_size;
} p;
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
int gx = int(gl_GlobalInvocationID.x);
int gy = int(gl_GlobalInvocationID.y) + p.basic_shader_partition_idx * p.basic_shader_partition_size;
int gz = p.basic_shader_batch_idx;
if(gx < p.M && gy < p.N)
{
float sum = 0.0f;
int output_y = gx / p.out_w;
int output_x = gx % p.out_w;
int org_y = output_y * p.stride_h - p.pad_h;
int org_x = output_x * p.stride_w - p.pad_w;
int weight_off = gy * p.K;
int input_off = gz * p.in_h * p.in_w * p.channels + (org_y * p.in_w + org_x);
for(int c = 0; c < p.channels; c++)
{
for(int y = 0; y < p.filter_h; y++)
{
for(int x = 0; x < p.filter_w; x++)
{
if((org_y + y * p.dilation_h >= 0) && (org_y + y * p.dilation_h < p.in_h) && (org_x + x * p.dilation_w >= 0) && (org_x + x * p.dilation_w < p.in_w))
{
sum += image_data[input_off + x * p.dilation_w] * weight_data[weight_off + x];
}
}
input_off += p.in_w * p.dilation_h;
weight_off += p.filter_w;
}
input_off += p.in_h * p.in_w - p.in_w * p.filter_h * p.dilation_h;
}
int offset = gz * p.M * p.N + gx + gy * p.M;
if (p.has_bias == 1)
sum += bias_data[gy];
convolved_image_data[offset] = sum;
}
}

View File

@ -1,140 +0,0 @@
#version 450
layout (constant_id = 0) const int LOCAL_SZ_X = 0;
layout (constant_id = 1) const int LOCAL_SZ_Y = 0;
layout (constant_id = 2) const int LOCAL_SZ_Z = 0;
layout (constant_id = 3) const int IN_H = 0;
layout (constant_id = 4) const int IN_W = 0;
layout (constant_id = 5) const int OUT_W = 0;
layout (constant_id = 6) const int STRIDE_H = 0;
layout (constant_id = 7) const int STRIDE_W = 0;
layout (constant_id = 8) const int PAD_H = 0;
layout (constant_id = 9) const int PAD_W = 0;
layout (constant_id = 10) const int FILTER_H = 0;
layout (constant_id = 11) const int FILTER_W = 0;
layout (constant_id = 12) const int CHANNELS = 0;
layout (constant_id = 13) const int BATCH = 0;
layout (constant_id = 14) const int M = 0;
layout (constant_id = 15) const int K = 0;
layout (constant_id = 16) const int N = 0;
layout (constant_id = 17) const int TAIL_M = 0;
layout (constant_id = 18) const int DILATION_H = 0;
layout (constant_id = 19) const int DILATION_W = 0;
#if defined(ACTIVATION_RELU)
#define ACTIVATION_FUNCTION(x) clamp(x, vec4(0.0), vec4(999999999.0))
#elif defined(ACTIVATION_RELU1)
#define ACTIVATION_FUNCTION(x) clamp(x, vec4(-1.0), vec4(1.0))
#elif defined(ACTIVATION_RELU6)
#define ACTIVATION_FUNCTION(x) clamp(x, vec4(0.0), vec4(6.0))
#else
#define ACTIVATION_FUNCTION(x) (x)
#endif
layout(binding = 0) readonly buffer Input0{
float data[];
} src0;
layout(binding = 1) readonly buffer Input1 {
vec4 data[];
} bias;
layout(binding = 2) readonly buffer Input3{
vec4 data[];
} src1;
layout(binding = 3) writeonly buffer Output{
vec4 data[];
} out0;
layout(local_size_x_id = 0, local_size_y_id = 1, local_size_z_id = 2) in;
#define VEC_SIZE 4
#define BLOCK_H 4
#define BLOCK_W 8
#define FILTER_AREA (FILTER_H * FILTER_W)
#define LOAD_A(elm_idx, a_component) \
src0_x = org_x + ((i * VEC_SIZE + elm_idx) % FILTER_W) * DILATION_W; \
src0_y = org_y + (((i * VEC_SIZE + elm_idx) % FILTER_AREA) / FILTER_W) * DILATION_H; \
src0_z = (i * VEC_SIZE + elm_idx) / FILTER_AREA; \
if(src0_y >= 0 && src0_y < IN_H && src0_x >= 0 && src0_x < IN_W) \
{ \
a_component = src0.data[input_batch_offset + src0_z * (IN_H * IN_W) + src0_y * IN_W + src0_x]; \
}
#define A_MULTIPLY_BTILE(a, sliver_num, comp) \
dst_x = (out_y + sliver_num) % OUT_W; \
dst_y = (out_y + sliver_num) / OUT_W; \
org_y = dst_y * STRIDE_H - PAD_H; \
org_x = dst_x * STRIDE_W - PAD_W; \
LOAD_A(0, a.x); \
LOAD_A(1, a.y); \
LOAD_A(2, a.z); \
LOAD_A(3, a.w); \
dot0.comp += dot(brow0, a); \
dot1.comp += dot(brow1, a); \
dot2.comp += dot(brow2, a); \
dot3.comp += dot(brow3, a); \
dot4.comp += dot(brow4, a); \
dot5.comp += dot(brow5, a); \
dot6.comp += dot(brow6, a); \
dot7.comp += dot(brow7, a);
void main()
{
int gx = int(gl_GlobalInvocationID.x);
int gy = int(gl_GlobalInvocationID.y);
int gz = int(gl_GlobalInvocationID.z);
int out_x = BLOCK_W * gx;
int out_y = BLOCK_H * gy;
int input_batch_offset = gz * IN_H * IN_W * CHANNELS;
int output_batch_offset = gz * M * N / VEC_SIZE;
if (out_x < N && gy < M / BLOCK_H)
{
int width0 = K / VEC_SIZE;
int width1 = N / VEC_SIZE;
int src1_read0_offset = out_x * width0;
vec4 dot0 = vec4(0.f);
vec4 dot1 = vec4(0.f);
vec4 dot2 = vec4(0.f);
vec4 dot3 = vec4(0.f);
vec4 dot4 = vec4(0.f);
vec4 dot5 = vec4(0.f);
vec4 dot6 = vec4(0.f);
vec4 dot7 = vec4(0.f);
int i = 0;
do
{
int dst_x, dst_y, org_x, org_y, src0_x, src0_y, src0_z;
vec4 a0 = vec4(0.f), a1 = vec4(0.f), a2 = vec4(0.f), a3 = vec4(0.f);
vec4 brow0 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow1 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow2 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow3 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow4 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow5 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow6 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow7 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
src1_read0_offset += 1 - BLOCK_W * width0;
A_MULTIPLY_BTILE(a0, 0, x);
A_MULTIPLY_BTILE(a1, 1, y);
A_MULTIPLY_BTILE(a2, 2, z);
A_MULTIPLY_BTILE(a3, 3, w);
i++;
}
while( i < width0 );
vec4 bias_val;
bias_val = bias.data[2 * int(gl_GlobalInvocationID.x)];
dot0 += bias_val.xxxx; dot1 += bias_val.yyyy; dot2 += bias_val.zzzz; dot3 += bias_val.wwww;
bias_val = bias.data[2 * int(gl_GlobalInvocationID.x) + 1];
dot4 += bias_val.xxxx; dot5 += bias_val.yyyy; dot6 += bias_val.zzzz; dot7 += bias_val.wwww;
out0.data[output_batch_offset + (out_x + 0) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot0);
out0.data[output_batch_offset + (out_x + 1) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot1);
out0.data[output_batch_offset + (out_x + 2) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot2);
out0.data[output_batch_offset + (out_x + 3) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot3);
out0.data[output_batch_offset + (out_x + 4) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot4);
out0.data[output_batch_offset + (out_x + 5) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot5);
out0.data[output_batch_offset + (out_x + 6) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot6);
out0.data[output_batch_offset + (out_x + 7) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot7);
}
}

View File

@ -1,134 +0,0 @@
#version 450
layout (constant_id = 0) const int LOCAL_SZ_X = 0;
layout (constant_id = 1) const int LOCAL_SZ_Y = 0;
layout (constant_id = 2) const int LOCAL_SZ_Z = 0;
layout (constant_id = 3) const int IN_H = 0;
layout (constant_id = 4) const int IN_W = 0;
layout (constant_id = 5) const int OUT_W = 0;
layout (constant_id = 6) const int STRIDE_H = 0;
layout (constant_id = 7) const int STRIDE_W = 0;
layout (constant_id = 8) const int PAD_H = 0;
layout (constant_id = 9) const int PAD_W = 0;
layout (constant_id = 10) const int FILTER_H = 0;
layout (constant_id = 11) const int FILTER_W = 0;
layout (constant_id = 12) const int CHANNELS = 0;
layout (constant_id = 13) const int BATCH = 0;
layout (constant_id = 14) const int M = 0;
layout (constant_id = 15) const int K = 0;
layout (constant_id = 16) const int N = 0;
layout (constant_id = 17) const int TAIL_M = 0;
layout (constant_id = 18) const int DILATION_H = 0;
layout (constant_id = 19) const int DILATION_W = 0;
#if defined(ACTIVATION_RELU)
#define ACTIVATION_FUNCTION(x) clamp(x, vec4(0.0), vec4(999999999.0))
#elif defined(ACTIVATION_RELU1)
#define ACTIVATION_FUNCTION(x) clamp(x, vec4(-1.0), vec4(1.0))
#elif defined(ACTIVATION_RELU6)
#define ACTIVATION_FUNCTION(x) clamp(x, vec4(0.0), vec4(6.0))
#else
#define ACTIVATION_FUNCTION(x) (x)
#endif
layout(binding = 0) readonly buffer Input0{
float data[];
} src0;
layout(binding = 1) readonly buffer Input1 {
vec4 data[];
} bias;
layout(binding = 2) readonly buffer Input3{
vec4 data[];
} src1;
layout(binding = 3) writeonly buffer Output{
vec4 data[];
} out0;
layout(local_size_x_id = 0, local_size_y_id = 1, local_size_z_id = 2) in;
#define VEC_SIZE 4
#define BLOCK_H 4
#define BLOCK_W 8
#define FILTER_AREA (FILTER_H * FILTER_W)
#define LOAD_A(elm_idx, a_component) \
src0_x = org_x + ((i * VEC_SIZE + elm_idx) % FILTER_W) * DILATION_W; \
src0_y = org_y + (((i * VEC_SIZE + elm_idx) % FILTER_AREA) / FILTER_W) * DILATION_H; \
src0_z = (i * VEC_SIZE + elm_idx) / FILTER_AREA; \
if(src0_y >= 0 && src0_y < IN_H && src0_x >= 0 && src0_x < IN_W) \
{ \
a_component = src0.data[input_batch_offset + src0_z * (IN_H * IN_W) + src0_y * IN_W + src0_x]; \
}
#define A_MULTIPLY_BTILE(a, sliver_num, comp) \
dst_x = (out_y + sliver_num) % OUT_W; \
dst_y = (out_y + sliver_num) / OUT_W; \
org_y = dst_y * STRIDE_H - PAD_H; \
org_x = dst_x * STRIDE_W - PAD_W; \
LOAD_A(0, a.x); \
LOAD_A(1, a.y); \
LOAD_A(2, a.z); \
LOAD_A(3, a.w); \
dot0.comp += dot(brow0, a); \
dot1.comp += dot(brow1, a); \
dot2.comp += dot(brow2, a); \
dot3.comp += dot(brow3, a); \
dot4.comp += dot(brow4, a); \
dot5.comp += dot(brow5, a); \
dot6.comp += dot(brow6, a); \
dot7.comp += dot(brow7, a);
void main()
{
int gx = int(gl_GlobalInvocationID.x);
int gy = int(gl_GlobalInvocationID.y);
int gz = int(gl_GlobalInvocationID.z);
int out_x = BLOCK_W * gx;
int out_y = BLOCK_H * gy;
int input_batch_offset = gz * IN_H * IN_W * CHANNELS;
int output_batch_offset = gz * M * N / VEC_SIZE;
if (out_x < N && gy < M / BLOCK_H)
{
int width0 = K / VEC_SIZE;
int width1 = N / VEC_SIZE;
int src1_read0_offset = out_x * width0;
vec4 dot0 = vec4(0.f);
vec4 dot1 = vec4(0.f);
vec4 dot2 = vec4(0.f);
vec4 dot3 = vec4(0.f);
vec4 dot4 = vec4(0.f);
vec4 dot5 = vec4(0.f);
vec4 dot6 = vec4(0.f);
vec4 dot7 = vec4(0.f);
int i = 0;
do
{
int dst_x, dst_y, org_x, org_y, src0_x, src0_y, src0_z;
vec4 a0 = vec4(0.f), a1 = vec4(0.f), a2 = vec4(0.f), a3 = vec4(0.f);
vec4 brow0 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow1 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow2 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow3 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow4 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow5 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow6 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
vec4 brow7 = src1.data[src1_read0_offset]; src1_read0_offset += width0;
src1_read0_offset += 1 - BLOCK_W * width0;
A_MULTIPLY_BTILE(a0, 0, x);
A_MULTIPLY_BTILE(a1, 1, y);
A_MULTIPLY_BTILE(a2, 2, z);
A_MULTIPLY_BTILE(a3, 3, w);
i++;
}
while( i < width0 );
out0.data[output_batch_offset + (out_x + 0) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot0);
out0.data[output_batch_offset + (out_x + 1) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot1);
out0.data[output_batch_offset + (out_x + 2) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot2);
out0.data[output_batch_offset + (out_x + 3) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot3);
out0.data[output_batch_offset + (out_x + 4) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot4);
out0.data[output_batch_offset + (out_x + 5) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot5);
out0.data[output_batch_offset + (out_x + 6) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot6);
out0.data[output_batch_offset + (out_x + 7) * M / VEC_SIZE + gy] = ACTIVATION_FUNCTION(dot7);
}
}

View File

@ -1,913 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int conv48_nobias_spv[7182] = {
0x07230203,0x00010000,0x0008000a,0x00000523,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000001,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00007867,0x00080005,0x0000000c,
0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00030005,0x00000012,
0x00007967,0x00030005,0x00000017,0x00007a67,0x00040005,0x0000001c,0x5f74756f,0x00000078,
0x00040005,0x00000020,0x5f74756f,0x00000079,0x00070005,0x00000024,0x75706e69,0x61625f74,
0x5f686374,0x7366666f,0x00007465,0x00040005,0x00000026,0x485f4e49,0x00000000,0x00040005,
0x00000028,0x575f4e49,0x00000000,0x00050005,0x0000002a,0x4e414843,0x534c454e,0x00000000,
0x00070005,0x0000002c,0x7074756f,0x625f7475,0x68637461,0x66666f5f,0x00746573,0x00030005,
0x0000002e,0x0000004d,0x00030005,0x00000030,0x0000004e,0x00040005,0x0000003e,0x74646977,
0x00003068,0x00030005,0x0000003f,0x0000004b,0x00040005,0x00000041,0x74646977,0x00003168,
0x00070005,0x00000043,0x31637273,0x6165725f,0x6f5f3064,0x65736666,0x00000074,0x00040005,
0x0000004a,0x30746f64,0x00000000,0x00040005,0x0000004d,0x31746f64,0x00000000,0x00040005,
0x0000004e,0x32746f64,0x00000000,0x00040005,0x0000004f,0x33746f64,0x00000000,0x00040005,
0x00000050,0x34746f64,0x00000000,0x00040005,0x00000051,0x35746f64,0x00000000,0x00040005,
0x00000052,0x36746f64,0x00000000,0x00040005,0x00000053,0x37746f64,0x00000000,0x00030005,
0x00000054,0x00000069,0x00030005,0x0000005a,0x00003061,0x00030005,0x0000005b,0x00003161,
0x00030005,0x0000005c,0x00003261,0x00030005,0x0000005d,0x00003361,0x00040005,0x0000005e,
0x776f7262,0x00000030,0x00040005,0x00000060,0x75706e49,0x00003374,0x00050006,0x00000060,
0x00000000,0x61746164,0x00000000,0x00040005,0x00000062,0x31637273,0x00000000,0x00040005,
0x0000006a,0x776f7262,0x00000031,0x00040005,0x00000071,0x776f7262,0x00000032,0x00040005,
0x00000078,0x776f7262,0x00000033,0x00040005,0x0000007f,0x776f7262,0x00000034,0x00040005,
0x00000086,0x776f7262,0x00000035,0x00040005,0x0000008d,0x776f7262,0x00000036,0x00040005,
0x00000094,0x776f7262,0x00000037,0x00040005,0x000000a1,0x5f747364,0x00000078,0x00040005,
0x000000a4,0x5f54554f,0x00000057,0x00040005,0x000000a6,0x5f747364,0x00000079,0x00040005,
0x000000aa,0x5f67726f,0x00000079,0x00050005,0x000000ac,0x49525453,0x485f4544,0x00000000,
0x00040005,0x000000ae,0x5f444150,0x00000048,0x00040005,0x000000b0,0x5f67726f,0x00000078,
0x00050005,0x000000b2,0x49525453,0x575f4544,0x00000000,0x00040005,0x000000b4,0x5f444150,
0x00000057,0x00040005,0x000000b6,0x30637273,0x0000785f,0x00050005,0x000000bb,0x544c4946,
0x575f5245,0x00000000,0x00050005,0x000000bd,0x414c4944,0x4e4f4954,0x0000575f,0x00040005,
0x000000c0,0x30637273,0x0000795f,0x00050005,0x000000c5,0x544c4946,0x485f5245,0x00000000,
0x00050005,0x000000c9,0x414c4944,0x4e4f4954,0x0000485f,0x00040005,0x000000cc,0x30637273,
0x00007a5f,0x00040005,0x000000e0,0x75706e49,0x00003074,0x00050006,0x000000e0,0x00000000,
0x61746164,0x00000000,0x00040005,0x000000e2,0x30637273,0x00000000,0x00040005,0x000004c0,
0x7074754f,0x00007475,0x00050006,0x000004c0,0x00000000,0x61746164,0x00000000,0x00040005,
0x000004c2,0x3074756f,0x00000000,0x00050005,0x00000516,0x41434f4c,0x5a535f4c,0x0000585f,
0x00050005,0x00000517,0x41434f4c,0x5a535f4c,0x0000595f,0x00050005,0x00000518,0x41434f4c,
0x5a535f4c,0x00005a5f,0x00040005,0x00000519,0x43544142,0x00000048,0x00040005,0x0000051a,
0x4c494154,0x00004d5f,0x00040005,0x0000051c,0x75706e49,0x00003174,0x00050006,0x0000051c,
0x00000000,0x61746164,0x00000000,0x00040005,0x0000051e,0x73616962,0x00000000,0x00040047,
0x0000000c,0x0000000b,0x0000001c,0x00040047,0x00000026,0x00000001,0x00000003,0x00040047,
0x00000028,0x00000001,0x00000004,0x00040047,0x0000002a,0x00000001,0x0000000c,0x00040047,
0x0000002e,0x00000001,0x0000000e,0x00040047,0x00000030,0x00000001,0x00000010,0x00040047,
0x0000003f,0x00000001,0x0000000f,0x00040047,0x0000005f,0x00000006,0x00000010,0x00040048,
0x00000060,0x00000000,0x00000018,0x00050048,0x00000060,0x00000000,0x00000023,0x00000000,
0x00030047,0x00000060,0x00000003,0x00040047,0x00000062,0x00000022,0x00000000,0x00040047,
0x00000062,0x00000021,0x00000002,0x00040047,0x000000a4,0x00000001,0x00000005,0x00040047,
0x000000ac,0x00000001,0x00000006,0x00040047,0x000000ae,0x00000001,0x00000008,0x00040047,
0x000000b2,0x00000001,0x00000007,0x00040047,0x000000b4,0x00000001,0x00000009,0x00040047,
0x000000bb,0x00000001,0x0000000b,0x00040047,0x000000bd,0x00000001,0x00000013,0x00040047,
0x000000c5,0x00000001,0x0000000a,0x00040047,0x000000c9,0x00000001,0x00000012,0x00040047,
0x000000df,0x00000006,0x00000004,0x00040048,0x000000e0,0x00000000,0x00000018,0x00050048,
0x000000e0,0x00000000,0x00000023,0x00000000,0x00030047,0x000000e0,0x00000003,0x00040047,
0x000000e2,0x00000022,0x00000000,0x00040047,0x000000e2,0x00000021,0x00000000,0x00040047,
0x000004bf,0x00000006,0x00000010,0x00040048,0x000004c0,0x00000000,0x00000019,0x00050048,
0x000004c0,0x00000000,0x00000023,0x00000000,0x00030047,0x000004c0,0x00000003,0x00040047,
0x000004c2,0x00000022,0x00000000,0x00040047,0x000004c2,0x00000021,0x00000003,0x00040047,
0x00000516,0x00000001,0x00000000,0x00040047,0x00000517,0x00000001,0x00000001,0x00040047,
0x00000518,0x00000001,0x00000002,0x00040047,0x00000519,0x00000001,0x0000000d,0x00040047,
0x0000051a,0x00000001,0x00000011,0x00040047,0x0000051b,0x00000006,0x00000010,0x00040048,
0x0000051c,0x00000000,0x00000018,0x00050048,0x0000051c,0x00000000,0x00000023,0x00000000,
0x00030047,0x0000051c,0x00000003,0x00040047,0x0000051e,0x00000022,0x00000000,0x00040047,
0x0000051e,0x00000021,0x00000001,0x00040047,0x0000051f,0x00000001,0x00000000,0x00040047,
0x00000520,0x00000001,0x00000001,0x00040047,0x00000521,0x00000001,0x00000002,0x00040047,
0x00000522,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,
0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,
0x00040015,0x00000009,0x00000020,0x00000000,0x00040017,0x0000000a,0x00000009,0x00000003,
0x00040020,0x0000000b,0x00000001,0x0000000a,0x0004003b,0x0000000b,0x0000000c,0x00000001,
0x0004002b,0x00000009,0x0000000d,0x00000000,0x00040020,0x0000000e,0x00000001,0x00000009,
0x0004002b,0x00000009,0x00000013,0x00000001,0x0004002b,0x00000009,0x00000018,0x00000002,
0x0004002b,0x00000006,0x0000001d,0x00000008,0x0004002b,0x00000006,0x00000021,0x00000004,
0x00040032,0x00000006,0x00000026,0x00000000,0x00040032,0x00000006,0x00000028,0x00000000,
0x00040032,0x00000006,0x0000002a,0x00000000,0x00040032,0x00000006,0x0000002e,0x00000000,
0x00040032,0x00000006,0x00000030,0x00000000,0x00020014,0x00000033,0x00060034,0x00000006,
0x00000039,0x00000087,0x0000002e,0x00000021,0x00040032,0x00000006,0x0000003f,0x00000000,
0x00060034,0x00000006,0x00000040,0x00000087,0x0000003f,0x00000021,0x00060034,0x00000006,
0x00000042,0x00000087,0x00000030,0x00000021,0x00030016,0x00000047,0x00000020,0x00040017,
0x00000048,0x00000047,0x00000004,0x00040020,0x00000049,0x00000007,0x00000048,0x0004002b,
0x00000047,0x0000004b,0x00000000,0x0007002c,0x00000048,0x0000004c,0x0000004b,0x0000004b,
0x0000004b,0x0000004b,0x0004002b,0x00000006,0x00000055,0x00000000,0x0003001d,0x0000005f,
0x00000048,0x0003001e,0x00000060,0x0000005f,0x00040020,0x00000061,0x00000002,0x00000060,
0x0004003b,0x00000061,0x00000062,0x00000002,0x00040020,0x00000064,0x00000002,0x00000048,
0x0004002b,0x00000006,0x0000009b,0x00000001,0x00040032,0x00000006,0x000000a4,0x00000000,
0x00040032,0x00000006,0x000000ac,0x00000000,0x00040032,0x00000006,0x000000ae,0x00000000,
0x00040032,0x00000006,0x000000b2,0x00000000,0x00040032,0x00000006,0x000000b4,0x00000000,
0x00040032,0x00000006,0x000000bb,0x00000000,0x00040032,0x00000006,0x000000bd,0x00000000,
0x00040032,0x00000006,0x000000c5,0x00000000,0x00060034,0x00000006,0x000000c6,0x00000084,
0x000000c5,0x000000bb,0x00040032,0x00000006,0x000000c9,0x00000000,0x00060034,0x00000006,
0x000000d0,0x00000084,0x000000c5,0x000000bb,0x0003001d,0x000000df,0x00000047,0x0003001e,
0x000000e0,0x000000df,0x00040020,0x000000e1,0x00000002,0x000000e0,0x0004003b,0x000000e1,
0x000000e2,0x00000002,0x00060034,0x00000006,0x000000e5,0x00000084,0x00000026,0x00000028,
0x00040020,0x000000ed,0x00000002,0x00000047,0x00040020,0x000000f0,0x00000007,0x00000047,
0x00060034,0x00000006,0x000000fd,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,
0x00000105,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000116,0x00000084,
0x00000026,0x00000028,0x0004002b,0x00000006,0x00000124,0x00000002,0x00060034,0x00000006,
0x0000012d,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000135,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000146,0x00000084,0x00000026,0x00000028,
0x0004002b,0x00000006,0x00000154,0x00000003,0x00060034,0x00000006,0x0000015d,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000165,0x00000084,0x000000c5,0x000000bb,
0x00060034,0x00000006,0x00000176,0x00000084,0x00000026,0x00000028,0x0004002b,0x00000009,
0x00000180,0x00000003,0x00060034,0x00000006,0x000001d1,0x00000084,0x000000c5,0x000000bb,
0x00060034,0x00000006,0x000001d9,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,
0x000001ea,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x00000200,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000208,0x00000084,0x000000c5,0x000000bb,
0x00060034,0x00000006,0x00000219,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,
0x0000022f,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000237,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000248,0x00000084,0x00000026,0x00000028,
0x00060034,0x00000006,0x0000025e,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,
0x00000266,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000277,0x00000084,
0x00000026,0x00000028,0x00060034,0x00000006,0x000002d1,0x00000084,0x000000c5,0x000000bb,
0x00060034,0x00000006,0x000002d9,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,
0x000002ea,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x00000300,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000308,0x00000084,0x000000c5,0x000000bb,
0x00060034,0x00000006,0x00000319,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,
0x0000032f,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000337,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000348,0x00000084,0x00000026,0x00000028,
0x00060034,0x00000006,0x0000035e,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,
0x00000366,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000377,0x00000084,
0x00000026,0x00000028,0x00060034,0x00000006,0x000003d1,0x00000084,0x000000c5,0x000000bb,
0x00060034,0x00000006,0x000003d9,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,
0x000003ea,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x00000400,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000408,0x00000084,0x000000c5,0x000000bb,
0x00060034,0x00000006,0x00000419,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,
0x0000042f,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000437,0x00000084,
0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000448,0x00000084,0x00000026,0x00000028,
0x00060034,0x00000006,0x0000045e,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,
0x00000466,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000477,0x00000084,
0x00000026,0x00000028,0x0003001d,0x000004bf,0x00000048,0x0003001e,0x000004c0,0x000004bf,
0x00040020,0x000004c1,0x00000002,0x000004c0,0x0004003b,0x000004c1,0x000004c2,0x00000002,
0x0004002b,0x00000006,0x000004f7,0x00000005,0x0004002b,0x00000006,0x00000502,0x00000006,
0x0004002b,0x00000006,0x0000050d,0x00000007,0x00040032,0x00000006,0x00000516,0x00000000,
0x00040032,0x00000006,0x00000517,0x00000000,0x00040032,0x00000006,0x00000518,0x00000000,
0x00040032,0x00000006,0x00000519,0x00000000,0x00040032,0x00000006,0x0000051a,0x00000000,
0x0003001d,0x0000051b,0x00000048,0x0003001e,0x0000051c,0x0000051b,0x00040020,0x0000051d,
0x00000002,0x0000051c,0x0004003b,0x0000051d,0x0000051e,0x00000002,0x00040032,0x00000009,
0x0000051f,0x00000001,0x00040032,0x00000009,0x00000520,0x00000001,0x00040032,0x00000009,
0x00000521,0x00000001,0x00060033,0x0000000a,0x00000522,0x0000051f,0x00000520,0x00000521,
0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,
0x00000007,0x00000008,0x00000007,0x0004003b,0x00000007,0x00000012,0x00000007,0x0004003b,
0x00000007,0x00000017,0x00000007,0x0004003b,0x00000007,0x0000001c,0x00000007,0x0004003b,
0x00000007,0x00000020,0x00000007,0x0004003b,0x00000007,0x00000024,0x00000007,0x0004003b,
0x00000007,0x0000002c,0x00000007,0x0004003b,0x00000007,0x0000003e,0x00000007,0x0004003b,
0x00000007,0x00000041,0x00000007,0x0004003b,0x00000007,0x00000043,0x00000007,0x0004003b,
0x00000049,0x0000004a,0x00000007,0x0004003b,0x00000049,0x0000004d,0x00000007,0x0004003b,
0x00000049,0x0000004e,0x00000007,0x0004003b,0x00000049,0x0000004f,0x00000007,0x0004003b,
0x00000049,0x00000050,0x00000007,0x0004003b,0x00000049,0x00000051,0x00000007,0x0004003b,
0x00000049,0x00000052,0x00000007,0x0004003b,0x00000049,0x00000053,0x00000007,0x0004003b,
0x00000007,0x00000054,0x00000007,0x0004003b,0x00000049,0x0000005a,0x00000007,0x0004003b,
0x00000049,0x0000005b,0x00000007,0x0004003b,0x00000049,0x0000005c,0x00000007,0x0004003b,
0x00000049,0x0000005d,0x00000007,0x0004003b,0x00000049,0x0000005e,0x00000007,0x0004003b,
0x00000049,0x0000006a,0x00000007,0x0004003b,0x00000049,0x00000071,0x00000007,0x0004003b,
0x00000049,0x00000078,0x00000007,0x0004003b,0x00000049,0x0000007f,0x00000007,0x0004003b,
0x00000049,0x00000086,0x00000007,0x0004003b,0x00000049,0x0000008d,0x00000007,0x0004003b,
0x00000049,0x00000094,0x00000007,0x0004003b,0x00000007,0x000000a1,0x00000007,0x0004003b,
0x00000007,0x000000a6,0x00000007,0x0004003b,0x00000007,0x000000aa,0x00000007,0x0004003b,
0x00000007,0x000000b0,0x00000007,0x0004003b,0x00000007,0x000000b6,0x00000007,0x0004003b,
0x00000007,0x000000c0,0x00000007,0x0004003b,0x00000007,0x000000cc,0x00000007,0x00050041,
0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,0x0000000f,
0x0004007c,0x00000006,0x00000011,0x00000010,0x0003003e,0x00000008,0x00000011,0x00050041,
0x0000000e,0x00000014,0x0000000c,0x00000013,0x0004003d,0x00000009,0x00000015,0x00000014,
0x0004007c,0x00000006,0x00000016,0x00000015,0x0003003e,0x00000012,0x00000016,0x00050041,
0x0000000e,0x00000019,0x0000000c,0x00000018,0x0004003d,0x00000009,0x0000001a,0x00000019,
0x0004007c,0x00000006,0x0000001b,0x0000001a,0x0003003e,0x00000017,0x0000001b,0x0004003d,
0x00000006,0x0000001e,0x00000008,0x00050084,0x00000006,0x0000001f,0x0000001d,0x0000001e,
0x0003003e,0x0000001c,0x0000001f,0x0004003d,0x00000006,0x00000022,0x00000012,0x00050084,
0x00000006,0x00000023,0x00000021,0x00000022,0x0003003e,0x00000020,0x00000023,0x0004003d,
0x00000006,0x00000025,0x00000017,0x00050084,0x00000006,0x00000027,0x00000025,0x00000026,
0x00050084,0x00000006,0x00000029,0x00000027,0x00000028,0x00050084,0x00000006,0x0000002b,
0x00000029,0x0000002a,0x0003003e,0x00000024,0x0000002b,0x0004003d,0x00000006,0x0000002d,
0x00000017,0x00050084,0x00000006,0x0000002f,0x0000002d,0x0000002e,0x00050084,0x00000006,
0x00000031,0x0000002f,0x00000030,0x00050087,0x00000006,0x00000032,0x00000031,0x00000021,
0x0003003e,0x0000002c,0x00000032,0x0004003d,0x00000006,0x00000034,0x0000001c,0x000500b1,
0x00000033,0x00000035,0x00000034,0x00000030,0x000300f7,0x00000037,0x00000000,0x000400fa,
0x00000035,0x00000036,0x00000037,0x000200f8,0x00000036,0x0004003d,0x00000006,0x00000038,
0x00000012,0x000500b1,0x00000033,0x0000003a,0x00000038,0x00000039,0x000200f9,0x00000037,
0x000200f8,0x00000037,0x000700f5,0x00000033,0x0000003b,0x00000035,0x00000005,0x0000003a,
0x00000036,0x000300f7,0x0000003d,0x00000000,0x000400fa,0x0000003b,0x0000003c,0x0000003d,
0x000200f8,0x0000003c,0x0003003e,0x0000003e,0x00000040,0x0003003e,0x00000041,0x00000042,
0x0004003d,0x00000006,0x00000044,0x0000001c,0x0004003d,0x00000006,0x00000045,0x0000003e,
0x00050084,0x00000006,0x00000046,0x00000044,0x00000045,0x0003003e,0x00000043,0x00000046,
0x0003003e,0x0000004a,0x0000004c,0x0003003e,0x0000004d,0x0000004c,0x0003003e,0x0000004e,
0x0000004c,0x0003003e,0x0000004f,0x0000004c,0x0003003e,0x00000050,0x0000004c,0x0003003e,
0x00000051,0x0000004c,0x0003003e,0x00000052,0x0000004c,0x0003003e,0x00000053,0x0000004c,
0x0003003e,0x00000054,0x00000055,0x000200f9,0x00000056,0x000200f8,0x00000056,0x000400f6,
0x00000058,0x00000059,0x00000000,0x000200f9,0x00000057,0x000200f8,0x00000057,0x0003003e,
0x0000005a,0x0000004c,0x0003003e,0x0000005b,0x0000004c,0x0003003e,0x0000005c,0x0000004c,
0x0003003e,0x0000005d,0x0000004c,0x0004003d,0x00000006,0x00000063,0x00000043,0x00060041,
0x00000064,0x00000065,0x00000062,0x00000055,0x00000063,0x0004003d,0x00000048,0x00000066,
0x00000065,0x0003003e,0x0000005e,0x00000066,0x0004003d,0x00000006,0x00000067,0x0000003e,
0x0004003d,0x00000006,0x00000068,0x00000043,0x00050080,0x00000006,0x00000069,0x00000068,
0x00000067,0x0003003e,0x00000043,0x00000069,0x0004003d,0x00000006,0x0000006b,0x00000043,
0x00060041,0x00000064,0x0000006c,0x00000062,0x00000055,0x0000006b,0x0004003d,0x00000048,
0x0000006d,0x0000006c,0x0003003e,0x0000006a,0x0000006d,0x0004003d,0x00000006,0x0000006e,
0x0000003e,0x0004003d,0x00000006,0x0000006f,0x00000043,0x00050080,0x00000006,0x00000070,
0x0000006f,0x0000006e,0x0003003e,0x00000043,0x00000070,0x0004003d,0x00000006,0x00000072,
0x00000043,0x00060041,0x00000064,0x00000073,0x00000062,0x00000055,0x00000072,0x0004003d,
0x00000048,0x00000074,0x00000073,0x0003003e,0x00000071,0x00000074,0x0004003d,0x00000006,
0x00000075,0x0000003e,0x0004003d,0x00000006,0x00000076,0x00000043,0x00050080,0x00000006,
0x00000077,0x00000076,0x00000075,0x0003003e,0x00000043,0x00000077,0x0004003d,0x00000006,
0x00000079,0x00000043,0x00060041,0x00000064,0x0000007a,0x00000062,0x00000055,0x00000079,
0x0004003d,0x00000048,0x0000007b,0x0000007a,0x0003003e,0x00000078,0x0000007b,0x0004003d,
0x00000006,0x0000007c,0x0000003e,0x0004003d,0x00000006,0x0000007d,0x00000043,0x00050080,
0x00000006,0x0000007e,0x0000007d,0x0000007c,0x0003003e,0x00000043,0x0000007e,0x0004003d,
0x00000006,0x00000080,0x00000043,0x00060041,0x00000064,0x00000081,0x00000062,0x00000055,
0x00000080,0x0004003d,0x00000048,0x00000082,0x00000081,0x0003003e,0x0000007f,0x00000082,
0x0004003d,0x00000006,0x00000083,0x0000003e,0x0004003d,0x00000006,0x00000084,0x00000043,
0x00050080,0x00000006,0x00000085,0x00000084,0x00000083,0x0003003e,0x00000043,0x00000085,
0x0004003d,0x00000006,0x00000087,0x00000043,0x00060041,0x00000064,0x00000088,0x00000062,
0x00000055,0x00000087,0x0004003d,0x00000048,0x00000089,0x00000088,0x0003003e,0x00000086,
0x00000089,0x0004003d,0x00000006,0x0000008a,0x0000003e,0x0004003d,0x00000006,0x0000008b,
0x00000043,0x00050080,0x00000006,0x0000008c,0x0000008b,0x0000008a,0x0003003e,0x00000043,
0x0000008c,0x0004003d,0x00000006,0x0000008e,0x00000043,0x00060041,0x00000064,0x0000008f,
0x00000062,0x00000055,0x0000008e,0x0004003d,0x00000048,0x00000090,0x0000008f,0x0003003e,
0x0000008d,0x00000090,0x0004003d,0x00000006,0x00000091,0x0000003e,0x0004003d,0x00000006,
0x00000092,0x00000043,0x00050080,0x00000006,0x00000093,0x00000092,0x00000091,0x0003003e,
0x00000043,0x00000093,0x0004003d,0x00000006,0x00000095,0x00000043,0x00060041,0x00000064,
0x00000096,0x00000062,0x00000055,0x00000095,0x0004003d,0x00000048,0x00000097,0x00000096,
0x0003003e,0x00000094,0x00000097,0x0004003d,0x00000006,0x00000098,0x0000003e,0x0004003d,
0x00000006,0x00000099,0x00000043,0x00050080,0x00000006,0x0000009a,0x00000099,0x00000098,
0x0003003e,0x00000043,0x0000009a,0x0004003d,0x00000006,0x0000009c,0x0000003e,0x00050084,
0x00000006,0x0000009d,0x0000001d,0x0000009c,0x00050082,0x00000006,0x0000009e,0x0000009b,
0x0000009d,0x0004003d,0x00000006,0x0000009f,0x00000043,0x00050080,0x00000006,0x000000a0,
0x0000009f,0x0000009e,0x0003003e,0x00000043,0x000000a0,0x0004003d,0x00000006,0x000000a2,
0x00000020,0x00050080,0x00000006,0x000000a3,0x000000a2,0x00000055,0x0005008b,0x00000006,
0x000000a5,0x000000a3,0x000000a4,0x0003003e,0x000000a1,0x000000a5,0x0004003d,0x00000006,
0x000000a7,0x00000020,0x00050080,0x00000006,0x000000a8,0x000000a7,0x00000055,0x00050087,
0x00000006,0x000000a9,0x000000a8,0x000000a4,0x0003003e,0x000000a6,0x000000a9,0x0004003d,
0x00000006,0x000000ab,0x000000a6,0x00050084,0x00000006,0x000000ad,0x000000ab,0x000000ac,
0x00050082,0x00000006,0x000000af,0x000000ad,0x000000ae,0x0003003e,0x000000aa,0x000000af,
0x0004003d,0x00000006,0x000000b1,0x000000a1,0x00050084,0x00000006,0x000000b3,0x000000b1,
0x000000b2,0x00050082,0x00000006,0x000000b5,0x000000b3,0x000000b4,0x0003003e,0x000000b0,
0x000000b5,0x0004003d,0x00000006,0x000000b7,0x000000b0,0x0004003d,0x00000006,0x000000b8,
0x00000054,0x00050084,0x00000006,0x000000b9,0x000000b8,0x00000021,0x00050080,0x00000006,
0x000000ba,0x000000b9,0x00000055,0x0005008b,0x00000006,0x000000bc,0x000000ba,0x000000bb,
0x00050084,0x00000006,0x000000be,0x000000bc,0x000000bd,0x00050080,0x00000006,0x000000bf,
0x000000b7,0x000000be,0x0003003e,0x000000b6,0x000000bf,0x0004003d,0x00000006,0x000000c1,
0x000000aa,0x0004003d,0x00000006,0x000000c2,0x00000054,0x00050084,0x00000006,0x000000c3,
0x000000c2,0x00000021,0x00050080,0x00000006,0x000000c4,0x000000c3,0x00000055,0x0005008b,
0x00000006,0x000000c7,0x000000c4,0x000000c6,0x00050087,0x00000006,0x000000c8,0x000000c7,
0x000000bb,0x00050084,0x00000006,0x000000ca,0x000000c8,0x000000c9,0x00050080,0x00000006,
0x000000cb,0x000000c1,0x000000ca,0x0003003e,0x000000c0,0x000000cb,0x0004003d,0x00000006,
0x000000cd,0x00000054,0x00050084,0x00000006,0x000000ce,0x000000cd,0x00000021,0x00050080,
0x00000006,0x000000cf,0x000000ce,0x00000055,0x00050087,0x00000006,0x000000d1,0x000000cf,
0x000000d0,0x0003003e,0x000000cc,0x000000d1,0x0004003d,0x00000006,0x000000d2,0x000000c0,
0x000500af,0x00000033,0x000000d3,0x000000d2,0x00000055,0x0004003d,0x00000006,0x000000d4,
0x000000c0,0x000500b1,0x00000033,0x000000d5,0x000000d4,0x00000026,0x000500a7,0x00000033,
0x000000d6,0x000000d3,0x000000d5,0x0004003d,0x00000006,0x000000d7,0x000000b6,0x000500af,
0x00000033,0x000000d8,0x000000d7,0x00000055,0x000500a7,0x00000033,0x000000d9,0x000000d6,
0x000000d8,0x0004003d,0x00000006,0x000000da,0x000000b6,0x000500b1,0x00000033,0x000000db,
0x000000da,0x00000028,0x000500a7,0x00000033,0x000000dc,0x000000d9,0x000000db,0x000300f7,
0x000000de,0x00000000,0x000400fa,0x000000dc,0x000000dd,0x000000de,0x000200f8,0x000000dd,
0x0004003d,0x00000006,0x000000e3,0x00000024,0x0004003d,0x00000006,0x000000e4,0x000000cc,
0x00050084,0x00000006,0x000000e6,0x000000e4,0x000000e5,0x00050080,0x00000006,0x000000e7,
0x000000e3,0x000000e6,0x0004003d,0x00000006,0x000000e8,0x000000c0,0x00050084,0x00000006,
0x000000e9,0x000000e8,0x00000028,0x00050080,0x00000006,0x000000ea,0x000000e7,0x000000e9,
0x0004003d,0x00000006,0x000000eb,0x000000b6,0x00050080,0x00000006,0x000000ec,0x000000ea,
0x000000eb,0x00060041,0x000000ed,0x000000ee,0x000000e2,0x00000055,0x000000ec,0x0004003d,
0x00000047,0x000000ef,0x000000ee,0x00050041,0x000000f0,0x000000f1,0x0000005a,0x0000000d,
0x0003003e,0x000000f1,0x000000ef,0x000200f9,0x000000de,0x000200f8,0x000000de,0x0004003d,
0x00000006,0x000000f2,0x000000b0,0x0004003d,0x00000006,0x000000f3,0x00000054,0x00050084,
0x00000006,0x000000f4,0x000000f3,0x00000021,0x00050080,0x00000006,0x000000f5,0x000000f4,
0x0000009b,0x0005008b,0x00000006,0x000000f6,0x000000f5,0x000000bb,0x00050084,0x00000006,
0x000000f7,0x000000f6,0x000000bd,0x00050080,0x00000006,0x000000f8,0x000000f2,0x000000f7,
0x0003003e,0x000000b6,0x000000f8,0x0004003d,0x00000006,0x000000f9,0x000000aa,0x0004003d,
0x00000006,0x000000fa,0x00000054,0x00050084,0x00000006,0x000000fb,0x000000fa,0x00000021,
0x00050080,0x00000006,0x000000fc,0x000000fb,0x0000009b,0x0005008b,0x00000006,0x000000fe,
0x000000fc,0x000000fd,0x00050087,0x00000006,0x000000ff,0x000000fe,0x000000bb,0x00050084,
0x00000006,0x00000100,0x000000ff,0x000000c9,0x00050080,0x00000006,0x00000101,0x000000f9,
0x00000100,0x0003003e,0x000000c0,0x00000101,0x0004003d,0x00000006,0x00000102,0x00000054,
0x00050084,0x00000006,0x00000103,0x00000102,0x00000021,0x00050080,0x00000006,0x00000104,
0x00000103,0x0000009b,0x00050087,0x00000006,0x00000106,0x00000104,0x00000105,0x0003003e,
0x000000cc,0x00000106,0x0004003d,0x00000006,0x00000107,0x000000c0,0x000500af,0x00000033,
0x00000108,0x00000107,0x00000055,0x0004003d,0x00000006,0x00000109,0x000000c0,0x000500b1,
0x00000033,0x0000010a,0x00000109,0x00000026,0x000500a7,0x00000033,0x0000010b,0x00000108,
0x0000010a,0x0004003d,0x00000006,0x0000010c,0x000000b6,0x000500af,0x00000033,0x0000010d,
0x0000010c,0x00000055,0x000500a7,0x00000033,0x0000010e,0x0000010b,0x0000010d,0x0004003d,
0x00000006,0x0000010f,0x000000b6,0x000500b1,0x00000033,0x00000110,0x0000010f,0x00000028,
0x000500a7,0x00000033,0x00000111,0x0000010e,0x00000110,0x000300f7,0x00000113,0x00000000,
0x000400fa,0x00000111,0x00000112,0x00000113,0x000200f8,0x00000112,0x0004003d,0x00000006,
0x00000114,0x00000024,0x0004003d,0x00000006,0x00000115,0x000000cc,0x00050084,0x00000006,
0x00000117,0x00000115,0x00000116,0x00050080,0x00000006,0x00000118,0x00000114,0x00000117,
0x0004003d,0x00000006,0x00000119,0x000000c0,0x00050084,0x00000006,0x0000011a,0x00000119,
0x00000028,0x00050080,0x00000006,0x0000011b,0x00000118,0x0000011a,0x0004003d,0x00000006,
0x0000011c,0x000000b6,0x00050080,0x00000006,0x0000011d,0x0000011b,0x0000011c,0x00060041,
0x000000ed,0x0000011e,0x000000e2,0x00000055,0x0000011d,0x0004003d,0x00000047,0x0000011f,
0x0000011e,0x00050041,0x000000f0,0x00000120,0x0000005a,0x00000013,0x0003003e,0x00000120,
0x0000011f,0x000200f9,0x00000113,0x000200f8,0x00000113,0x0004003d,0x00000006,0x00000121,
0x000000b0,0x0004003d,0x00000006,0x00000122,0x00000054,0x00050084,0x00000006,0x00000123,
0x00000122,0x00000021,0x00050080,0x00000006,0x00000125,0x00000123,0x00000124,0x0005008b,
0x00000006,0x00000126,0x00000125,0x000000bb,0x00050084,0x00000006,0x00000127,0x00000126,
0x000000bd,0x00050080,0x00000006,0x00000128,0x00000121,0x00000127,0x0003003e,0x000000b6,
0x00000128,0x0004003d,0x00000006,0x00000129,0x000000aa,0x0004003d,0x00000006,0x0000012a,
0x00000054,0x00050084,0x00000006,0x0000012b,0x0000012a,0x00000021,0x00050080,0x00000006,
0x0000012c,0x0000012b,0x00000124,0x0005008b,0x00000006,0x0000012e,0x0000012c,0x0000012d,
0x00050087,0x00000006,0x0000012f,0x0000012e,0x000000bb,0x00050084,0x00000006,0x00000130,
0x0000012f,0x000000c9,0x00050080,0x00000006,0x00000131,0x00000129,0x00000130,0x0003003e,
0x000000c0,0x00000131,0x0004003d,0x00000006,0x00000132,0x00000054,0x00050084,0x00000006,
0x00000133,0x00000132,0x00000021,0x00050080,0x00000006,0x00000134,0x00000133,0x00000124,
0x00050087,0x00000006,0x00000136,0x00000134,0x00000135,0x0003003e,0x000000cc,0x00000136,
0x0004003d,0x00000006,0x00000137,0x000000c0,0x000500af,0x00000033,0x00000138,0x00000137,
0x00000055,0x0004003d,0x00000006,0x00000139,0x000000c0,0x000500b1,0x00000033,0x0000013a,
0x00000139,0x00000026,0x000500a7,0x00000033,0x0000013b,0x00000138,0x0000013a,0x0004003d,
0x00000006,0x0000013c,0x000000b6,0x000500af,0x00000033,0x0000013d,0x0000013c,0x00000055,
0x000500a7,0x00000033,0x0000013e,0x0000013b,0x0000013d,0x0004003d,0x00000006,0x0000013f,
0x000000b6,0x000500b1,0x00000033,0x00000140,0x0000013f,0x00000028,0x000500a7,0x00000033,
0x00000141,0x0000013e,0x00000140,0x000300f7,0x00000143,0x00000000,0x000400fa,0x00000141,
0x00000142,0x00000143,0x000200f8,0x00000142,0x0004003d,0x00000006,0x00000144,0x00000024,
0x0004003d,0x00000006,0x00000145,0x000000cc,0x00050084,0x00000006,0x00000147,0x00000145,
0x00000146,0x00050080,0x00000006,0x00000148,0x00000144,0x00000147,0x0004003d,0x00000006,
0x00000149,0x000000c0,0x00050084,0x00000006,0x0000014a,0x00000149,0x00000028,0x00050080,
0x00000006,0x0000014b,0x00000148,0x0000014a,0x0004003d,0x00000006,0x0000014c,0x000000b6,
0x00050080,0x00000006,0x0000014d,0x0000014b,0x0000014c,0x00060041,0x000000ed,0x0000014e,
0x000000e2,0x00000055,0x0000014d,0x0004003d,0x00000047,0x0000014f,0x0000014e,0x00050041,
0x000000f0,0x00000150,0x0000005a,0x00000018,0x0003003e,0x00000150,0x0000014f,0x000200f9,
0x00000143,0x000200f8,0x00000143,0x0004003d,0x00000006,0x00000151,0x000000b0,0x0004003d,
0x00000006,0x00000152,0x00000054,0x00050084,0x00000006,0x00000153,0x00000152,0x00000021,
0x00050080,0x00000006,0x00000155,0x00000153,0x00000154,0x0005008b,0x00000006,0x00000156,
0x00000155,0x000000bb,0x00050084,0x00000006,0x00000157,0x00000156,0x000000bd,0x00050080,
0x00000006,0x00000158,0x00000151,0x00000157,0x0003003e,0x000000b6,0x00000158,0x0004003d,
0x00000006,0x00000159,0x000000aa,0x0004003d,0x00000006,0x0000015a,0x00000054,0x00050084,
0x00000006,0x0000015b,0x0000015a,0x00000021,0x00050080,0x00000006,0x0000015c,0x0000015b,
0x00000154,0x0005008b,0x00000006,0x0000015e,0x0000015c,0x0000015d,0x00050087,0x00000006,
0x0000015f,0x0000015e,0x000000bb,0x00050084,0x00000006,0x00000160,0x0000015f,0x000000c9,
0x00050080,0x00000006,0x00000161,0x00000159,0x00000160,0x0003003e,0x000000c0,0x00000161,
0x0004003d,0x00000006,0x00000162,0x00000054,0x00050084,0x00000006,0x00000163,0x00000162,
0x00000021,0x00050080,0x00000006,0x00000164,0x00000163,0x00000154,0x00050087,0x00000006,
0x00000166,0x00000164,0x00000165,0x0003003e,0x000000cc,0x00000166,0x0004003d,0x00000006,
0x00000167,0x000000c0,0x000500af,0x00000033,0x00000168,0x00000167,0x00000055,0x0004003d,
0x00000006,0x00000169,0x000000c0,0x000500b1,0x00000033,0x0000016a,0x00000169,0x00000026,
0x000500a7,0x00000033,0x0000016b,0x00000168,0x0000016a,0x0004003d,0x00000006,0x0000016c,
0x000000b6,0x000500af,0x00000033,0x0000016d,0x0000016c,0x00000055,0x000500a7,0x00000033,
0x0000016e,0x0000016b,0x0000016d,0x0004003d,0x00000006,0x0000016f,0x000000b6,0x000500b1,
0x00000033,0x00000170,0x0000016f,0x00000028,0x000500a7,0x00000033,0x00000171,0x0000016e,
0x00000170,0x000300f7,0x00000173,0x00000000,0x000400fa,0x00000171,0x00000172,0x00000173,
0x000200f8,0x00000172,0x0004003d,0x00000006,0x00000174,0x00000024,0x0004003d,0x00000006,
0x00000175,0x000000cc,0x00050084,0x00000006,0x00000177,0x00000175,0x00000176,0x00050080,
0x00000006,0x00000178,0x00000174,0x00000177,0x0004003d,0x00000006,0x00000179,0x000000c0,
0x00050084,0x00000006,0x0000017a,0x00000179,0x00000028,0x00050080,0x00000006,0x0000017b,
0x00000178,0x0000017a,0x0004003d,0x00000006,0x0000017c,0x000000b6,0x00050080,0x00000006,
0x0000017d,0x0000017b,0x0000017c,0x00060041,0x000000ed,0x0000017e,0x000000e2,0x00000055,
0x0000017d,0x0004003d,0x00000047,0x0000017f,0x0000017e,0x00050041,0x000000f0,0x00000181,
0x0000005a,0x00000180,0x0003003e,0x00000181,0x0000017f,0x000200f9,0x00000173,0x000200f8,
0x00000173,0x0004003d,0x00000048,0x00000182,0x0000005e,0x0004003d,0x00000048,0x00000183,
0x0000005a,0x00050094,0x00000047,0x00000184,0x00000182,0x00000183,0x00050041,0x000000f0,
0x00000185,0x0000004a,0x0000000d,0x0004003d,0x00000047,0x00000186,0x00000185,0x00050081,
0x00000047,0x00000187,0x00000186,0x00000184,0x00050041,0x000000f0,0x00000188,0x0000004a,
0x0000000d,0x0003003e,0x00000188,0x00000187,0x0004003d,0x00000048,0x00000189,0x0000006a,
0x0004003d,0x00000048,0x0000018a,0x0000005a,0x00050094,0x00000047,0x0000018b,0x00000189,
0x0000018a,0x00050041,0x000000f0,0x0000018c,0x0000004d,0x0000000d,0x0004003d,0x00000047,
0x0000018d,0x0000018c,0x00050081,0x00000047,0x0000018e,0x0000018d,0x0000018b,0x00050041,
0x000000f0,0x0000018f,0x0000004d,0x0000000d,0x0003003e,0x0000018f,0x0000018e,0x0004003d,
0x00000048,0x00000190,0x00000071,0x0004003d,0x00000048,0x00000191,0x0000005a,0x00050094,
0x00000047,0x00000192,0x00000190,0x00000191,0x00050041,0x000000f0,0x00000193,0x0000004e,
0x0000000d,0x0004003d,0x00000047,0x00000194,0x00000193,0x00050081,0x00000047,0x00000195,
0x00000194,0x00000192,0x00050041,0x000000f0,0x00000196,0x0000004e,0x0000000d,0x0003003e,
0x00000196,0x00000195,0x0004003d,0x00000048,0x00000197,0x00000078,0x0004003d,0x00000048,
0x00000198,0x0000005a,0x00050094,0x00000047,0x00000199,0x00000197,0x00000198,0x00050041,
0x000000f0,0x0000019a,0x0000004f,0x0000000d,0x0004003d,0x00000047,0x0000019b,0x0000019a,
0x00050081,0x00000047,0x0000019c,0x0000019b,0x00000199,0x00050041,0x000000f0,0x0000019d,
0x0000004f,0x0000000d,0x0003003e,0x0000019d,0x0000019c,0x0004003d,0x00000048,0x0000019e,
0x0000007f,0x0004003d,0x00000048,0x0000019f,0x0000005a,0x00050094,0x00000047,0x000001a0,
0x0000019e,0x0000019f,0x00050041,0x000000f0,0x000001a1,0x00000050,0x0000000d,0x0004003d,
0x00000047,0x000001a2,0x000001a1,0x00050081,0x00000047,0x000001a3,0x000001a2,0x000001a0,
0x00050041,0x000000f0,0x000001a4,0x00000050,0x0000000d,0x0003003e,0x000001a4,0x000001a3,
0x0004003d,0x00000048,0x000001a5,0x00000086,0x0004003d,0x00000048,0x000001a6,0x0000005a,
0x00050094,0x00000047,0x000001a7,0x000001a5,0x000001a6,0x00050041,0x000000f0,0x000001a8,
0x00000051,0x0000000d,0x0004003d,0x00000047,0x000001a9,0x000001a8,0x00050081,0x00000047,
0x000001aa,0x000001a9,0x000001a7,0x00050041,0x000000f0,0x000001ab,0x00000051,0x0000000d,
0x0003003e,0x000001ab,0x000001aa,0x0004003d,0x00000048,0x000001ac,0x0000008d,0x0004003d,
0x00000048,0x000001ad,0x0000005a,0x00050094,0x00000047,0x000001ae,0x000001ac,0x000001ad,
0x00050041,0x000000f0,0x000001af,0x00000052,0x0000000d,0x0004003d,0x00000047,0x000001b0,
0x000001af,0x00050081,0x00000047,0x000001b1,0x000001b0,0x000001ae,0x00050041,0x000000f0,
0x000001b2,0x00000052,0x0000000d,0x0003003e,0x000001b2,0x000001b1,0x0004003d,0x00000048,
0x000001b3,0x00000094,0x0004003d,0x00000048,0x000001b4,0x0000005a,0x00050094,0x00000047,
0x000001b5,0x000001b3,0x000001b4,0x00050041,0x000000f0,0x000001b6,0x00000053,0x0000000d,
0x0004003d,0x00000047,0x000001b7,0x000001b6,0x00050081,0x00000047,0x000001b8,0x000001b7,
0x000001b5,0x00050041,0x000000f0,0x000001b9,0x00000053,0x0000000d,0x0003003e,0x000001b9,
0x000001b8,0x0004003d,0x00000006,0x000001ba,0x00000020,0x00050080,0x00000006,0x000001bb,
0x000001ba,0x0000009b,0x0005008b,0x00000006,0x000001bc,0x000001bb,0x000000a4,0x0003003e,
0x000000a1,0x000001bc,0x0004003d,0x00000006,0x000001bd,0x00000020,0x00050080,0x00000006,
0x000001be,0x000001bd,0x0000009b,0x00050087,0x00000006,0x000001bf,0x000001be,0x000000a4,
0x0003003e,0x000000a6,0x000001bf,0x0004003d,0x00000006,0x000001c0,0x000000a6,0x00050084,
0x00000006,0x000001c1,0x000001c0,0x000000ac,0x00050082,0x00000006,0x000001c2,0x000001c1,
0x000000ae,0x0003003e,0x000000aa,0x000001c2,0x0004003d,0x00000006,0x000001c3,0x000000a1,
0x00050084,0x00000006,0x000001c4,0x000001c3,0x000000b2,0x00050082,0x00000006,0x000001c5,
0x000001c4,0x000000b4,0x0003003e,0x000000b0,0x000001c5,0x0004003d,0x00000006,0x000001c6,
0x000000b0,0x0004003d,0x00000006,0x000001c7,0x00000054,0x00050084,0x00000006,0x000001c8,
0x000001c7,0x00000021,0x00050080,0x00000006,0x000001c9,0x000001c8,0x00000055,0x0005008b,
0x00000006,0x000001ca,0x000001c9,0x000000bb,0x00050084,0x00000006,0x000001cb,0x000001ca,
0x000000bd,0x00050080,0x00000006,0x000001cc,0x000001c6,0x000001cb,0x0003003e,0x000000b6,
0x000001cc,0x0004003d,0x00000006,0x000001cd,0x000000aa,0x0004003d,0x00000006,0x000001ce,
0x00000054,0x00050084,0x00000006,0x000001cf,0x000001ce,0x00000021,0x00050080,0x00000006,
0x000001d0,0x000001cf,0x00000055,0x0005008b,0x00000006,0x000001d2,0x000001d0,0x000001d1,
0x00050087,0x00000006,0x000001d3,0x000001d2,0x000000bb,0x00050084,0x00000006,0x000001d4,
0x000001d3,0x000000c9,0x00050080,0x00000006,0x000001d5,0x000001cd,0x000001d4,0x0003003e,
0x000000c0,0x000001d5,0x0004003d,0x00000006,0x000001d6,0x00000054,0x00050084,0x00000006,
0x000001d7,0x000001d6,0x00000021,0x00050080,0x00000006,0x000001d8,0x000001d7,0x00000055,
0x00050087,0x00000006,0x000001da,0x000001d8,0x000001d9,0x0003003e,0x000000cc,0x000001da,
0x0004003d,0x00000006,0x000001db,0x000000c0,0x000500af,0x00000033,0x000001dc,0x000001db,
0x00000055,0x0004003d,0x00000006,0x000001dd,0x000000c0,0x000500b1,0x00000033,0x000001de,
0x000001dd,0x00000026,0x000500a7,0x00000033,0x000001df,0x000001dc,0x000001de,0x0004003d,
0x00000006,0x000001e0,0x000000b6,0x000500af,0x00000033,0x000001e1,0x000001e0,0x00000055,
0x000500a7,0x00000033,0x000001e2,0x000001df,0x000001e1,0x0004003d,0x00000006,0x000001e3,
0x000000b6,0x000500b1,0x00000033,0x000001e4,0x000001e3,0x00000028,0x000500a7,0x00000033,
0x000001e5,0x000001e2,0x000001e4,0x000300f7,0x000001e7,0x00000000,0x000400fa,0x000001e5,
0x000001e6,0x000001e7,0x000200f8,0x000001e6,0x0004003d,0x00000006,0x000001e8,0x00000024,
0x0004003d,0x00000006,0x000001e9,0x000000cc,0x00050084,0x00000006,0x000001eb,0x000001e9,
0x000001ea,0x00050080,0x00000006,0x000001ec,0x000001e8,0x000001eb,0x0004003d,0x00000006,
0x000001ed,0x000000c0,0x00050084,0x00000006,0x000001ee,0x000001ed,0x00000028,0x00050080,
0x00000006,0x000001ef,0x000001ec,0x000001ee,0x0004003d,0x00000006,0x000001f0,0x000000b6,
0x00050080,0x00000006,0x000001f1,0x000001ef,0x000001f0,0x00060041,0x000000ed,0x000001f2,
0x000000e2,0x00000055,0x000001f1,0x0004003d,0x00000047,0x000001f3,0x000001f2,0x00050041,
0x000000f0,0x000001f4,0x0000005b,0x0000000d,0x0003003e,0x000001f4,0x000001f3,0x000200f9,
0x000001e7,0x000200f8,0x000001e7,0x0004003d,0x00000006,0x000001f5,0x000000b0,0x0004003d,
0x00000006,0x000001f6,0x00000054,0x00050084,0x00000006,0x000001f7,0x000001f6,0x00000021,
0x00050080,0x00000006,0x000001f8,0x000001f7,0x0000009b,0x0005008b,0x00000006,0x000001f9,
0x000001f8,0x000000bb,0x00050084,0x00000006,0x000001fa,0x000001f9,0x000000bd,0x00050080,
0x00000006,0x000001fb,0x000001f5,0x000001fa,0x0003003e,0x000000b6,0x000001fb,0x0004003d,
0x00000006,0x000001fc,0x000000aa,0x0004003d,0x00000006,0x000001fd,0x00000054,0x00050084,
0x00000006,0x000001fe,0x000001fd,0x00000021,0x00050080,0x00000006,0x000001ff,0x000001fe,
0x0000009b,0x0005008b,0x00000006,0x00000201,0x000001ff,0x00000200,0x00050087,0x00000006,
0x00000202,0x00000201,0x000000bb,0x00050084,0x00000006,0x00000203,0x00000202,0x000000c9,
0x00050080,0x00000006,0x00000204,0x000001fc,0x00000203,0x0003003e,0x000000c0,0x00000204,
0x0004003d,0x00000006,0x00000205,0x00000054,0x00050084,0x00000006,0x00000206,0x00000205,
0x00000021,0x00050080,0x00000006,0x00000207,0x00000206,0x0000009b,0x00050087,0x00000006,
0x00000209,0x00000207,0x00000208,0x0003003e,0x000000cc,0x00000209,0x0004003d,0x00000006,
0x0000020a,0x000000c0,0x000500af,0x00000033,0x0000020b,0x0000020a,0x00000055,0x0004003d,
0x00000006,0x0000020c,0x000000c0,0x000500b1,0x00000033,0x0000020d,0x0000020c,0x00000026,
0x000500a7,0x00000033,0x0000020e,0x0000020b,0x0000020d,0x0004003d,0x00000006,0x0000020f,
0x000000b6,0x000500af,0x00000033,0x00000210,0x0000020f,0x00000055,0x000500a7,0x00000033,
0x00000211,0x0000020e,0x00000210,0x0004003d,0x00000006,0x00000212,0x000000b6,0x000500b1,
0x00000033,0x00000213,0x00000212,0x00000028,0x000500a7,0x00000033,0x00000214,0x00000211,
0x00000213,0x000300f7,0x00000216,0x00000000,0x000400fa,0x00000214,0x00000215,0x00000216,
0x000200f8,0x00000215,0x0004003d,0x00000006,0x00000217,0x00000024,0x0004003d,0x00000006,
0x00000218,0x000000cc,0x00050084,0x00000006,0x0000021a,0x00000218,0x00000219,0x00050080,
0x00000006,0x0000021b,0x00000217,0x0000021a,0x0004003d,0x00000006,0x0000021c,0x000000c0,
0x00050084,0x00000006,0x0000021d,0x0000021c,0x00000028,0x00050080,0x00000006,0x0000021e,
0x0000021b,0x0000021d,0x0004003d,0x00000006,0x0000021f,0x000000b6,0x00050080,0x00000006,
0x00000220,0x0000021e,0x0000021f,0x00060041,0x000000ed,0x00000221,0x000000e2,0x00000055,
0x00000220,0x0004003d,0x00000047,0x00000222,0x00000221,0x00050041,0x000000f0,0x00000223,
0x0000005b,0x00000013,0x0003003e,0x00000223,0x00000222,0x000200f9,0x00000216,0x000200f8,
0x00000216,0x0004003d,0x00000006,0x00000224,0x000000b0,0x0004003d,0x00000006,0x00000225,
0x00000054,0x00050084,0x00000006,0x00000226,0x00000225,0x00000021,0x00050080,0x00000006,
0x00000227,0x00000226,0x00000124,0x0005008b,0x00000006,0x00000228,0x00000227,0x000000bb,
0x00050084,0x00000006,0x00000229,0x00000228,0x000000bd,0x00050080,0x00000006,0x0000022a,
0x00000224,0x00000229,0x0003003e,0x000000b6,0x0000022a,0x0004003d,0x00000006,0x0000022b,
0x000000aa,0x0004003d,0x00000006,0x0000022c,0x00000054,0x00050084,0x00000006,0x0000022d,
0x0000022c,0x00000021,0x00050080,0x00000006,0x0000022e,0x0000022d,0x00000124,0x0005008b,
0x00000006,0x00000230,0x0000022e,0x0000022f,0x00050087,0x00000006,0x00000231,0x00000230,
0x000000bb,0x00050084,0x00000006,0x00000232,0x00000231,0x000000c9,0x00050080,0x00000006,
0x00000233,0x0000022b,0x00000232,0x0003003e,0x000000c0,0x00000233,0x0004003d,0x00000006,
0x00000234,0x00000054,0x00050084,0x00000006,0x00000235,0x00000234,0x00000021,0x00050080,
0x00000006,0x00000236,0x00000235,0x00000124,0x00050087,0x00000006,0x00000238,0x00000236,
0x00000237,0x0003003e,0x000000cc,0x00000238,0x0004003d,0x00000006,0x00000239,0x000000c0,
0x000500af,0x00000033,0x0000023a,0x00000239,0x00000055,0x0004003d,0x00000006,0x0000023b,
0x000000c0,0x000500b1,0x00000033,0x0000023c,0x0000023b,0x00000026,0x000500a7,0x00000033,
0x0000023d,0x0000023a,0x0000023c,0x0004003d,0x00000006,0x0000023e,0x000000b6,0x000500af,
0x00000033,0x0000023f,0x0000023e,0x00000055,0x000500a7,0x00000033,0x00000240,0x0000023d,
0x0000023f,0x0004003d,0x00000006,0x00000241,0x000000b6,0x000500b1,0x00000033,0x00000242,
0x00000241,0x00000028,0x000500a7,0x00000033,0x00000243,0x00000240,0x00000242,0x000300f7,
0x00000245,0x00000000,0x000400fa,0x00000243,0x00000244,0x00000245,0x000200f8,0x00000244,
0x0004003d,0x00000006,0x00000246,0x00000024,0x0004003d,0x00000006,0x00000247,0x000000cc,
0x00050084,0x00000006,0x00000249,0x00000247,0x00000248,0x00050080,0x00000006,0x0000024a,
0x00000246,0x00000249,0x0004003d,0x00000006,0x0000024b,0x000000c0,0x00050084,0x00000006,
0x0000024c,0x0000024b,0x00000028,0x00050080,0x00000006,0x0000024d,0x0000024a,0x0000024c,
0x0004003d,0x00000006,0x0000024e,0x000000b6,0x00050080,0x00000006,0x0000024f,0x0000024d,
0x0000024e,0x00060041,0x000000ed,0x00000250,0x000000e2,0x00000055,0x0000024f,0x0004003d,
0x00000047,0x00000251,0x00000250,0x00050041,0x000000f0,0x00000252,0x0000005b,0x00000018,
0x0003003e,0x00000252,0x00000251,0x000200f9,0x00000245,0x000200f8,0x00000245,0x0004003d,
0x00000006,0x00000253,0x000000b0,0x0004003d,0x00000006,0x00000254,0x00000054,0x00050084,
0x00000006,0x00000255,0x00000254,0x00000021,0x00050080,0x00000006,0x00000256,0x00000255,
0x00000154,0x0005008b,0x00000006,0x00000257,0x00000256,0x000000bb,0x00050084,0x00000006,
0x00000258,0x00000257,0x000000bd,0x00050080,0x00000006,0x00000259,0x00000253,0x00000258,
0x0003003e,0x000000b6,0x00000259,0x0004003d,0x00000006,0x0000025a,0x000000aa,0x0004003d,
0x00000006,0x0000025b,0x00000054,0x00050084,0x00000006,0x0000025c,0x0000025b,0x00000021,
0x00050080,0x00000006,0x0000025d,0x0000025c,0x00000154,0x0005008b,0x00000006,0x0000025f,
0x0000025d,0x0000025e,0x00050087,0x00000006,0x00000260,0x0000025f,0x000000bb,0x00050084,
0x00000006,0x00000261,0x00000260,0x000000c9,0x00050080,0x00000006,0x00000262,0x0000025a,
0x00000261,0x0003003e,0x000000c0,0x00000262,0x0004003d,0x00000006,0x00000263,0x00000054,
0x00050084,0x00000006,0x00000264,0x00000263,0x00000021,0x00050080,0x00000006,0x00000265,
0x00000264,0x00000154,0x00050087,0x00000006,0x00000267,0x00000265,0x00000266,0x0003003e,
0x000000cc,0x00000267,0x0004003d,0x00000006,0x00000268,0x000000c0,0x000500af,0x00000033,
0x00000269,0x00000268,0x00000055,0x0004003d,0x00000006,0x0000026a,0x000000c0,0x000500b1,
0x00000033,0x0000026b,0x0000026a,0x00000026,0x000500a7,0x00000033,0x0000026c,0x00000269,
0x0000026b,0x0004003d,0x00000006,0x0000026d,0x000000b6,0x000500af,0x00000033,0x0000026e,
0x0000026d,0x00000055,0x000500a7,0x00000033,0x0000026f,0x0000026c,0x0000026e,0x0004003d,
0x00000006,0x00000270,0x000000b6,0x000500b1,0x00000033,0x00000271,0x00000270,0x00000028,
0x000500a7,0x00000033,0x00000272,0x0000026f,0x00000271,0x000300f7,0x00000274,0x00000000,
0x000400fa,0x00000272,0x00000273,0x00000274,0x000200f8,0x00000273,0x0004003d,0x00000006,
0x00000275,0x00000024,0x0004003d,0x00000006,0x00000276,0x000000cc,0x00050084,0x00000006,
0x00000278,0x00000276,0x00000277,0x00050080,0x00000006,0x00000279,0x00000275,0x00000278,
0x0004003d,0x00000006,0x0000027a,0x000000c0,0x00050084,0x00000006,0x0000027b,0x0000027a,
0x00000028,0x00050080,0x00000006,0x0000027c,0x00000279,0x0000027b,0x0004003d,0x00000006,
0x0000027d,0x000000b6,0x00050080,0x00000006,0x0000027e,0x0000027c,0x0000027d,0x00060041,
0x000000ed,0x0000027f,0x000000e2,0x00000055,0x0000027e,0x0004003d,0x00000047,0x00000280,
0x0000027f,0x00050041,0x000000f0,0x00000281,0x0000005b,0x00000180,0x0003003e,0x00000281,
0x00000280,0x000200f9,0x00000274,0x000200f8,0x00000274,0x0004003d,0x00000048,0x00000282,
0x0000005e,0x0004003d,0x00000048,0x00000283,0x0000005b,0x00050094,0x00000047,0x00000284,
0x00000282,0x00000283,0x00050041,0x000000f0,0x00000285,0x0000004a,0x00000013,0x0004003d,
0x00000047,0x00000286,0x00000285,0x00050081,0x00000047,0x00000287,0x00000286,0x00000284,
0x00050041,0x000000f0,0x00000288,0x0000004a,0x00000013,0x0003003e,0x00000288,0x00000287,
0x0004003d,0x00000048,0x00000289,0x0000006a,0x0004003d,0x00000048,0x0000028a,0x0000005b,
0x00050094,0x00000047,0x0000028b,0x00000289,0x0000028a,0x00050041,0x000000f0,0x0000028c,
0x0000004d,0x00000013,0x0004003d,0x00000047,0x0000028d,0x0000028c,0x00050081,0x00000047,
0x0000028e,0x0000028d,0x0000028b,0x00050041,0x000000f0,0x0000028f,0x0000004d,0x00000013,
0x0003003e,0x0000028f,0x0000028e,0x0004003d,0x00000048,0x00000290,0x00000071,0x0004003d,
0x00000048,0x00000291,0x0000005b,0x00050094,0x00000047,0x00000292,0x00000290,0x00000291,
0x00050041,0x000000f0,0x00000293,0x0000004e,0x00000013,0x0004003d,0x00000047,0x00000294,
0x00000293,0x00050081,0x00000047,0x00000295,0x00000294,0x00000292,0x00050041,0x000000f0,
0x00000296,0x0000004e,0x00000013,0x0003003e,0x00000296,0x00000295,0x0004003d,0x00000048,
0x00000297,0x00000078,0x0004003d,0x00000048,0x00000298,0x0000005b,0x00050094,0x00000047,
0x00000299,0x00000297,0x00000298,0x00050041,0x000000f0,0x0000029a,0x0000004f,0x00000013,
0x0004003d,0x00000047,0x0000029b,0x0000029a,0x00050081,0x00000047,0x0000029c,0x0000029b,
0x00000299,0x00050041,0x000000f0,0x0000029d,0x0000004f,0x00000013,0x0003003e,0x0000029d,
0x0000029c,0x0004003d,0x00000048,0x0000029e,0x0000007f,0x0004003d,0x00000048,0x0000029f,
0x0000005b,0x00050094,0x00000047,0x000002a0,0x0000029e,0x0000029f,0x00050041,0x000000f0,
0x000002a1,0x00000050,0x00000013,0x0004003d,0x00000047,0x000002a2,0x000002a1,0x00050081,
0x00000047,0x000002a3,0x000002a2,0x000002a0,0x00050041,0x000000f0,0x000002a4,0x00000050,
0x00000013,0x0003003e,0x000002a4,0x000002a3,0x0004003d,0x00000048,0x000002a5,0x00000086,
0x0004003d,0x00000048,0x000002a6,0x0000005b,0x00050094,0x00000047,0x000002a7,0x000002a5,
0x000002a6,0x00050041,0x000000f0,0x000002a8,0x00000051,0x00000013,0x0004003d,0x00000047,
0x000002a9,0x000002a8,0x00050081,0x00000047,0x000002aa,0x000002a9,0x000002a7,0x00050041,
0x000000f0,0x000002ab,0x00000051,0x00000013,0x0003003e,0x000002ab,0x000002aa,0x0004003d,
0x00000048,0x000002ac,0x0000008d,0x0004003d,0x00000048,0x000002ad,0x0000005b,0x00050094,
0x00000047,0x000002ae,0x000002ac,0x000002ad,0x00050041,0x000000f0,0x000002af,0x00000052,
0x00000013,0x0004003d,0x00000047,0x000002b0,0x000002af,0x00050081,0x00000047,0x000002b1,
0x000002b0,0x000002ae,0x00050041,0x000000f0,0x000002b2,0x00000052,0x00000013,0x0003003e,
0x000002b2,0x000002b1,0x0004003d,0x00000048,0x000002b3,0x00000094,0x0004003d,0x00000048,
0x000002b4,0x0000005b,0x00050094,0x00000047,0x000002b5,0x000002b3,0x000002b4,0x00050041,
0x000000f0,0x000002b6,0x00000053,0x00000013,0x0004003d,0x00000047,0x000002b7,0x000002b6,
0x00050081,0x00000047,0x000002b8,0x000002b7,0x000002b5,0x00050041,0x000000f0,0x000002b9,
0x00000053,0x00000013,0x0003003e,0x000002b9,0x000002b8,0x0004003d,0x00000006,0x000002ba,
0x00000020,0x00050080,0x00000006,0x000002bb,0x000002ba,0x00000124,0x0005008b,0x00000006,
0x000002bc,0x000002bb,0x000000a4,0x0003003e,0x000000a1,0x000002bc,0x0004003d,0x00000006,
0x000002bd,0x00000020,0x00050080,0x00000006,0x000002be,0x000002bd,0x00000124,0x00050087,
0x00000006,0x000002bf,0x000002be,0x000000a4,0x0003003e,0x000000a6,0x000002bf,0x0004003d,
0x00000006,0x000002c0,0x000000a6,0x00050084,0x00000006,0x000002c1,0x000002c0,0x000000ac,
0x00050082,0x00000006,0x000002c2,0x000002c1,0x000000ae,0x0003003e,0x000000aa,0x000002c2,
0x0004003d,0x00000006,0x000002c3,0x000000a1,0x00050084,0x00000006,0x000002c4,0x000002c3,
0x000000b2,0x00050082,0x00000006,0x000002c5,0x000002c4,0x000000b4,0x0003003e,0x000000b0,
0x000002c5,0x0004003d,0x00000006,0x000002c6,0x000000b0,0x0004003d,0x00000006,0x000002c7,
0x00000054,0x00050084,0x00000006,0x000002c8,0x000002c7,0x00000021,0x00050080,0x00000006,
0x000002c9,0x000002c8,0x00000055,0x0005008b,0x00000006,0x000002ca,0x000002c9,0x000000bb,
0x00050084,0x00000006,0x000002cb,0x000002ca,0x000000bd,0x00050080,0x00000006,0x000002cc,
0x000002c6,0x000002cb,0x0003003e,0x000000b6,0x000002cc,0x0004003d,0x00000006,0x000002cd,
0x000000aa,0x0004003d,0x00000006,0x000002ce,0x00000054,0x00050084,0x00000006,0x000002cf,
0x000002ce,0x00000021,0x00050080,0x00000006,0x000002d0,0x000002cf,0x00000055,0x0005008b,
0x00000006,0x000002d2,0x000002d0,0x000002d1,0x00050087,0x00000006,0x000002d3,0x000002d2,
0x000000bb,0x00050084,0x00000006,0x000002d4,0x000002d3,0x000000c9,0x00050080,0x00000006,
0x000002d5,0x000002cd,0x000002d4,0x0003003e,0x000000c0,0x000002d5,0x0004003d,0x00000006,
0x000002d6,0x00000054,0x00050084,0x00000006,0x000002d7,0x000002d6,0x00000021,0x00050080,
0x00000006,0x000002d8,0x000002d7,0x00000055,0x00050087,0x00000006,0x000002da,0x000002d8,
0x000002d9,0x0003003e,0x000000cc,0x000002da,0x0004003d,0x00000006,0x000002db,0x000000c0,
0x000500af,0x00000033,0x000002dc,0x000002db,0x00000055,0x0004003d,0x00000006,0x000002dd,
0x000000c0,0x000500b1,0x00000033,0x000002de,0x000002dd,0x00000026,0x000500a7,0x00000033,
0x000002df,0x000002dc,0x000002de,0x0004003d,0x00000006,0x000002e0,0x000000b6,0x000500af,
0x00000033,0x000002e1,0x000002e0,0x00000055,0x000500a7,0x00000033,0x000002e2,0x000002df,
0x000002e1,0x0004003d,0x00000006,0x000002e3,0x000000b6,0x000500b1,0x00000033,0x000002e4,
0x000002e3,0x00000028,0x000500a7,0x00000033,0x000002e5,0x000002e2,0x000002e4,0x000300f7,
0x000002e7,0x00000000,0x000400fa,0x000002e5,0x000002e6,0x000002e7,0x000200f8,0x000002e6,
0x0004003d,0x00000006,0x000002e8,0x00000024,0x0004003d,0x00000006,0x000002e9,0x000000cc,
0x00050084,0x00000006,0x000002eb,0x000002e9,0x000002ea,0x00050080,0x00000006,0x000002ec,
0x000002e8,0x000002eb,0x0004003d,0x00000006,0x000002ed,0x000000c0,0x00050084,0x00000006,
0x000002ee,0x000002ed,0x00000028,0x00050080,0x00000006,0x000002ef,0x000002ec,0x000002ee,
0x0004003d,0x00000006,0x000002f0,0x000000b6,0x00050080,0x00000006,0x000002f1,0x000002ef,
0x000002f0,0x00060041,0x000000ed,0x000002f2,0x000000e2,0x00000055,0x000002f1,0x0004003d,
0x00000047,0x000002f3,0x000002f2,0x00050041,0x000000f0,0x000002f4,0x0000005c,0x0000000d,
0x0003003e,0x000002f4,0x000002f3,0x000200f9,0x000002e7,0x000200f8,0x000002e7,0x0004003d,
0x00000006,0x000002f5,0x000000b0,0x0004003d,0x00000006,0x000002f6,0x00000054,0x00050084,
0x00000006,0x000002f7,0x000002f6,0x00000021,0x00050080,0x00000006,0x000002f8,0x000002f7,
0x0000009b,0x0005008b,0x00000006,0x000002f9,0x000002f8,0x000000bb,0x00050084,0x00000006,
0x000002fa,0x000002f9,0x000000bd,0x00050080,0x00000006,0x000002fb,0x000002f5,0x000002fa,
0x0003003e,0x000000b6,0x000002fb,0x0004003d,0x00000006,0x000002fc,0x000000aa,0x0004003d,
0x00000006,0x000002fd,0x00000054,0x00050084,0x00000006,0x000002fe,0x000002fd,0x00000021,
0x00050080,0x00000006,0x000002ff,0x000002fe,0x0000009b,0x0005008b,0x00000006,0x00000301,
0x000002ff,0x00000300,0x00050087,0x00000006,0x00000302,0x00000301,0x000000bb,0x00050084,
0x00000006,0x00000303,0x00000302,0x000000c9,0x00050080,0x00000006,0x00000304,0x000002fc,
0x00000303,0x0003003e,0x000000c0,0x00000304,0x0004003d,0x00000006,0x00000305,0x00000054,
0x00050084,0x00000006,0x00000306,0x00000305,0x00000021,0x00050080,0x00000006,0x00000307,
0x00000306,0x0000009b,0x00050087,0x00000006,0x00000309,0x00000307,0x00000308,0x0003003e,
0x000000cc,0x00000309,0x0004003d,0x00000006,0x0000030a,0x000000c0,0x000500af,0x00000033,
0x0000030b,0x0000030a,0x00000055,0x0004003d,0x00000006,0x0000030c,0x000000c0,0x000500b1,
0x00000033,0x0000030d,0x0000030c,0x00000026,0x000500a7,0x00000033,0x0000030e,0x0000030b,
0x0000030d,0x0004003d,0x00000006,0x0000030f,0x000000b6,0x000500af,0x00000033,0x00000310,
0x0000030f,0x00000055,0x000500a7,0x00000033,0x00000311,0x0000030e,0x00000310,0x0004003d,
0x00000006,0x00000312,0x000000b6,0x000500b1,0x00000033,0x00000313,0x00000312,0x00000028,
0x000500a7,0x00000033,0x00000314,0x00000311,0x00000313,0x000300f7,0x00000316,0x00000000,
0x000400fa,0x00000314,0x00000315,0x00000316,0x000200f8,0x00000315,0x0004003d,0x00000006,
0x00000317,0x00000024,0x0004003d,0x00000006,0x00000318,0x000000cc,0x00050084,0x00000006,
0x0000031a,0x00000318,0x00000319,0x00050080,0x00000006,0x0000031b,0x00000317,0x0000031a,
0x0004003d,0x00000006,0x0000031c,0x000000c0,0x00050084,0x00000006,0x0000031d,0x0000031c,
0x00000028,0x00050080,0x00000006,0x0000031e,0x0000031b,0x0000031d,0x0004003d,0x00000006,
0x0000031f,0x000000b6,0x00050080,0x00000006,0x00000320,0x0000031e,0x0000031f,0x00060041,
0x000000ed,0x00000321,0x000000e2,0x00000055,0x00000320,0x0004003d,0x00000047,0x00000322,
0x00000321,0x00050041,0x000000f0,0x00000323,0x0000005c,0x00000013,0x0003003e,0x00000323,
0x00000322,0x000200f9,0x00000316,0x000200f8,0x00000316,0x0004003d,0x00000006,0x00000324,
0x000000b0,0x0004003d,0x00000006,0x00000325,0x00000054,0x00050084,0x00000006,0x00000326,
0x00000325,0x00000021,0x00050080,0x00000006,0x00000327,0x00000326,0x00000124,0x0005008b,
0x00000006,0x00000328,0x00000327,0x000000bb,0x00050084,0x00000006,0x00000329,0x00000328,
0x000000bd,0x00050080,0x00000006,0x0000032a,0x00000324,0x00000329,0x0003003e,0x000000b6,
0x0000032a,0x0004003d,0x00000006,0x0000032b,0x000000aa,0x0004003d,0x00000006,0x0000032c,
0x00000054,0x00050084,0x00000006,0x0000032d,0x0000032c,0x00000021,0x00050080,0x00000006,
0x0000032e,0x0000032d,0x00000124,0x0005008b,0x00000006,0x00000330,0x0000032e,0x0000032f,
0x00050087,0x00000006,0x00000331,0x00000330,0x000000bb,0x00050084,0x00000006,0x00000332,
0x00000331,0x000000c9,0x00050080,0x00000006,0x00000333,0x0000032b,0x00000332,0x0003003e,
0x000000c0,0x00000333,0x0004003d,0x00000006,0x00000334,0x00000054,0x00050084,0x00000006,
0x00000335,0x00000334,0x00000021,0x00050080,0x00000006,0x00000336,0x00000335,0x00000124,
0x00050087,0x00000006,0x00000338,0x00000336,0x00000337,0x0003003e,0x000000cc,0x00000338,
0x0004003d,0x00000006,0x00000339,0x000000c0,0x000500af,0x00000033,0x0000033a,0x00000339,
0x00000055,0x0004003d,0x00000006,0x0000033b,0x000000c0,0x000500b1,0x00000033,0x0000033c,
0x0000033b,0x00000026,0x000500a7,0x00000033,0x0000033d,0x0000033a,0x0000033c,0x0004003d,
0x00000006,0x0000033e,0x000000b6,0x000500af,0x00000033,0x0000033f,0x0000033e,0x00000055,
0x000500a7,0x00000033,0x00000340,0x0000033d,0x0000033f,0x0004003d,0x00000006,0x00000341,
0x000000b6,0x000500b1,0x00000033,0x00000342,0x00000341,0x00000028,0x000500a7,0x00000033,
0x00000343,0x00000340,0x00000342,0x000300f7,0x00000345,0x00000000,0x000400fa,0x00000343,
0x00000344,0x00000345,0x000200f8,0x00000344,0x0004003d,0x00000006,0x00000346,0x00000024,
0x0004003d,0x00000006,0x00000347,0x000000cc,0x00050084,0x00000006,0x00000349,0x00000347,
0x00000348,0x00050080,0x00000006,0x0000034a,0x00000346,0x00000349,0x0004003d,0x00000006,
0x0000034b,0x000000c0,0x00050084,0x00000006,0x0000034c,0x0000034b,0x00000028,0x00050080,
0x00000006,0x0000034d,0x0000034a,0x0000034c,0x0004003d,0x00000006,0x0000034e,0x000000b6,
0x00050080,0x00000006,0x0000034f,0x0000034d,0x0000034e,0x00060041,0x000000ed,0x00000350,
0x000000e2,0x00000055,0x0000034f,0x0004003d,0x00000047,0x00000351,0x00000350,0x00050041,
0x000000f0,0x00000352,0x0000005c,0x00000018,0x0003003e,0x00000352,0x00000351,0x000200f9,
0x00000345,0x000200f8,0x00000345,0x0004003d,0x00000006,0x00000353,0x000000b0,0x0004003d,
0x00000006,0x00000354,0x00000054,0x00050084,0x00000006,0x00000355,0x00000354,0x00000021,
0x00050080,0x00000006,0x00000356,0x00000355,0x00000154,0x0005008b,0x00000006,0x00000357,
0x00000356,0x000000bb,0x00050084,0x00000006,0x00000358,0x00000357,0x000000bd,0x00050080,
0x00000006,0x00000359,0x00000353,0x00000358,0x0003003e,0x000000b6,0x00000359,0x0004003d,
0x00000006,0x0000035a,0x000000aa,0x0004003d,0x00000006,0x0000035b,0x00000054,0x00050084,
0x00000006,0x0000035c,0x0000035b,0x00000021,0x00050080,0x00000006,0x0000035d,0x0000035c,
0x00000154,0x0005008b,0x00000006,0x0000035f,0x0000035d,0x0000035e,0x00050087,0x00000006,
0x00000360,0x0000035f,0x000000bb,0x00050084,0x00000006,0x00000361,0x00000360,0x000000c9,
0x00050080,0x00000006,0x00000362,0x0000035a,0x00000361,0x0003003e,0x000000c0,0x00000362,
0x0004003d,0x00000006,0x00000363,0x00000054,0x00050084,0x00000006,0x00000364,0x00000363,
0x00000021,0x00050080,0x00000006,0x00000365,0x00000364,0x00000154,0x00050087,0x00000006,
0x00000367,0x00000365,0x00000366,0x0003003e,0x000000cc,0x00000367,0x0004003d,0x00000006,
0x00000368,0x000000c0,0x000500af,0x00000033,0x00000369,0x00000368,0x00000055,0x0004003d,
0x00000006,0x0000036a,0x000000c0,0x000500b1,0x00000033,0x0000036b,0x0000036a,0x00000026,
0x000500a7,0x00000033,0x0000036c,0x00000369,0x0000036b,0x0004003d,0x00000006,0x0000036d,
0x000000b6,0x000500af,0x00000033,0x0000036e,0x0000036d,0x00000055,0x000500a7,0x00000033,
0x0000036f,0x0000036c,0x0000036e,0x0004003d,0x00000006,0x00000370,0x000000b6,0x000500b1,
0x00000033,0x00000371,0x00000370,0x00000028,0x000500a7,0x00000033,0x00000372,0x0000036f,
0x00000371,0x000300f7,0x00000374,0x00000000,0x000400fa,0x00000372,0x00000373,0x00000374,
0x000200f8,0x00000373,0x0004003d,0x00000006,0x00000375,0x00000024,0x0004003d,0x00000006,
0x00000376,0x000000cc,0x00050084,0x00000006,0x00000378,0x00000376,0x00000377,0x00050080,
0x00000006,0x00000379,0x00000375,0x00000378,0x0004003d,0x00000006,0x0000037a,0x000000c0,
0x00050084,0x00000006,0x0000037b,0x0000037a,0x00000028,0x00050080,0x00000006,0x0000037c,
0x00000379,0x0000037b,0x0004003d,0x00000006,0x0000037d,0x000000b6,0x00050080,0x00000006,
0x0000037e,0x0000037c,0x0000037d,0x00060041,0x000000ed,0x0000037f,0x000000e2,0x00000055,
0x0000037e,0x0004003d,0x00000047,0x00000380,0x0000037f,0x00050041,0x000000f0,0x00000381,
0x0000005c,0x00000180,0x0003003e,0x00000381,0x00000380,0x000200f9,0x00000374,0x000200f8,
0x00000374,0x0004003d,0x00000048,0x00000382,0x0000005e,0x0004003d,0x00000048,0x00000383,
0x0000005c,0x00050094,0x00000047,0x00000384,0x00000382,0x00000383,0x00050041,0x000000f0,
0x00000385,0x0000004a,0x00000018,0x0004003d,0x00000047,0x00000386,0x00000385,0x00050081,
0x00000047,0x00000387,0x00000386,0x00000384,0x00050041,0x000000f0,0x00000388,0x0000004a,
0x00000018,0x0003003e,0x00000388,0x00000387,0x0004003d,0x00000048,0x00000389,0x0000006a,
0x0004003d,0x00000048,0x0000038a,0x0000005c,0x00050094,0x00000047,0x0000038b,0x00000389,
0x0000038a,0x00050041,0x000000f0,0x0000038c,0x0000004d,0x00000018,0x0004003d,0x00000047,
0x0000038d,0x0000038c,0x00050081,0x00000047,0x0000038e,0x0000038d,0x0000038b,0x00050041,
0x000000f0,0x0000038f,0x0000004d,0x00000018,0x0003003e,0x0000038f,0x0000038e,0x0004003d,
0x00000048,0x00000390,0x00000071,0x0004003d,0x00000048,0x00000391,0x0000005c,0x00050094,
0x00000047,0x00000392,0x00000390,0x00000391,0x00050041,0x000000f0,0x00000393,0x0000004e,
0x00000018,0x0004003d,0x00000047,0x00000394,0x00000393,0x00050081,0x00000047,0x00000395,
0x00000394,0x00000392,0x00050041,0x000000f0,0x00000396,0x0000004e,0x00000018,0x0003003e,
0x00000396,0x00000395,0x0004003d,0x00000048,0x00000397,0x00000078,0x0004003d,0x00000048,
0x00000398,0x0000005c,0x00050094,0x00000047,0x00000399,0x00000397,0x00000398,0x00050041,
0x000000f0,0x0000039a,0x0000004f,0x00000018,0x0004003d,0x00000047,0x0000039b,0x0000039a,
0x00050081,0x00000047,0x0000039c,0x0000039b,0x00000399,0x00050041,0x000000f0,0x0000039d,
0x0000004f,0x00000018,0x0003003e,0x0000039d,0x0000039c,0x0004003d,0x00000048,0x0000039e,
0x0000007f,0x0004003d,0x00000048,0x0000039f,0x0000005c,0x00050094,0x00000047,0x000003a0,
0x0000039e,0x0000039f,0x00050041,0x000000f0,0x000003a1,0x00000050,0x00000018,0x0004003d,
0x00000047,0x000003a2,0x000003a1,0x00050081,0x00000047,0x000003a3,0x000003a2,0x000003a0,
0x00050041,0x000000f0,0x000003a4,0x00000050,0x00000018,0x0003003e,0x000003a4,0x000003a3,
0x0004003d,0x00000048,0x000003a5,0x00000086,0x0004003d,0x00000048,0x000003a6,0x0000005c,
0x00050094,0x00000047,0x000003a7,0x000003a5,0x000003a6,0x00050041,0x000000f0,0x000003a8,
0x00000051,0x00000018,0x0004003d,0x00000047,0x000003a9,0x000003a8,0x00050081,0x00000047,
0x000003aa,0x000003a9,0x000003a7,0x00050041,0x000000f0,0x000003ab,0x00000051,0x00000018,
0x0003003e,0x000003ab,0x000003aa,0x0004003d,0x00000048,0x000003ac,0x0000008d,0x0004003d,
0x00000048,0x000003ad,0x0000005c,0x00050094,0x00000047,0x000003ae,0x000003ac,0x000003ad,
0x00050041,0x000000f0,0x000003af,0x00000052,0x00000018,0x0004003d,0x00000047,0x000003b0,
0x000003af,0x00050081,0x00000047,0x000003b1,0x000003b0,0x000003ae,0x00050041,0x000000f0,
0x000003b2,0x00000052,0x00000018,0x0003003e,0x000003b2,0x000003b1,0x0004003d,0x00000048,
0x000003b3,0x00000094,0x0004003d,0x00000048,0x000003b4,0x0000005c,0x00050094,0x00000047,
0x000003b5,0x000003b3,0x000003b4,0x00050041,0x000000f0,0x000003b6,0x00000053,0x00000018,
0x0004003d,0x00000047,0x000003b7,0x000003b6,0x00050081,0x00000047,0x000003b8,0x000003b7,
0x000003b5,0x00050041,0x000000f0,0x000003b9,0x00000053,0x00000018,0x0003003e,0x000003b9,
0x000003b8,0x0004003d,0x00000006,0x000003ba,0x00000020,0x00050080,0x00000006,0x000003bb,
0x000003ba,0x00000154,0x0005008b,0x00000006,0x000003bc,0x000003bb,0x000000a4,0x0003003e,
0x000000a1,0x000003bc,0x0004003d,0x00000006,0x000003bd,0x00000020,0x00050080,0x00000006,
0x000003be,0x000003bd,0x00000154,0x00050087,0x00000006,0x000003bf,0x000003be,0x000000a4,
0x0003003e,0x000000a6,0x000003bf,0x0004003d,0x00000006,0x000003c0,0x000000a6,0x00050084,
0x00000006,0x000003c1,0x000003c0,0x000000ac,0x00050082,0x00000006,0x000003c2,0x000003c1,
0x000000ae,0x0003003e,0x000000aa,0x000003c2,0x0004003d,0x00000006,0x000003c3,0x000000a1,
0x00050084,0x00000006,0x000003c4,0x000003c3,0x000000b2,0x00050082,0x00000006,0x000003c5,
0x000003c4,0x000000b4,0x0003003e,0x000000b0,0x000003c5,0x0004003d,0x00000006,0x000003c6,
0x000000b0,0x0004003d,0x00000006,0x000003c7,0x00000054,0x00050084,0x00000006,0x000003c8,
0x000003c7,0x00000021,0x00050080,0x00000006,0x000003c9,0x000003c8,0x00000055,0x0005008b,
0x00000006,0x000003ca,0x000003c9,0x000000bb,0x00050084,0x00000006,0x000003cb,0x000003ca,
0x000000bd,0x00050080,0x00000006,0x000003cc,0x000003c6,0x000003cb,0x0003003e,0x000000b6,
0x000003cc,0x0004003d,0x00000006,0x000003cd,0x000000aa,0x0004003d,0x00000006,0x000003ce,
0x00000054,0x00050084,0x00000006,0x000003cf,0x000003ce,0x00000021,0x00050080,0x00000006,
0x000003d0,0x000003cf,0x00000055,0x0005008b,0x00000006,0x000003d2,0x000003d0,0x000003d1,
0x00050087,0x00000006,0x000003d3,0x000003d2,0x000000bb,0x00050084,0x00000006,0x000003d4,
0x000003d3,0x000000c9,0x00050080,0x00000006,0x000003d5,0x000003cd,0x000003d4,0x0003003e,
0x000000c0,0x000003d5,0x0004003d,0x00000006,0x000003d6,0x00000054,0x00050084,0x00000006,
0x000003d7,0x000003d6,0x00000021,0x00050080,0x00000006,0x000003d8,0x000003d7,0x00000055,
0x00050087,0x00000006,0x000003da,0x000003d8,0x000003d9,0x0003003e,0x000000cc,0x000003da,
0x0004003d,0x00000006,0x000003db,0x000000c0,0x000500af,0x00000033,0x000003dc,0x000003db,
0x00000055,0x0004003d,0x00000006,0x000003dd,0x000000c0,0x000500b1,0x00000033,0x000003de,
0x000003dd,0x00000026,0x000500a7,0x00000033,0x000003df,0x000003dc,0x000003de,0x0004003d,
0x00000006,0x000003e0,0x000000b6,0x000500af,0x00000033,0x000003e1,0x000003e0,0x00000055,
0x000500a7,0x00000033,0x000003e2,0x000003df,0x000003e1,0x0004003d,0x00000006,0x000003e3,
0x000000b6,0x000500b1,0x00000033,0x000003e4,0x000003e3,0x00000028,0x000500a7,0x00000033,
0x000003e5,0x000003e2,0x000003e4,0x000300f7,0x000003e7,0x00000000,0x000400fa,0x000003e5,
0x000003e6,0x000003e7,0x000200f8,0x000003e6,0x0004003d,0x00000006,0x000003e8,0x00000024,
0x0004003d,0x00000006,0x000003e9,0x000000cc,0x00050084,0x00000006,0x000003eb,0x000003e9,
0x000003ea,0x00050080,0x00000006,0x000003ec,0x000003e8,0x000003eb,0x0004003d,0x00000006,
0x000003ed,0x000000c0,0x00050084,0x00000006,0x000003ee,0x000003ed,0x00000028,0x00050080,
0x00000006,0x000003ef,0x000003ec,0x000003ee,0x0004003d,0x00000006,0x000003f0,0x000000b6,
0x00050080,0x00000006,0x000003f1,0x000003ef,0x000003f0,0x00060041,0x000000ed,0x000003f2,
0x000000e2,0x00000055,0x000003f1,0x0004003d,0x00000047,0x000003f3,0x000003f2,0x00050041,
0x000000f0,0x000003f4,0x0000005d,0x0000000d,0x0003003e,0x000003f4,0x000003f3,0x000200f9,
0x000003e7,0x000200f8,0x000003e7,0x0004003d,0x00000006,0x000003f5,0x000000b0,0x0004003d,
0x00000006,0x000003f6,0x00000054,0x00050084,0x00000006,0x000003f7,0x000003f6,0x00000021,
0x00050080,0x00000006,0x000003f8,0x000003f7,0x0000009b,0x0005008b,0x00000006,0x000003f9,
0x000003f8,0x000000bb,0x00050084,0x00000006,0x000003fa,0x000003f9,0x000000bd,0x00050080,
0x00000006,0x000003fb,0x000003f5,0x000003fa,0x0003003e,0x000000b6,0x000003fb,0x0004003d,
0x00000006,0x000003fc,0x000000aa,0x0004003d,0x00000006,0x000003fd,0x00000054,0x00050084,
0x00000006,0x000003fe,0x000003fd,0x00000021,0x00050080,0x00000006,0x000003ff,0x000003fe,
0x0000009b,0x0005008b,0x00000006,0x00000401,0x000003ff,0x00000400,0x00050087,0x00000006,
0x00000402,0x00000401,0x000000bb,0x00050084,0x00000006,0x00000403,0x00000402,0x000000c9,
0x00050080,0x00000006,0x00000404,0x000003fc,0x00000403,0x0003003e,0x000000c0,0x00000404,
0x0004003d,0x00000006,0x00000405,0x00000054,0x00050084,0x00000006,0x00000406,0x00000405,
0x00000021,0x00050080,0x00000006,0x00000407,0x00000406,0x0000009b,0x00050087,0x00000006,
0x00000409,0x00000407,0x00000408,0x0003003e,0x000000cc,0x00000409,0x0004003d,0x00000006,
0x0000040a,0x000000c0,0x000500af,0x00000033,0x0000040b,0x0000040a,0x00000055,0x0004003d,
0x00000006,0x0000040c,0x000000c0,0x000500b1,0x00000033,0x0000040d,0x0000040c,0x00000026,
0x000500a7,0x00000033,0x0000040e,0x0000040b,0x0000040d,0x0004003d,0x00000006,0x0000040f,
0x000000b6,0x000500af,0x00000033,0x00000410,0x0000040f,0x00000055,0x000500a7,0x00000033,
0x00000411,0x0000040e,0x00000410,0x0004003d,0x00000006,0x00000412,0x000000b6,0x000500b1,
0x00000033,0x00000413,0x00000412,0x00000028,0x000500a7,0x00000033,0x00000414,0x00000411,
0x00000413,0x000300f7,0x00000416,0x00000000,0x000400fa,0x00000414,0x00000415,0x00000416,
0x000200f8,0x00000415,0x0004003d,0x00000006,0x00000417,0x00000024,0x0004003d,0x00000006,
0x00000418,0x000000cc,0x00050084,0x00000006,0x0000041a,0x00000418,0x00000419,0x00050080,
0x00000006,0x0000041b,0x00000417,0x0000041a,0x0004003d,0x00000006,0x0000041c,0x000000c0,
0x00050084,0x00000006,0x0000041d,0x0000041c,0x00000028,0x00050080,0x00000006,0x0000041e,
0x0000041b,0x0000041d,0x0004003d,0x00000006,0x0000041f,0x000000b6,0x00050080,0x00000006,
0x00000420,0x0000041e,0x0000041f,0x00060041,0x000000ed,0x00000421,0x000000e2,0x00000055,
0x00000420,0x0004003d,0x00000047,0x00000422,0x00000421,0x00050041,0x000000f0,0x00000423,
0x0000005d,0x00000013,0x0003003e,0x00000423,0x00000422,0x000200f9,0x00000416,0x000200f8,
0x00000416,0x0004003d,0x00000006,0x00000424,0x000000b0,0x0004003d,0x00000006,0x00000425,
0x00000054,0x00050084,0x00000006,0x00000426,0x00000425,0x00000021,0x00050080,0x00000006,
0x00000427,0x00000426,0x00000124,0x0005008b,0x00000006,0x00000428,0x00000427,0x000000bb,
0x00050084,0x00000006,0x00000429,0x00000428,0x000000bd,0x00050080,0x00000006,0x0000042a,
0x00000424,0x00000429,0x0003003e,0x000000b6,0x0000042a,0x0004003d,0x00000006,0x0000042b,
0x000000aa,0x0004003d,0x00000006,0x0000042c,0x00000054,0x00050084,0x00000006,0x0000042d,
0x0000042c,0x00000021,0x00050080,0x00000006,0x0000042e,0x0000042d,0x00000124,0x0005008b,
0x00000006,0x00000430,0x0000042e,0x0000042f,0x00050087,0x00000006,0x00000431,0x00000430,
0x000000bb,0x00050084,0x00000006,0x00000432,0x00000431,0x000000c9,0x00050080,0x00000006,
0x00000433,0x0000042b,0x00000432,0x0003003e,0x000000c0,0x00000433,0x0004003d,0x00000006,
0x00000434,0x00000054,0x00050084,0x00000006,0x00000435,0x00000434,0x00000021,0x00050080,
0x00000006,0x00000436,0x00000435,0x00000124,0x00050087,0x00000006,0x00000438,0x00000436,
0x00000437,0x0003003e,0x000000cc,0x00000438,0x0004003d,0x00000006,0x00000439,0x000000c0,
0x000500af,0x00000033,0x0000043a,0x00000439,0x00000055,0x0004003d,0x00000006,0x0000043b,
0x000000c0,0x000500b1,0x00000033,0x0000043c,0x0000043b,0x00000026,0x000500a7,0x00000033,
0x0000043d,0x0000043a,0x0000043c,0x0004003d,0x00000006,0x0000043e,0x000000b6,0x000500af,
0x00000033,0x0000043f,0x0000043e,0x00000055,0x000500a7,0x00000033,0x00000440,0x0000043d,
0x0000043f,0x0004003d,0x00000006,0x00000441,0x000000b6,0x000500b1,0x00000033,0x00000442,
0x00000441,0x00000028,0x000500a7,0x00000033,0x00000443,0x00000440,0x00000442,0x000300f7,
0x00000445,0x00000000,0x000400fa,0x00000443,0x00000444,0x00000445,0x000200f8,0x00000444,
0x0004003d,0x00000006,0x00000446,0x00000024,0x0004003d,0x00000006,0x00000447,0x000000cc,
0x00050084,0x00000006,0x00000449,0x00000447,0x00000448,0x00050080,0x00000006,0x0000044a,
0x00000446,0x00000449,0x0004003d,0x00000006,0x0000044b,0x000000c0,0x00050084,0x00000006,
0x0000044c,0x0000044b,0x00000028,0x00050080,0x00000006,0x0000044d,0x0000044a,0x0000044c,
0x0004003d,0x00000006,0x0000044e,0x000000b6,0x00050080,0x00000006,0x0000044f,0x0000044d,
0x0000044e,0x00060041,0x000000ed,0x00000450,0x000000e2,0x00000055,0x0000044f,0x0004003d,
0x00000047,0x00000451,0x00000450,0x00050041,0x000000f0,0x00000452,0x0000005d,0x00000018,
0x0003003e,0x00000452,0x00000451,0x000200f9,0x00000445,0x000200f8,0x00000445,0x0004003d,
0x00000006,0x00000453,0x000000b0,0x0004003d,0x00000006,0x00000454,0x00000054,0x00050084,
0x00000006,0x00000455,0x00000454,0x00000021,0x00050080,0x00000006,0x00000456,0x00000455,
0x00000154,0x0005008b,0x00000006,0x00000457,0x00000456,0x000000bb,0x00050084,0x00000006,
0x00000458,0x00000457,0x000000bd,0x00050080,0x00000006,0x00000459,0x00000453,0x00000458,
0x0003003e,0x000000b6,0x00000459,0x0004003d,0x00000006,0x0000045a,0x000000aa,0x0004003d,
0x00000006,0x0000045b,0x00000054,0x00050084,0x00000006,0x0000045c,0x0000045b,0x00000021,
0x00050080,0x00000006,0x0000045d,0x0000045c,0x00000154,0x0005008b,0x00000006,0x0000045f,
0x0000045d,0x0000045e,0x00050087,0x00000006,0x00000460,0x0000045f,0x000000bb,0x00050084,
0x00000006,0x00000461,0x00000460,0x000000c9,0x00050080,0x00000006,0x00000462,0x0000045a,
0x00000461,0x0003003e,0x000000c0,0x00000462,0x0004003d,0x00000006,0x00000463,0x00000054,
0x00050084,0x00000006,0x00000464,0x00000463,0x00000021,0x00050080,0x00000006,0x00000465,
0x00000464,0x00000154,0x00050087,0x00000006,0x00000467,0x00000465,0x00000466,0x0003003e,
0x000000cc,0x00000467,0x0004003d,0x00000006,0x00000468,0x000000c0,0x000500af,0x00000033,
0x00000469,0x00000468,0x00000055,0x0004003d,0x00000006,0x0000046a,0x000000c0,0x000500b1,
0x00000033,0x0000046b,0x0000046a,0x00000026,0x000500a7,0x00000033,0x0000046c,0x00000469,
0x0000046b,0x0004003d,0x00000006,0x0000046d,0x000000b6,0x000500af,0x00000033,0x0000046e,
0x0000046d,0x00000055,0x000500a7,0x00000033,0x0000046f,0x0000046c,0x0000046e,0x0004003d,
0x00000006,0x00000470,0x000000b6,0x000500b1,0x00000033,0x00000471,0x00000470,0x00000028,
0x000500a7,0x00000033,0x00000472,0x0000046f,0x00000471,0x000300f7,0x00000474,0x00000000,
0x000400fa,0x00000472,0x00000473,0x00000474,0x000200f8,0x00000473,0x0004003d,0x00000006,
0x00000475,0x00000024,0x0004003d,0x00000006,0x00000476,0x000000cc,0x00050084,0x00000006,
0x00000478,0x00000476,0x00000477,0x00050080,0x00000006,0x00000479,0x00000475,0x00000478,
0x0004003d,0x00000006,0x0000047a,0x000000c0,0x00050084,0x00000006,0x0000047b,0x0000047a,
0x00000028,0x00050080,0x00000006,0x0000047c,0x00000479,0x0000047b,0x0004003d,0x00000006,
0x0000047d,0x000000b6,0x00050080,0x00000006,0x0000047e,0x0000047c,0x0000047d,0x00060041,
0x000000ed,0x0000047f,0x000000e2,0x00000055,0x0000047e,0x0004003d,0x00000047,0x00000480,
0x0000047f,0x00050041,0x000000f0,0x00000481,0x0000005d,0x00000180,0x0003003e,0x00000481,
0x00000480,0x000200f9,0x00000474,0x000200f8,0x00000474,0x0004003d,0x00000048,0x00000482,
0x0000005e,0x0004003d,0x00000048,0x00000483,0x0000005d,0x00050094,0x00000047,0x00000484,
0x00000482,0x00000483,0x00050041,0x000000f0,0x00000485,0x0000004a,0x00000180,0x0004003d,
0x00000047,0x00000486,0x00000485,0x00050081,0x00000047,0x00000487,0x00000486,0x00000484,
0x00050041,0x000000f0,0x00000488,0x0000004a,0x00000180,0x0003003e,0x00000488,0x00000487,
0x0004003d,0x00000048,0x00000489,0x0000006a,0x0004003d,0x00000048,0x0000048a,0x0000005d,
0x00050094,0x00000047,0x0000048b,0x00000489,0x0000048a,0x00050041,0x000000f0,0x0000048c,
0x0000004d,0x00000180,0x0004003d,0x00000047,0x0000048d,0x0000048c,0x00050081,0x00000047,
0x0000048e,0x0000048d,0x0000048b,0x00050041,0x000000f0,0x0000048f,0x0000004d,0x00000180,
0x0003003e,0x0000048f,0x0000048e,0x0004003d,0x00000048,0x00000490,0x00000071,0x0004003d,
0x00000048,0x00000491,0x0000005d,0x00050094,0x00000047,0x00000492,0x00000490,0x00000491,
0x00050041,0x000000f0,0x00000493,0x0000004e,0x00000180,0x0004003d,0x00000047,0x00000494,
0x00000493,0x00050081,0x00000047,0x00000495,0x00000494,0x00000492,0x00050041,0x000000f0,
0x00000496,0x0000004e,0x00000180,0x0003003e,0x00000496,0x00000495,0x0004003d,0x00000048,
0x00000497,0x00000078,0x0004003d,0x00000048,0x00000498,0x0000005d,0x00050094,0x00000047,
0x00000499,0x00000497,0x00000498,0x00050041,0x000000f0,0x0000049a,0x0000004f,0x00000180,
0x0004003d,0x00000047,0x0000049b,0x0000049a,0x00050081,0x00000047,0x0000049c,0x0000049b,
0x00000499,0x00050041,0x000000f0,0x0000049d,0x0000004f,0x00000180,0x0003003e,0x0000049d,
0x0000049c,0x0004003d,0x00000048,0x0000049e,0x0000007f,0x0004003d,0x00000048,0x0000049f,
0x0000005d,0x00050094,0x00000047,0x000004a0,0x0000049e,0x0000049f,0x00050041,0x000000f0,
0x000004a1,0x00000050,0x00000180,0x0004003d,0x00000047,0x000004a2,0x000004a1,0x00050081,
0x00000047,0x000004a3,0x000004a2,0x000004a0,0x00050041,0x000000f0,0x000004a4,0x00000050,
0x00000180,0x0003003e,0x000004a4,0x000004a3,0x0004003d,0x00000048,0x000004a5,0x00000086,
0x0004003d,0x00000048,0x000004a6,0x0000005d,0x00050094,0x00000047,0x000004a7,0x000004a5,
0x000004a6,0x00050041,0x000000f0,0x000004a8,0x00000051,0x00000180,0x0004003d,0x00000047,
0x000004a9,0x000004a8,0x00050081,0x00000047,0x000004aa,0x000004a9,0x000004a7,0x00050041,
0x000000f0,0x000004ab,0x00000051,0x00000180,0x0003003e,0x000004ab,0x000004aa,0x0004003d,
0x00000048,0x000004ac,0x0000008d,0x0004003d,0x00000048,0x000004ad,0x0000005d,0x00050094,
0x00000047,0x000004ae,0x000004ac,0x000004ad,0x00050041,0x000000f0,0x000004af,0x00000052,
0x00000180,0x0004003d,0x00000047,0x000004b0,0x000004af,0x00050081,0x00000047,0x000004b1,
0x000004b0,0x000004ae,0x00050041,0x000000f0,0x000004b2,0x00000052,0x00000180,0x0003003e,
0x000004b2,0x000004b1,0x0004003d,0x00000048,0x000004b3,0x00000094,0x0004003d,0x00000048,
0x000004b4,0x0000005d,0x00050094,0x00000047,0x000004b5,0x000004b3,0x000004b4,0x00050041,
0x000000f0,0x000004b6,0x00000053,0x00000180,0x0004003d,0x00000047,0x000004b7,0x000004b6,
0x00050081,0x00000047,0x000004b8,0x000004b7,0x000004b5,0x00050041,0x000000f0,0x000004b9,
0x00000053,0x00000180,0x0003003e,0x000004b9,0x000004b8,0x0004003d,0x00000006,0x000004ba,
0x00000054,0x00050080,0x00000006,0x000004bb,0x000004ba,0x0000009b,0x0003003e,0x00000054,
0x000004bb,0x000200f9,0x00000059,0x000200f8,0x00000059,0x0004003d,0x00000006,0x000004bc,
0x00000054,0x0004003d,0x00000006,0x000004bd,0x0000003e,0x000500b1,0x00000033,0x000004be,
0x000004bc,0x000004bd,0x000400fa,0x000004be,0x00000056,0x00000058,0x000200f8,0x00000058,
0x0004003d,0x00000006,0x000004c3,0x0000002c,0x0004003d,0x00000006,0x000004c4,0x0000001c,
0x00050080,0x00000006,0x000004c5,0x000004c4,0x00000055,0x00050084,0x00000006,0x000004c6,
0x000004c5,0x0000002e,0x00050087,0x00000006,0x000004c7,0x000004c6,0x00000021,0x00050080,
0x00000006,0x000004c8,0x000004c3,0x000004c7,0x0004003d,0x00000006,0x000004c9,0x00000012,
0x00050080,0x00000006,0x000004ca,0x000004c8,0x000004c9,0x0004003d,0x00000048,0x000004cb,
0x0000004a,0x00060041,0x00000064,0x000004cc,0x000004c2,0x00000055,0x000004ca,0x0003003e,
0x000004cc,0x000004cb,0x0004003d,0x00000006,0x000004cd,0x0000002c,0x0004003d,0x00000006,
0x000004ce,0x0000001c,0x00050080,0x00000006,0x000004cf,0x000004ce,0x0000009b,0x00050084,
0x00000006,0x000004d0,0x000004cf,0x0000002e,0x00050087,0x00000006,0x000004d1,0x000004d0,
0x00000021,0x00050080,0x00000006,0x000004d2,0x000004cd,0x000004d1,0x0004003d,0x00000006,
0x000004d3,0x00000012,0x00050080,0x00000006,0x000004d4,0x000004d2,0x000004d3,0x0004003d,
0x00000048,0x000004d5,0x0000004d,0x00060041,0x00000064,0x000004d6,0x000004c2,0x00000055,
0x000004d4,0x0003003e,0x000004d6,0x000004d5,0x0004003d,0x00000006,0x000004d7,0x0000002c,
0x0004003d,0x00000006,0x000004d8,0x0000001c,0x00050080,0x00000006,0x000004d9,0x000004d8,
0x00000124,0x00050084,0x00000006,0x000004da,0x000004d9,0x0000002e,0x00050087,0x00000006,
0x000004db,0x000004da,0x00000021,0x00050080,0x00000006,0x000004dc,0x000004d7,0x000004db,
0x0004003d,0x00000006,0x000004dd,0x00000012,0x00050080,0x00000006,0x000004de,0x000004dc,
0x000004dd,0x0004003d,0x00000048,0x000004df,0x0000004e,0x00060041,0x00000064,0x000004e0,
0x000004c2,0x00000055,0x000004de,0x0003003e,0x000004e0,0x000004df,0x0004003d,0x00000006,
0x000004e1,0x0000002c,0x0004003d,0x00000006,0x000004e2,0x0000001c,0x00050080,0x00000006,
0x000004e3,0x000004e2,0x00000154,0x00050084,0x00000006,0x000004e4,0x000004e3,0x0000002e,
0x00050087,0x00000006,0x000004e5,0x000004e4,0x00000021,0x00050080,0x00000006,0x000004e6,
0x000004e1,0x000004e5,0x0004003d,0x00000006,0x000004e7,0x00000012,0x00050080,0x00000006,
0x000004e8,0x000004e6,0x000004e7,0x0004003d,0x00000048,0x000004e9,0x0000004f,0x00060041,
0x00000064,0x000004ea,0x000004c2,0x00000055,0x000004e8,0x0003003e,0x000004ea,0x000004e9,
0x0004003d,0x00000006,0x000004eb,0x0000002c,0x0004003d,0x00000006,0x000004ec,0x0000001c,
0x00050080,0x00000006,0x000004ed,0x000004ec,0x00000021,0x00050084,0x00000006,0x000004ee,
0x000004ed,0x0000002e,0x00050087,0x00000006,0x000004ef,0x000004ee,0x00000021,0x00050080,
0x00000006,0x000004f0,0x000004eb,0x000004ef,0x0004003d,0x00000006,0x000004f1,0x00000012,
0x00050080,0x00000006,0x000004f2,0x000004f0,0x000004f1,0x0004003d,0x00000048,0x000004f3,
0x00000050,0x00060041,0x00000064,0x000004f4,0x000004c2,0x00000055,0x000004f2,0x0003003e,
0x000004f4,0x000004f3,0x0004003d,0x00000006,0x000004f5,0x0000002c,0x0004003d,0x00000006,
0x000004f6,0x0000001c,0x00050080,0x00000006,0x000004f8,0x000004f6,0x000004f7,0x00050084,
0x00000006,0x000004f9,0x000004f8,0x0000002e,0x00050087,0x00000006,0x000004fa,0x000004f9,
0x00000021,0x00050080,0x00000006,0x000004fb,0x000004f5,0x000004fa,0x0004003d,0x00000006,
0x000004fc,0x00000012,0x00050080,0x00000006,0x000004fd,0x000004fb,0x000004fc,0x0004003d,
0x00000048,0x000004fe,0x00000051,0x00060041,0x00000064,0x000004ff,0x000004c2,0x00000055,
0x000004fd,0x0003003e,0x000004ff,0x000004fe,0x0004003d,0x00000006,0x00000500,0x0000002c,
0x0004003d,0x00000006,0x00000501,0x0000001c,0x00050080,0x00000006,0x00000503,0x00000501,
0x00000502,0x00050084,0x00000006,0x00000504,0x00000503,0x0000002e,0x00050087,0x00000006,
0x00000505,0x00000504,0x00000021,0x00050080,0x00000006,0x00000506,0x00000500,0x00000505,
0x0004003d,0x00000006,0x00000507,0x00000012,0x00050080,0x00000006,0x00000508,0x00000506,
0x00000507,0x0004003d,0x00000048,0x00000509,0x00000052,0x00060041,0x00000064,0x0000050a,
0x000004c2,0x00000055,0x00000508,0x0003003e,0x0000050a,0x00000509,0x0004003d,0x00000006,
0x0000050b,0x0000002c,0x0004003d,0x00000006,0x0000050c,0x0000001c,0x00050080,0x00000006,
0x0000050e,0x0000050c,0x0000050d,0x00050084,0x00000006,0x0000050f,0x0000050e,0x0000002e,
0x00050087,0x00000006,0x00000510,0x0000050f,0x00000021,0x00050080,0x00000006,0x00000511,
0x0000050b,0x00000510,0x0004003d,0x00000006,0x00000512,0x00000012,0x00050080,0x00000006,
0x00000513,0x00000511,0x00000512,0x0004003d,0x00000048,0x00000514,0x00000053,0x00060041,
0x00000064,0x00000515,0x000004c2,0x00000055,0x00000513,0x0003003e,0x00000515,0x00000514,
0x000200f9,0x0000003d,0x000200f8,0x0000003d,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,948 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int conv48_spv[7458] = {
0x07230203,0x00010000,0x00080001,0x00000551,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000001,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00007867,0x00080005,0x0000000c,
0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00030005,0x00000012,
0x00007967,0x00030005,0x00000017,0x00007a67,0x00040005,0x0000001c,0x5f74756f,0x00000078,
0x00040005,0x00000020,0x5f74756f,0x00000079,0x00070005,0x00000024,0x75706e69,0x61625f74,
0x5f686374,0x7366666f,0x00007465,0x00040005,0x00000026,0x485f4e49,0x00000000,0x00040005,
0x00000028,0x575f4e49,0x00000000,0x00050005,0x0000002a,0x4e414843,0x534c454e,0x00000000,
0x00070005,0x0000002c,0x7074756f,0x625f7475,0x68637461,0x66666f5f,0x00746573,0x00030005,
0x0000002e,0x0000004d,0x00030005,0x00000030,0x0000004e,0x00040005,0x0000003e,0x74646977,
0x00003068,0x00030005,0x0000003f,0x0000004b,0x00040005,0x00000041,0x74646977,0x00003168,
0x00070005,0x00000043,0x31637273,0x6165725f,0x6f5f3064,0x65736666,0x00000074,0x00040005,
0x0000004a,0x30746f64,0x00000000,0x00040005,0x0000004d,0x31746f64,0x00000000,0x00040005,
0x0000004e,0x32746f64,0x00000000,0x00040005,0x0000004f,0x33746f64,0x00000000,0x00040005,
0x00000050,0x34746f64,0x00000000,0x00040005,0x00000051,0x35746f64,0x00000000,0x00040005,
0x00000052,0x36746f64,0x00000000,0x00040005,0x00000053,0x37746f64,0x00000000,0x00030005,
0x00000054,0x00000069,0x00030005,0x0000005a,0x00003061,0x00030005,0x0000005b,0x00003161,
0x00030005,0x0000005c,0x00003261,0x00030005,0x0000005d,0x00003361,0x00040005,0x0000005e,
0x776f7262,0x00000030,0x00040005,0x00000060,0x75706e49,0x00003374,0x00050006,0x00000060,
0x00000000,0x61746164,0x00000000,0x00040005,0x00000062,0x31637273,0x00000000,0x00040005,
0x0000006a,0x776f7262,0x00000031,0x00040005,0x00000071,0x776f7262,0x00000032,0x00040005,
0x00000078,0x776f7262,0x00000033,0x00040005,0x0000007f,0x776f7262,0x00000034,0x00040005,
0x00000086,0x776f7262,0x00000035,0x00040005,0x0000008d,0x776f7262,0x00000036,0x00040005,
0x00000094,0x776f7262,0x00000037,0x00040005,0x000000a1,0x5f747364,0x00000078,0x00040005,
0x000000a4,0x5f54554f,0x00000057,0x00040005,0x000000a6,0x5f747364,0x00000079,0x00040005,
0x000000aa,0x5f67726f,0x00000079,0x00050005,0x000000ac,0x49525453,0x485f4544,0x00000000,
0x00040005,0x000000ae,0x5f444150,0x00000048,0x00040005,0x000000b0,0x5f67726f,0x00000078,
0x00050005,0x000000b2,0x49525453,0x575f4544,0x00000000,0x00040005,0x000000b4,0x5f444150,
0x00000057,0x00040005,0x000000b6,0x30637273,0x0000785f,0x00050005,0x000000bb,0x544c4946,
0x575f5245,0x00000000,0x00050005,0x000000bd,0x414c4944,0x4e4f4954,0x0000575f,0x00040005,
0x000000c0,0x30637273,0x0000795f,0x00050005,0x000000c5,0x544c4946,0x485f5245,0x00000000,
0x00050005,0x000000c9,0x414c4944,0x4e4f4954,0x0000485f,0x00040005,0x000000cc,0x30637273,
0x00007a5f,0x00040005,0x000000e0,0x75706e49,0x00003074,0x00050006,0x000000e0,0x00000000,
0x61746164,0x00000000,0x00040005,0x000000e2,0x30637273,0x00000000,0x00050005,0x000004bf,
0x73616962,0x6c61765f,0x00000000,0x00040005,0x000004c1,0x75706e49,0x00003174,0x00050006,
0x000004c1,0x00000000,0x61746164,0x00000000,0x00040005,0x000004c3,0x73616962,0x00000000,
0x00040005,0x000004f2,0x7074754f,0x00007475,0x00050006,0x000004f2,0x00000000,0x61746164,
0x00000000,0x00040005,0x000004f4,0x3074756f,0x00000000,0x00050005,0x00000548,0x41434f4c,
0x5a535f4c,0x0000585f,0x00050005,0x00000549,0x41434f4c,0x5a535f4c,0x0000595f,0x00050005,
0x0000054a,0x41434f4c,0x5a535f4c,0x00005a5f,0x00040005,0x0000054b,0x43544142,0x00000048,
0x00040005,0x0000054c,0x4c494154,0x00004d5f,0x00040047,0x0000000c,0x0000000b,0x0000001c,
0x00040047,0x00000026,0x00000001,0x00000003,0x00040047,0x00000028,0x00000001,0x00000004,
0x00040047,0x0000002a,0x00000001,0x0000000c,0x00040047,0x0000002e,0x00000001,0x0000000e,
0x00040047,0x00000030,0x00000001,0x00000010,0x00040047,0x0000003f,0x00000001,0x0000000f,
0x00040047,0x0000005f,0x00000006,0x00000010,0x00040048,0x00000060,0x00000000,0x00000018,
0x00050048,0x00000060,0x00000000,0x00000023,0x00000000,0x00030047,0x00000060,0x00000003,
0x00040047,0x00000062,0x00000022,0x00000000,0x00040047,0x00000062,0x00000021,0x00000002,
0x00040047,0x000000a4,0x00000001,0x00000005,0x00040047,0x000000ac,0x00000001,0x00000006,
0x00040047,0x000000ae,0x00000001,0x00000008,0x00040047,0x000000b2,0x00000001,0x00000007,
0x00040047,0x000000b4,0x00000001,0x00000009,0x00040047,0x000000bb,0x00000001,0x0000000b,
0x00040047,0x000000bd,0x00000001,0x00000013,0x00040047,0x000000c5,0x00000001,0x0000000a,
0x00040047,0x000000c9,0x00000001,0x00000012,0x00040047,0x000000df,0x00000006,0x00000004,
0x00040048,0x000000e0,0x00000000,0x00000018,0x00050048,0x000000e0,0x00000000,0x00000023,
0x00000000,0x00030047,0x000000e0,0x00000003,0x00040047,0x000000e2,0x00000022,0x00000000,
0x00040047,0x000000e2,0x00000021,0x00000000,0x00040047,0x000004c0,0x00000006,0x00000010,
0x00040048,0x000004c1,0x00000000,0x00000018,0x00050048,0x000004c1,0x00000000,0x00000023,
0x00000000,0x00030047,0x000004c1,0x00000003,0x00040047,0x000004c3,0x00000022,0x00000000,
0x00040047,0x000004c3,0x00000021,0x00000001,0x00040047,0x000004f1,0x00000006,0x00000010,
0x00040048,0x000004f2,0x00000000,0x00000019,0x00050048,0x000004f2,0x00000000,0x00000023,
0x00000000,0x00030047,0x000004f2,0x00000003,0x00040047,0x000004f4,0x00000022,0x00000000,
0x00040047,0x000004f4,0x00000021,0x00000003,0x00040047,0x00000548,0x00000001,0x00000000,
0x00040047,0x00000549,0x00000001,0x00000001,0x00040047,0x0000054a,0x00000001,0x00000002,
0x00040047,0x0000054b,0x00000001,0x0000000d,0x00040047,0x0000054c,0x00000001,0x00000011,
0x00040047,0x0000054d,0x00000001,0x00000000,0x00040047,0x0000054e,0x00000001,0x00000001,
0x00040047,0x0000054f,0x00000001,0x00000002,0x00040047,0x00000550,0x0000000b,0x00000019,
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,
0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,
0x00000000,0x00040017,0x0000000a,0x00000009,0x00000003,0x00040020,0x0000000b,0x00000001,
0x0000000a,0x0004003b,0x0000000b,0x0000000c,0x00000001,0x0004002b,0x00000009,0x0000000d,
0x00000000,0x00040020,0x0000000e,0x00000001,0x00000009,0x0004002b,0x00000009,0x00000013,
0x00000001,0x0004002b,0x00000009,0x00000018,0x00000002,0x0004002b,0x00000006,0x0000001d,
0x00000008,0x0004002b,0x00000006,0x00000021,0x00000004,0x00040032,0x00000006,0x00000026,
0x00000000,0x00040032,0x00000006,0x00000028,0x00000000,0x00040032,0x00000006,0x0000002a,
0x00000000,0x00040032,0x00000006,0x0000002e,0x00000000,0x00040032,0x00000006,0x00000030,
0x00000000,0x00020014,0x00000033,0x00060034,0x00000006,0x00000039,0x00000087,0x0000002e,
0x00000021,0x00040032,0x00000006,0x0000003f,0x00000000,0x00060034,0x00000006,0x00000040,
0x00000087,0x0000003f,0x00000021,0x00060034,0x00000006,0x00000042,0x00000087,0x00000030,
0x00000021,0x00030016,0x00000047,0x00000020,0x00040017,0x00000048,0x00000047,0x00000004,
0x00040020,0x00000049,0x00000007,0x00000048,0x0004002b,0x00000047,0x0000004b,0x00000000,
0x0007002c,0x00000048,0x0000004c,0x0000004b,0x0000004b,0x0000004b,0x0000004b,0x0004002b,
0x00000006,0x00000055,0x00000000,0x0003001d,0x0000005f,0x00000048,0x0003001e,0x00000060,
0x0000005f,0x00040020,0x00000061,0x00000002,0x00000060,0x0004003b,0x00000061,0x00000062,
0x00000002,0x00040020,0x00000064,0x00000002,0x00000048,0x0004002b,0x00000006,0x0000009b,
0x00000001,0x00040032,0x00000006,0x000000a4,0x00000000,0x00040032,0x00000006,0x000000ac,
0x00000000,0x00040032,0x00000006,0x000000ae,0x00000000,0x00040032,0x00000006,0x000000b2,
0x00000000,0x00040032,0x00000006,0x000000b4,0x00000000,0x00040032,0x00000006,0x000000bb,
0x00000000,0x00040032,0x00000006,0x000000bd,0x00000000,0x00040032,0x00000006,0x000000c5,
0x00000000,0x00060034,0x00000006,0x000000c6,0x00000084,0x000000c5,0x000000bb,0x00040032,
0x00000006,0x000000c9,0x00000000,0x00060034,0x00000006,0x000000d0,0x00000084,0x000000c5,
0x000000bb,0x0003001d,0x000000df,0x00000047,0x0003001e,0x000000e0,0x000000df,0x00040020,
0x000000e1,0x00000002,0x000000e0,0x0004003b,0x000000e1,0x000000e2,0x00000002,0x00060034,
0x00000006,0x000000e5,0x00000084,0x00000026,0x00000028,0x00040020,0x000000ed,0x00000002,
0x00000047,0x00040020,0x000000f0,0x00000007,0x00000047,0x00060034,0x00000006,0x000000fd,
0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000105,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000116,0x00000084,0x00000026,0x00000028,0x0004002b,
0x00000006,0x00000124,0x00000002,0x00060034,0x00000006,0x0000012d,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000135,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000146,0x00000084,0x00000026,0x00000028,0x0004002b,0x00000006,0x00000154,
0x00000003,0x00060034,0x00000006,0x0000015d,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000165,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000176,
0x00000084,0x00000026,0x00000028,0x0004002b,0x00000009,0x00000180,0x00000003,0x00060034,
0x00000006,0x000001d1,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x000001d9,
0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x000001ea,0x00000084,0x00000026,
0x00000028,0x00060034,0x00000006,0x00000200,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000208,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000219,
0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x0000022f,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000237,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000248,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x0000025e,
0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000266,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000277,0x00000084,0x00000026,0x00000028,0x00060034,
0x00000006,0x000002d1,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x000002d9,
0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x000002ea,0x00000084,0x00000026,
0x00000028,0x00060034,0x00000006,0x00000300,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000308,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000319,
0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x0000032f,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000337,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000348,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x0000035e,
0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000366,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000377,0x00000084,0x00000026,0x00000028,0x00060034,
0x00000006,0x000003d1,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x000003d9,
0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x000003ea,0x00000084,0x00000026,
0x00000028,0x00060034,0x00000006,0x00000400,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000408,0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000419,
0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x0000042f,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000437,0x00000084,0x000000c5,0x000000bb,0x00060034,
0x00000006,0x00000448,0x00000084,0x00000026,0x00000028,0x00060034,0x00000006,0x0000045e,
0x00000084,0x000000c5,0x000000bb,0x00060034,0x00000006,0x00000466,0x00000084,0x000000c5,
0x000000bb,0x00060034,0x00000006,0x00000477,0x00000084,0x00000026,0x00000028,0x0003001d,
0x000004c0,0x00000048,0x0003001e,0x000004c1,0x000004c0,0x00040020,0x000004c2,0x00000002,
0x000004c1,0x0004003b,0x000004c2,0x000004c3,0x00000002,0x0003001d,0x000004f1,0x00000048,
0x0003001e,0x000004f2,0x000004f1,0x00040020,0x000004f3,0x00000002,0x000004f2,0x0004003b,
0x000004f3,0x000004f4,0x00000002,0x0004002b,0x00000006,0x00000529,0x00000005,0x0004002b,
0x00000006,0x00000534,0x00000006,0x0004002b,0x00000006,0x0000053f,0x00000007,0x00040032,
0x00000006,0x00000548,0x00000000,0x00040032,0x00000006,0x00000549,0x00000000,0x00040032,
0x00000006,0x0000054a,0x00000000,0x00040032,0x00000006,0x0000054b,0x00000000,0x00040032,
0x00000006,0x0000054c,0x00000000,0x00040032,0x00000009,0x0000054d,0x00000001,0x00040032,
0x00000009,0x0000054e,0x00000001,0x00040032,0x00000009,0x0000054f,0x00000001,0x00060033,
0x0000000a,0x00000550,0x0000054d,0x0000054e,0x0000054f,0x00050036,0x00000002,0x00000004,
0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,
0x0004003b,0x00000007,0x00000012,0x00000007,0x0004003b,0x00000007,0x00000017,0x00000007,
0x0004003b,0x00000007,0x0000001c,0x00000007,0x0004003b,0x00000007,0x00000020,0x00000007,
0x0004003b,0x00000007,0x00000024,0x00000007,0x0004003b,0x00000007,0x0000002c,0x00000007,
0x0004003b,0x00000007,0x0000003e,0x00000007,0x0004003b,0x00000007,0x00000041,0x00000007,
0x0004003b,0x00000007,0x00000043,0x00000007,0x0004003b,0x00000049,0x0000004a,0x00000007,
0x0004003b,0x00000049,0x0000004d,0x00000007,0x0004003b,0x00000049,0x0000004e,0x00000007,
0x0004003b,0x00000049,0x0000004f,0x00000007,0x0004003b,0x00000049,0x00000050,0x00000007,
0x0004003b,0x00000049,0x00000051,0x00000007,0x0004003b,0x00000049,0x00000052,0x00000007,
0x0004003b,0x00000049,0x00000053,0x00000007,0x0004003b,0x00000007,0x00000054,0x00000007,
0x0004003b,0x00000049,0x0000005a,0x00000007,0x0004003b,0x00000049,0x0000005b,0x00000007,
0x0004003b,0x00000049,0x0000005c,0x00000007,0x0004003b,0x00000049,0x0000005d,0x00000007,
0x0004003b,0x00000049,0x0000005e,0x00000007,0x0004003b,0x00000049,0x0000006a,0x00000007,
0x0004003b,0x00000049,0x00000071,0x00000007,0x0004003b,0x00000049,0x00000078,0x00000007,
0x0004003b,0x00000049,0x0000007f,0x00000007,0x0004003b,0x00000049,0x00000086,0x00000007,
0x0004003b,0x00000049,0x0000008d,0x00000007,0x0004003b,0x00000049,0x00000094,0x00000007,
0x0004003b,0x00000007,0x000000a1,0x00000007,0x0004003b,0x00000007,0x000000a6,0x00000007,
0x0004003b,0x00000007,0x000000aa,0x00000007,0x0004003b,0x00000007,0x000000b0,0x00000007,
0x0004003b,0x00000007,0x000000b6,0x00000007,0x0004003b,0x00000007,0x000000c0,0x00000007,
0x0004003b,0x00000007,0x000000cc,0x00000007,0x0004003b,0x00000049,0x000004bf,0x00000007,
0x00050041,0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,
0x0000000f,0x0004007c,0x00000006,0x00000011,0x00000010,0x0003003e,0x00000008,0x00000011,
0x00050041,0x0000000e,0x00000014,0x0000000c,0x00000013,0x0004003d,0x00000009,0x00000015,
0x00000014,0x0004007c,0x00000006,0x00000016,0x00000015,0x0003003e,0x00000012,0x00000016,
0x00050041,0x0000000e,0x00000019,0x0000000c,0x00000018,0x0004003d,0x00000009,0x0000001a,
0x00000019,0x0004007c,0x00000006,0x0000001b,0x0000001a,0x0003003e,0x00000017,0x0000001b,
0x0004003d,0x00000006,0x0000001e,0x00000008,0x00050084,0x00000006,0x0000001f,0x0000001d,
0x0000001e,0x0003003e,0x0000001c,0x0000001f,0x0004003d,0x00000006,0x00000022,0x00000012,
0x00050084,0x00000006,0x00000023,0x00000021,0x00000022,0x0003003e,0x00000020,0x00000023,
0x0004003d,0x00000006,0x00000025,0x00000017,0x00050084,0x00000006,0x00000027,0x00000025,
0x00000026,0x00050084,0x00000006,0x00000029,0x00000027,0x00000028,0x00050084,0x00000006,
0x0000002b,0x00000029,0x0000002a,0x0003003e,0x00000024,0x0000002b,0x0004003d,0x00000006,
0x0000002d,0x00000017,0x00050084,0x00000006,0x0000002f,0x0000002d,0x0000002e,0x00050084,
0x00000006,0x00000031,0x0000002f,0x00000030,0x00050087,0x00000006,0x00000032,0x00000031,
0x00000021,0x0003003e,0x0000002c,0x00000032,0x0004003d,0x00000006,0x00000034,0x0000001c,
0x000500b1,0x00000033,0x00000035,0x00000034,0x00000030,0x000300f7,0x00000037,0x00000000,
0x000400fa,0x00000035,0x00000036,0x00000037,0x000200f8,0x00000036,0x0004003d,0x00000006,
0x00000038,0x00000012,0x000500b1,0x00000033,0x0000003a,0x00000038,0x00000039,0x000200f9,
0x00000037,0x000200f8,0x00000037,0x000700f5,0x00000033,0x0000003b,0x00000035,0x00000005,
0x0000003a,0x00000036,0x000300f7,0x0000003d,0x00000000,0x000400fa,0x0000003b,0x0000003c,
0x0000003d,0x000200f8,0x0000003c,0x0003003e,0x0000003e,0x00000040,0x0003003e,0x00000041,
0x00000042,0x0004003d,0x00000006,0x00000044,0x0000001c,0x0004003d,0x00000006,0x00000045,
0x0000003e,0x00050084,0x00000006,0x00000046,0x00000044,0x00000045,0x0003003e,0x00000043,
0x00000046,0x0003003e,0x0000004a,0x0000004c,0x0003003e,0x0000004d,0x0000004c,0x0003003e,
0x0000004e,0x0000004c,0x0003003e,0x0000004f,0x0000004c,0x0003003e,0x00000050,0x0000004c,
0x0003003e,0x00000051,0x0000004c,0x0003003e,0x00000052,0x0000004c,0x0003003e,0x00000053,
0x0000004c,0x0003003e,0x00000054,0x00000055,0x000200f9,0x00000056,0x000200f8,0x00000056,
0x000400f6,0x00000058,0x00000059,0x00000000,0x000200f9,0x00000057,0x000200f8,0x00000057,
0x0003003e,0x0000005a,0x0000004c,0x0003003e,0x0000005b,0x0000004c,0x0003003e,0x0000005c,
0x0000004c,0x0003003e,0x0000005d,0x0000004c,0x0004003d,0x00000006,0x00000063,0x00000043,
0x00060041,0x00000064,0x00000065,0x00000062,0x00000055,0x00000063,0x0004003d,0x00000048,
0x00000066,0x00000065,0x0003003e,0x0000005e,0x00000066,0x0004003d,0x00000006,0x00000067,
0x0000003e,0x0004003d,0x00000006,0x00000068,0x00000043,0x00050080,0x00000006,0x00000069,
0x00000068,0x00000067,0x0003003e,0x00000043,0x00000069,0x0004003d,0x00000006,0x0000006b,
0x00000043,0x00060041,0x00000064,0x0000006c,0x00000062,0x00000055,0x0000006b,0x0004003d,
0x00000048,0x0000006d,0x0000006c,0x0003003e,0x0000006a,0x0000006d,0x0004003d,0x00000006,
0x0000006e,0x0000003e,0x0004003d,0x00000006,0x0000006f,0x00000043,0x00050080,0x00000006,
0x00000070,0x0000006f,0x0000006e,0x0003003e,0x00000043,0x00000070,0x0004003d,0x00000006,
0x00000072,0x00000043,0x00060041,0x00000064,0x00000073,0x00000062,0x00000055,0x00000072,
0x0004003d,0x00000048,0x00000074,0x00000073,0x0003003e,0x00000071,0x00000074,0x0004003d,
0x00000006,0x00000075,0x0000003e,0x0004003d,0x00000006,0x00000076,0x00000043,0x00050080,
0x00000006,0x00000077,0x00000076,0x00000075,0x0003003e,0x00000043,0x00000077,0x0004003d,
0x00000006,0x00000079,0x00000043,0x00060041,0x00000064,0x0000007a,0x00000062,0x00000055,
0x00000079,0x0004003d,0x00000048,0x0000007b,0x0000007a,0x0003003e,0x00000078,0x0000007b,
0x0004003d,0x00000006,0x0000007c,0x0000003e,0x0004003d,0x00000006,0x0000007d,0x00000043,
0x00050080,0x00000006,0x0000007e,0x0000007d,0x0000007c,0x0003003e,0x00000043,0x0000007e,
0x0004003d,0x00000006,0x00000080,0x00000043,0x00060041,0x00000064,0x00000081,0x00000062,
0x00000055,0x00000080,0x0004003d,0x00000048,0x00000082,0x00000081,0x0003003e,0x0000007f,
0x00000082,0x0004003d,0x00000006,0x00000083,0x0000003e,0x0004003d,0x00000006,0x00000084,
0x00000043,0x00050080,0x00000006,0x00000085,0x00000084,0x00000083,0x0003003e,0x00000043,
0x00000085,0x0004003d,0x00000006,0x00000087,0x00000043,0x00060041,0x00000064,0x00000088,
0x00000062,0x00000055,0x00000087,0x0004003d,0x00000048,0x00000089,0x00000088,0x0003003e,
0x00000086,0x00000089,0x0004003d,0x00000006,0x0000008a,0x0000003e,0x0004003d,0x00000006,
0x0000008b,0x00000043,0x00050080,0x00000006,0x0000008c,0x0000008b,0x0000008a,0x0003003e,
0x00000043,0x0000008c,0x0004003d,0x00000006,0x0000008e,0x00000043,0x00060041,0x00000064,
0x0000008f,0x00000062,0x00000055,0x0000008e,0x0004003d,0x00000048,0x00000090,0x0000008f,
0x0003003e,0x0000008d,0x00000090,0x0004003d,0x00000006,0x00000091,0x0000003e,0x0004003d,
0x00000006,0x00000092,0x00000043,0x00050080,0x00000006,0x00000093,0x00000092,0x00000091,
0x0003003e,0x00000043,0x00000093,0x0004003d,0x00000006,0x00000095,0x00000043,0x00060041,
0x00000064,0x00000096,0x00000062,0x00000055,0x00000095,0x0004003d,0x00000048,0x00000097,
0x00000096,0x0003003e,0x00000094,0x00000097,0x0004003d,0x00000006,0x00000098,0x0000003e,
0x0004003d,0x00000006,0x00000099,0x00000043,0x00050080,0x00000006,0x0000009a,0x00000099,
0x00000098,0x0003003e,0x00000043,0x0000009a,0x0004003d,0x00000006,0x0000009c,0x0000003e,
0x00050084,0x00000006,0x0000009d,0x0000001d,0x0000009c,0x00050082,0x00000006,0x0000009e,
0x0000009b,0x0000009d,0x0004003d,0x00000006,0x0000009f,0x00000043,0x00050080,0x00000006,
0x000000a0,0x0000009f,0x0000009e,0x0003003e,0x00000043,0x000000a0,0x0004003d,0x00000006,
0x000000a2,0x00000020,0x00050080,0x00000006,0x000000a3,0x000000a2,0x00000055,0x0005008b,
0x00000006,0x000000a5,0x000000a3,0x000000a4,0x0003003e,0x000000a1,0x000000a5,0x0004003d,
0x00000006,0x000000a7,0x00000020,0x00050080,0x00000006,0x000000a8,0x000000a7,0x00000055,
0x00050087,0x00000006,0x000000a9,0x000000a8,0x000000a4,0x0003003e,0x000000a6,0x000000a9,
0x0004003d,0x00000006,0x000000ab,0x000000a6,0x00050084,0x00000006,0x000000ad,0x000000ab,
0x000000ac,0x00050082,0x00000006,0x000000af,0x000000ad,0x000000ae,0x0003003e,0x000000aa,
0x000000af,0x0004003d,0x00000006,0x000000b1,0x000000a1,0x00050084,0x00000006,0x000000b3,
0x000000b1,0x000000b2,0x00050082,0x00000006,0x000000b5,0x000000b3,0x000000b4,0x0003003e,
0x000000b0,0x000000b5,0x0004003d,0x00000006,0x000000b7,0x000000b0,0x0004003d,0x00000006,
0x000000b8,0x00000054,0x00050084,0x00000006,0x000000b9,0x000000b8,0x00000021,0x00050080,
0x00000006,0x000000ba,0x000000b9,0x00000055,0x0005008b,0x00000006,0x000000bc,0x000000ba,
0x000000bb,0x00050084,0x00000006,0x000000be,0x000000bc,0x000000bd,0x00050080,0x00000006,
0x000000bf,0x000000b7,0x000000be,0x0003003e,0x000000b6,0x000000bf,0x0004003d,0x00000006,
0x000000c1,0x000000aa,0x0004003d,0x00000006,0x000000c2,0x00000054,0x00050084,0x00000006,
0x000000c3,0x000000c2,0x00000021,0x00050080,0x00000006,0x000000c4,0x000000c3,0x00000055,
0x0005008b,0x00000006,0x000000c7,0x000000c4,0x000000c6,0x00050087,0x00000006,0x000000c8,
0x000000c7,0x000000bb,0x00050084,0x00000006,0x000000ca,0x000000c8,0x000000c9,0x00050080,
0x00000006,0x000000cb,0x000000c1,0x000000ca,0x0003003e,0x000000c0,0x000000cb,0x0004003d,
0x00000006,0x000000cd,0x00000054,0x00050084,0x00000006,0x000000ce,0x000000cd,0x00000021,
0x00050080,0x00000006,0x000000cf,0x000000ce,0x00000055,0x00050087,0x00000006,0x000000d1,
0x000000cf,0x000000d0,0x0003003e,0x000000cc,0x000000d1,0x0004003d,0x00000006,0x000000d2,
0x000000c0,0x000500af,0x00000033,0x000000d3,0x000000d2,0x00000055,0x0004003d,0x00000006,
0x000000d4,0x000000c0,0x000500b1,0x00000033,0x000000d5,0x000000d4,0x00000026,0x000500a7,
0x00000033,0x000000d6,0x000000d3,0x000000d5,0x0004003d,0x00000006,0x000000d7,0x000000b6,
0x000500af,0x00000033,0x000000d8,0x000000d7,0x00000055,0x000500a7,0x00000033,0x000000d9,
0x000000d6,0x000000d8,0x0004003d,0x00000006,0x000000da,0x000000b6,0x000500b1,0x00000033,
0x000000db,0x000000da,0x00000028,0x000500a7,0x00000033,0x000000dc,0x000000d9,0x000000db,
0x000300f7,0x000000de,0x00000000,0x000400fa,0x000000dc,0x000000dd,0x000000de,0x000200f8,
0x000000dd,0x0004003d,0x00000006,0x000000e3,0x00000024,0x0004003d,0x00000006,0x000000e4,
0x000000cc,0x00050084,0x00000006,0x000000e6,0x000000e4,0x000000e5,0x00050080,0x00000006,
0x000000e7,0x000000e3,0x000000e6,0x0004003d,0x00000006,0x000000e8,0x000000c0,0x00050084,
0x00000006,0x000000e9,0x000000e8,0x00000028,0x00050080,0x00000006,0x000000ea,0x000000e7,
0x000000e9,0x0004003d,0x00000006,0x000000eb,0x000000b6,0x00050080,0x00000006,0x000000ec,
0x000000ea,0x000000eb,0x00060041,0x000000ed,0x000000ee,0x000000e2,0x00000055,0x000000ec,
0x0004003d,0x00000047,0x000000ef,0x000000ee,0x00050041,0x000000f0,0x000000f1,0x0000005a,
0x0000000d,0x0003003e,0x000000f1,0x000000ef,0x000200f9,0x000000de,0x000200f8,0x000000de,
0x0004003d,0x00000006,0x000000f2,0x000000b0,0x0004003d,0x00000006,0x000000f3,0x00000054,
0x00050084,0x00000006,0x000000f4,0x000000f3,0x00000021,0x00050080,0x00000006,0x000000f5,
0x000000f4,0x0000009b,0x0005008b,0x00000006,0x000000f6,0x000000f5,0x000000bb,0x00050084,
0x00000006,0x000000f7,0x000000f6,0x000000bd,0x00050080,0x00000006,0x000000f8,0x000000f2,
0x000000f7,0x0003003e,0x000000b6,0x000000f8,0x0004003d,0x00000006,0x000000f9,0x000000aa,
0x0004003d,0x00000006,0x000000fa,0x00000054,0x00050084,0x00000006,0x000000fb,0x000000fa,
0x00000021,0x00050080,0x00000006,0x000000fc,0x000000fb,0x0000009b,0x0005008b,0x00000006,
0x000000fe,0x000000fc,0x000000fd,0x00050087,0x00000006,0x000000ff,0x000000fe,0x000000bb,
0x00050084,0x00000006,0x00000100,0x000000ff,0x000000c9,0x00050080,0x00000006,0x00000101,
0x000000f9,0x00000100,0x0003003e,0x000000c0,0x00000101,0x0004003d,0x00000006,0x00000102,
0x00000054,0x00050084,0x00000006,0x00000103,0x00000102,0x00000021,0x00050080,0x00000006,
0x00000104,0x00000103,0x0000009b,0x00050087,0x00000006,0x00000106,0x00000104,0x00000105,
0x0003003e,0x000000cc,0x00000106,0x0004003d,0x00000006,0x00000107,0x000000c0,0x000500af,
0x00000033,0x00000108,0x00000107,0x00000055,0x0004003d,0x00000006,0x00000109,0x000000c0,
0x000500b1,0x00000033,0x0000010a,0x00000109,0x00000026,0x000500a7,0x00000033,0x0000010b,
0x00000108,0x0000010a,0x0004003d,0x00000006,0x0000010c,0x000000b6,0x000500af,0x00000033,
0x0000010d,0x0000010c,0x00000055,0x000500a7,0x00000033,0x0000010e,0x0000010b,0x0000010d,
0x0004003d,0x00000006,0x0000010f,0x000000b6,0x000500b1,0x00000033,0x00000110,0x0000010f,
0x00000028,0x000500a7,0x00000033,0x00000111,0x0000010e,0x00000110,0x000300f7,0x00000113,
0x00000000,0x000400fa,0x00000111,0x00000112,0x00000113,0x000200f8,0x00000112,0x0004003d,
0x00000006,0x00000114,0x00000024,0x0004003d,0x00000006,0x00000115,0x000000cc,0x00050084,
0x00000006,0x00000117,0x00000115,0x00000116,0x00050080,0x00000006,0x00000118,0x00000114,
0x00000117,0x0004003d,0x00000006,0x00000119,0x000000c0,0x00050084,0x00000006,0x0000011a,
0x00000119,0x00000028,0x00050080,0x00000006,0x0000011b,0x00000118,0x0000011a,0x0004003d,
0x00000006,0x0000011c,0x000000b6,0x00050080,0x00000006,0x0000011d,0x0000011b,0x0000011c,
0x00060041,0x000000ed,0x0000011e,0x000000e2,0x00000055,0x0000011d,0x0004003d,0x00000047,
0x0000011f,0x0000011e,0x00050041,0x000000f0,0x00000120,0x0000005a,0x00000013,0x0003003e,
0x00000120,0x0000011f,0x000200f9,0x00000113,0x000200f8,0x00000113,0x0004003d,0x00000006,
0x00000121,0x000000b0,0x0004003d,0x00000006,0x00000122,0x00000054,0x00050084,0x00000006,
0x00000123,0x00000122,0x00000021,0x00050080,0x00000006,0x00000125,0x00000123,0x00000124,
0x0005008b,0x00000006,0x00000126,0x00000125,0x000000bb,0x00050084,0x00000006,0x00000127,
0x00000126,0x000000bd,0x00050080,0x00000006,0x00000128,0x00000121,0x00000127,0x0003003e,
0x000000b6,0x00000128,0x0004003d,0x00000006,0x00000129,0x000000aa,0x0004003d,0x00000006,
0x0000012a,0x00000054,0x00050084,0x00000006,0x0000012b,0x0000012a,0x00000021,0x00050080,
0x00000006,0x0000012c,0x0000012b,0x00000124,0x0005008b,0x00000006,0x0000012e,0x0000012c,
0x0000012d,0x00050087,0x00000006,0x0000012f,0x0000012e,0x000000bb,0x00050084,0x00000006,
0x00000130,0x0000012f,0x000000c9,0x00050080,0x00000006,0x00000131,0x00000129,0x00000130,
0x0003003e,0x000000c0,0x00000131,0x0004003d,0x00000006,0x00000132,0x00000054,0x00050084,
0x00000006,0x00000133,0x00000132,0x00000021,0x00050080,0x00000006,0x00000134,0x00000133,
0x00000124,0x00050087,0x00000006,0x00000136,0x00000134,0x00000135,0x0003003e,0x000000cc,
0x00000136,0x0004003d,0x00000006,0x00000137,0x000000c0,0x000500af,0x00000033,0x00000138,
0x00000137,0x00000055,0x0004003d,0x00000006,0x00000139,0x000000c0,0x000500b1,0x00000033,
0x0000013a,0x00000139,0x00000026,0x000500a7,0x00000033,0x0000013b,0x00000138,0x0000013a,
0x0004003d,0x00000006,0x0000013c,0x000000b6,0x000500af,0x00000033,0x0000013d,0x0000013c,
0x00000055,0x000500a7,0x00000033,0x0000013e,0x0000013b,0x0000013d,0x0004003d,0x00000006,
0x0000013f,0x000000b6,0x000500b1,0x00000033,0x00000140,0x0000013f,0x00000028,0x000500a7,
0x00000033,0x00000141,0x0000013e,0x00000140,0x000300f7,0x00000143,0x00000000,0x000400fa,
0x00000141,0x00000142,0x00000143,0x000200f8,0x00000142,0x0004003d,0x00000006,0x00000144,
0x00000024,0x0004003d,0x00000006,0x00000145,0x000000cc,0x00050084,0x00000006,0x00000147,
0x00000145,0x00000146,0x00050080,0x00000006,0x00000148,0x00000144,0x00000147,0x0004003d,
0x00000006,0x00000149,0x000000c0,0x00050084,0x00000006,0x0000014a,0x00000149,0x00000028,
0x00050080,0x00000006,0x0000014b,0x00000148,0x0000014a,0x0004003d,0x00000006,0x0000014c,
0x000000b6,0x00050080,0x00000006,0x0000014d,0x0000014b,0x0000014c,0x00060041,0x000000ed,
0x0000014e,0x000000e2,0x00000055,0x0000014d,0x0004003d,0x00000047,0x0000014f,0x0000014e,
0x00050041,0x000000f0,0x00000150,0x0000005a,0x00000018,0x0003003e,0x00000150,0x0000014f,
0x000200f9,0x00000143,0x000200f8,0x00000143,0x0004003d,0x00000006,0x00000151,0x000000b0,
0x0004003d,0x00000006,0x00000152,0x00000054,0x00050084,0x00000006,0x00000153,0x00000152,
0x00000021,0x00050080,0x00000006,0x00000155,0x00000153,0x00000154,0x0005008b,0x00000006,
0x00000156,0x00000155,0x000000bb,0x00050084,0x00000006,0x00000157,0x00000156,0x000000bd,
0x00050080,0x00000006,0x00000158,0x00000151,0x00000157,0x0003003e,0x000000b6,0x00000158,
0x0004003d,0x00000006,0x00000159,0x000000aa,0x0004003d,0x00000006,0x0000015a,0x00000054,
0x00050084,0x00000006,0x0000015b,0x0000015a,0x00000021,0x00050080,0x00000006,0x0000015c,
0x0000015b,0x00000154,0x0005008b,0x00000006,0x0000015e,0x0000015c,0x0000015d,0x00050087,
0x00000006,0x0000015f,0x0000015e,0x000000bb,0x00050084,0x00000006,0x00000160,0x0000015f,
0x000000c9,0x00050080,0x00000006,0x00000161,0x00000159,0x00000160,0x0003003e,0x000000c0,
0x00000161,0x0004003d,0x00000006,0x00000162,0x00000054,0x00050084,0x00000006,0x00000163,
0x00000162,0x00000021,0x00050080,0x00000006,0x00000164,0x00000163,0x00000154,0x00050087,
0x00000006,0x00000166,0x00000164,0x00000165,0x0003003e,0x000000cc,0x00000166,0x0004003d,
0x00000006,0x00000167,0x000000c0,0x000500af,0x00000033,0x00000168,0x00000167,0x00000055,
0x0004003d,0x00000006,0x00000169,0x000000c0,0x000500b1,0x00000033,0x0000016a,0x00000169,
0x00000026,0x000500a7,0x00000033,0x0000016b,0x00000168,0x0000016a,0x0004003d,0x00000006,
0x0000016c,0x000000b6,0x000500af,0x00000033,0x0000016d,0x0000016c,0x00000055,0x000500a7,
0x00000033,0x0000016e,0x0000016b,0x0000016d,0x0004003d,0x00000006,0x0000016f,0x000000b6,
0x000500b1,0x00000033,0x00000170,0x0000016f,0x00000028,0x000500a7,0x00000033,0x00000171,
0x0000016e,0x00000170,0x000300f7,0x00000173,0x00000000,0x000400fa,0x00000171,0x00000172,
0x00000173,0x000200f8,0x00000172,0x0004003d,0x00000006,0x00000174,0x00000024,0x0004003d,
0x00000006,0x00000175,0x000000cc,0x00050084,0x00000006,0x00000177,0x00000175,0x00000176,
0x00050080,0x00000006,0x00000178,0x00000174,0x00000177,0x0004003d,0x00000006,0x00000179,
0x000000c0,0x00050084,0x00000006,0x0000017a,0x00000179,0x00000028,0x00050080,0x00000006,
0x0000017b,0x00000178,0x0000017a,0x0004003d,0x00000006,0x0000017c,0x000000b6,0x00050080,
0x00000006,0x0000017d,0x0000017b,0x0000017c,0x00060041,0x000000ed,0x0000017e,0x000000e2,
0x00000055,0x0000017d,0x0004003d,0x00000047,0x0000017f,0x0000017e,0x00050041,0x000000f0,
0x00000181,0x0000005a,0x00000180,0x0003003e,0x00000181,0x0000017f,0x000200f9,0x00000173,
0x000200f8,0x00000173,0x0004003d,0x00000048,0x00000182,0x0000005e,0x0004003d,0x00000048,
0x00000183,0x0000005a,0x00050094,0x00000047,0x00000184,0x00000182,0x00000183,0x00050041,
0x000000f0,0x00000185,0x0000004a,0x0000000d,0x0004003d,0x00000047,0x00000186,0x00000185,
0x00050081,0x00000047,0x00000187,0x00000186,0x00000184,0x00050041,0x000000f0,0x00000188,
0x0000004a,0x0000000d,0x0003003e,0x00000188,0x00000187,0x0004003d,0x00000048,0x00000189,
0x0000006a,0x0004003d,0x00000048,0x0000018a,0x0000005a,0x00050094,0x00000047,0x0000018b,
0x00000189,0x0000018a,0x00050041,0x000000f0,0x0000018c,0x0000004d,0x0000000d,0x0004003d,
0x00000047,0x0000018d,0x0000018c,0x00050081,0x00000047,0x0000018e,0x0000018d,0x0000018b,
0x00050041,0x000000f0,0x0000018f,0x0000004d,0x0000000d,0x0003003e,0x0000018f,0x0000018e,
0x0004003d,0x00000048,0x00000190,0x00000071,0x0004003d,0x00000048,0x00000191,0x0000005a,
0x00050094,0x00000047,0x00000192,0x00000190,0x00000191,0x00050041,0x000000f0,0x00000193,
0x0000004e,0x0000000d,0x0004003d,0x00000047,0x00000194,0x00000193,0x00050081,0x00000047,
0x00000195,0x00000194,0x00000192,0x00050041,0x000000f0,0x00000196,0x0000004e,0x0000000d,
0x0003003e,0x00000196,0x00000195,0x0004003d,0x00000048,0x00000197,0x00000078,0x0004003d,
0x00000048,0x00000198,0x0000005a,0x00050094,0x00000047,0x00000199,0x00000197,0x00000198,
0x00050041,0x000000f0,0x0000019a,0x0000004f,0x0000000d,0x0004003d,0x00000047,0x0000019b,
0x0000019a,0x00050081,0x00000047,0x0000019c,0x0000019b,0x00000199,0x00050041,0x000000f0,
0x0000019d,0x0000004f,0x0000000d,0x0003003e,0x0000019d,0x0000019c,0x0004003d,0x00000048,
0x0000019e,0x0000007f,0x0004003d,0x00000048,0x0000019f,0x0000005a,0x00050094,0x00000047,
0x000001a0,0x0000019e,0x0000019f,0x00050041,0x000000f0,0x000001a1,0x00000050,0x0000000d,
0x0004003d,0x00000047,0x000001a2,0x000001a1,0x00050081,0x00000047,0x000001a3,0x000001a2,
0x000001a0,0x00050041,0x000000f0,0x000001a4,0x00000050,0x0000000d,0x0003003e,0x000001a4,
0x000001a3,0x0004003d,0x00000048,0x000001a5,0x00000086,0x0004003d,0x00000048,0x000001a6,
0x0000005a,0x00050094,0x00000047,0x000001a7,0x000001a5,0x000001a6,0x00050041,0x000000f0,
0x000001a8,0x00000051,0x0000000d,0x0004003d,0x00000047,0x000001a9,0x000001a8,0x00050081,
0x00000047,0x000001aa,0x000001a9,0x000001a7,0x00050041,0x000000f0,0x000001ab,0x00000051,
0x0000000d,0x0003003e,0x000001ab,0x000001aa,0x0004003d,0x00000048,0x000001ac,0x0000008d,
0x0004003d,0x00000048,0x000001ad,0x0000005a,0x00050094,0x00000047,0x000001ae,0x000001ac,
0x000001ad,0x00050041,0x000000f0,0x000001af,0x00000052,0x0000000d,0x0004003d,0x00000047,
0x000001b0,0x000001af,0x00050081,0x00000047,0x000001b1,0x000001b0,0x000001ae,0x00050041,
0x000000f0,0x000001b2,0x00000052,0x0000000d,0x0003003e,0x000001b2,0x000001b1,0x0004003d,
0x00000048,0x000001b3,0x00000094,0x0004003d,0x00000048,0x000001b4,0x0000005a,0x00050094,
0x00000047,0x000001b5,0x000001b3,0x000001b4,0x00050041,0x000000f0,0x000001b6,0x00000053,
0x0000000d,0x0004003d,0x00000047,0x000001b7,0x000001b6,0x00050081,0x00000047,0x000001b8,
0x000001b7,0x000001b5,0x00050041,0x000000f0,0x000001b9,0x00000053,0x0000000d,0x0003003e,
0x000001b9,0x000001b8,0x0004003d,0x00000006,0x000001ba,0x00000020,0x00050080,0x00000006,
0x000001bb,0x000001ba,0x0000009b,0x0005008b,0x00000006,0x000001bc,0x000001bb,0x000000a4,
0x0003003e,0x000000a1,0x000001bc,0x0004003d,0x00000006,0x000001bd,0x00000020,0x00050080,
0x00000006,0x000001be,0x000001bd,0x0000009b,0x00050087,0x00000006,0x000001bf,0x000001be,
0x000000a4,0x0003003e,0x000000a6,0x000001bf,0x0004003d,0x00000006,0x000001c0,0x000000a6,
0x00050084,0x00000006,0x000001c1,0x000001c0,0x000000ac,0x00050082,0x00000006,0x000001c2,
0x000001c1,0x000000ae,0x0003003e,0x000000aa,0x000001c2,0x0004003d,0x00000006,0x000001c3,
0x000000a1,0x00050084,0x00000006,0x000001c4,0x000001c3,0x000000b2,0x00050082,0x00000006,
0x000001c5,0x000001c4,0x000000b4,0x0003003e,0x000000b0,0x000001c5,0x0004003d,0x00000006,
0x000001c6,0x000000b0,0x0004003d,0x00000006,0x000001c7,0x00000054,0x00050084,0x00000006,
0x000001c8,0x000001c7,0x00000021,0x00050080,0x00000006,0x000001c9,0x000001c8,0x00000055,
0x0005008b,0x00000006,0x000001ca,0x000001c9,0x000000bb,0x00050084,0x00000006,0x000001cb,
0x000001ca,0x000000bd,0x00050080,0x00000006,0x000001cc,0x000001c6,0x000001cb,0x0003003e,
0x000000b6,0x000001cc,0x0004003d,0x00000006,0x000001cd,0x000000aa,0x0004003d,0x00000006,
0x000001ce,0x00000054,0x00050084,0x00000006,0x000001cf,0x000001ce,0x00000021,0x00050080,
0x00000006,0x000001d0,0x000001cf,0x00000055,0x0005008b,0x00000006,0x000001d2,0x000001d0,
0x000001d1,0x00050087,0x00000006,0x000001d3,0x000001d2,0x000000bb,0x00050084,0x00000006,
0x000001d4,0x000001d3,0x000000c9,0x00050080,0x00000006,0x000001d5,0x000001cd,0x000001d4,
0x0003003e,0x000000c0,0x000001d5,0x0004003d,0x00000006,0x000001d6,0x00000054,0x00050084,
0x00000006,0x000001d7,0x000001d6,0x00000021,0x00050080,0x00000006,0x000001d8,0x000001d7,
0x00000055,0x00050087,0x00000006,0x000001da,0x000001d8,0x000001d9,0x0003003e,0x000000cc,
0x000001da,0x0004003d,0x00000006,0x000001db,0x000000c0,0x000500af,0x00000033,0x000001dc,
0x000001db,0x00000055,0x0004003d,0x00000006,0x000001dd,0x000000c0,0x000500b1,0x00000033,
0x000001de,0x000001dd,0x00000026,0x000500a7,0x00000033,0x000001df,0x000001dc,0x000001de,
0x0004003d,0x00000006,0x000001e0,0x000000b6,0x000500af,0x00000033,0x000001e1,0x000001e0,
0x00000055,0x000500a7,0x00000033,0x000001e2,0x000001df,0x000001e1,0x0004003d,0x00000006,
0x000001e3,0x000000b6,0x000500b1,0x00000033,0x000001e4,0x000001e3,0x00000028,0x000500a7,
0x00000033,0x000001e5,0x000001e2,0x000001e4,0x000300f7,0x000001e7,0x00000000,0x000400fa,
0x000001e5,0x000001e6,0x000001e7,0x000200f8,0x000001e6,0x0004003d,0x00000006,0x000001e8,
0x00000024,0x0004003d,0x00000006,0x000001e9,0x000000cc,0x00050084,0x00000006,0x000001eb,
0x000001e9,0x000001ea,0x00050080,0x00000006,0x000001ec,0x000001e8,0x000001eb,0x0004003d,
0x00000006,0x000001ed,0x000000c0,0x00050084,0x00000006,0x000001ee,0x000001ed,0x00000028,
0x00050080,0x00000006,0x000001ef,0x000001ec,0x000001ee,0x0004003d,0x00000006,0x000001f0,
0x000000b6,0x00050080,0x00000006,0x000001f1,0x000001ef,0x000001f0,0x00060041,0x000000ed,
0x000001f2,0x000000e2,0x00000055,0x000001f1,0x0004003d,0x00000047,0x000001f3,0x000001f2,
0x00050041,0x000000f0,0x000001f4,0x0000005b,0x0000000d,0x0003003e,0x000001f4,0x000001f3,
0x000200f9,0x000001e7,0x000200f8,0x000001e7,0x0004003d,0x00000006,0x000001f5,0x000000b0,
0x0004003d,0x00000006,0x000001f6,0x00000054,0x00050084,0x00000006,0x000001f7,0x000001f6,
0x00000021,0x00050080,0x00000006,0x000001f8,0x000001f7,0x0000009b,0x0005008b,0x00000006,
0x000001f9,0x000001f8,0x000000bb,0x00050084,0x00000006,0x000001fa,0x000001f9,0x000000bd,
0x00050080,0x00000006,0x000001fb,0x000001f5,0x000001fa,0x0003003e,0x000000b6,0x000001fb,
0x0004003d,0x00000006,0x000001fc,0x000000aa,0x0004003d,0x00000006,0x000001fd,0x00000054,
0x00050084,0x00000006,0x000001fe,0x000001fd,0x00000021,0x00050080,0x00000006,0x000001ff,
0x000001fe,0x0000009b,0x0005008b,0x00000006,0x00000201,0x000001ff,0x00000200,0x00050087,
0x00000006,0x00000202,0x00000201,0x000000bb,0x00050084,0x00000006,0x00000203,0x00000202,
0x000000c9,0x00050080,0x00000006,0x00000204,0x000001fc,0x00000203,0x0003003e,0x000000c0,
0x00000204,0x0004003d,0x00000006,0x00000205,0x00000054,0x00050084,0x00000006,0x00000206,
0x00000205,0x00000021,0x00050080,0x00000006,0x00000207,0x00000206,0x0000009b,0x00050087,
0x00000006,0x00000209,0x00000207,0x00000208,0x0003003e,0x000000cc,0x00000209,0x0004003d,
0x00000006,0x0000020a,0x000000c0,0x000500af,0x00000033,0x0000020b,0x0000020a,0x00000055,
0x0004003d,0x00000006,0x0000020c,0x000000c0,0x000500b1,0x00000033,0x0000020d,0x0000020c,
0x00000026,0x000500a7,0x00000033,0x0000020e,0x0000020b,0x0000020d,0x0004003d,0x00000006,
0x0000020f,0x000000b6,0x000500af,0x00000033,0x00000210,0x0000020f,0x00000055,0x000500a7,
0x00000033,0x00000211,0x0000020e,0x00000210,0x0004003d,0x00000006,0x00000212,0x000000b6,
0x000500b1,0x00000033,0x00000213,0x00000212,0x00000028,0x000500a7,0x00000033,0x00000214,
0x00000211,0x00000213,0x000300f7,0x00000216,0x00000000,0x000400fa,0x00000214,0x00000215,
0x00000216,0x000200f8,0x00000215,0x0004003d,0x00000006,0x00000217,0x00000024,0x0004003d,
0x00000006,0x00000218,0x000000cc,0x00050084,0x00000006,0x0000021a,0x00000218,0x00000219,
0x00050080,0x00000006,0x0000021b,0x00000217,0x0000021a,0x0004003d,0x00000006,0x0000021c,
0x000000c0,0x00050084,0x00000006,0x0000021d,0x0000021c,0x00000028,0x00050080,0x00000006,
0x0000021e,0x0000021b,0x0000021d,0x0004003d,0x00000006,0x0000021f,0x000000b6,0x00050080,
0x00000006,0x00000220,0x0000021e,0x0000021f,0x00060041,0x000000ed,0x00000221,0x000000e2,
0x00000055,0x00000220,0x0004003d,0x00000047,0x00000222,0x00000221,0x00050041,0x000000f0,
0x00000223,0x0000005b,0x00000013,0x0003003e,0x00000223,0x00000222,0x000200f9,0x00000216,
0x000200f8,0x00000216,0x0004003d,0x00000006,0x00000224,0x000000b0,0x0004003d,0x00000006,
0x00000225,0x00000054,0x00050084,0x00000006,0x00000226,0x00000225,0x00000021,0x00050080,
0x00000006,0x00000227,0x00000226,0x00000124,0x0005008b,0x00000006,0x00000228,0x00000227,
0x000000bb,0x00050084,0x00000006,0x00000229,0x00000228,0x000000bd,0x00050080,0x00000006,
0x0000022a,0x00000224,0x00000229,0x0003003e,0x000000b6,0x0000022a,0x0004003d,0x00000006,
0x0000022b,0x000000aa,0x0004003d,0x00000006,0x0000022c,0x00000054,0x00050084,0x00000006,
0x0000022d,0x0000022c,0x00000021,0x00050080,0x00000006,0x0000022e,0x0000022d,0x00000124,
0x0005008b,0x00000006,0x00000230,0x0000022e,0x0000022f,0x00050087,0x00000006,0x00000231,
0x00000230,0x000000bb,0x00050084,0x00000006,0x00000232,0x00000231,0x000000c9,0x00050080,
0x00000006,0x00000233,0x0000022b,0x00000232,0x0003003e,0x000000c0,0x00000233,0x0004003d,
0x00000006,0x00000234,0x00000054,0x00050084,0x00000006,0x00000235,0x00000234,0x00000021,
0x00050080,0x00000006,0x00000236,0x00000235,0x00000124,0x00050087,0x00000006,0x00000238,
0x00000236,0x00000237,0x0003003e,0x000000cc,0x00000238,0x0004003d,0x00000006,0x00000239,
0x000000c0,0x000500af,0x00000033,0x0000023a,0x00000239,0x00000055,0x0004003d,0x00000006,
0x0000023b,0x000000c0,0x000500b1,0x00000033,0x0000023c,0x0000023b,0x00000026,0x000500a7,
0x00000033,0x0000023d,0x0000023a,0x0000023c,0x0004003d,0x00000006,0x0000023e,0x000000b6,
0x000500af,0x00000033,0x0000023f,0x0000023e,0x00000055,0x000500a7,0x00000033,0x00000240,
0x0000023d,0x0000023f,0x0004003d,0x00000006,0x00000241,0x000000b6,0x000500b1,0x00000033,
0x00000242,0x00000241,0x00000028,0x000500a7,0x00000033,0x00000243,0x00000240,0x00000242,
0x000300f7,0x00000245,0x00000000,0x000400fa,0x00000243,0x00000244,0x00000245,0x000200f8,
0x00000244,0x0004003d,0x00000006,0x00000246,0x00000024,0x0004003d,0x00000006,0x00000247,
0x000000cc,0x00050084,0x00000006,0x00000249,0x00000247,0x00000248,0x00050080,0x00000006,
0x0000024a,0x00000246,0x00000249,0x0004003d,0x00000006,0x0000024b,0x000000c0,0x00050084,
0x00000006,0x0000024c,0x0000024b,0x00000028,0x00050080,0x00000006,0x0000024d,0x0000024a,
0x0000024c,0x0004003d,0x00000006,0x0000024e,0x000000b6,0x00050080,0x00000006,0x0000024f,
0x0000024d,0x0000024e,0x00060041,0x000000ed,0x00000250,0x000000e2,0x00000055,0x0000024f,
0x0004003d,0x00000047,0x00000251,0x00000250,0x00050041,0x000000f0,0x00000252,0x0000005b,
0x00000018,0x0003003e,0x00000252,0x00000251,0x000200f9,0x00000245,0x000200f8,0x00000245,
0x0004003d,0x00000006,0x00000253,0x000000b0,0x0004003d,0x00000006,0x00000254,0x00000054,
0x00050084,0x00000006,0x00000255,0x00000254,0x00000021,0x00050080,0x00000006,0x00000256,
0x00000255,0x00000154,0x0005008b,0x00000006,0x00000257,0x00000256,0x000000bb,0x00050084,
0x00000006,0x00000258,0x00000257,0x000000bd,0x00050080,0x00000006,0x00000259,0x00000253,
0x00000258,0x0003003e,0x000000b6,0x00000259,0x0004003d,0x00000006,0x0000025a,0x000000aa,
0x0004003d,0x00000006,0x0000025b,0x00000054,0x00050084,0x00000006,0x0000025c,0x0000025b,
0x00000021,0x00050080,0x00000006,0x0000025d,0x0000025c,0x00000154,0x0005008b,0x00000006,
0x0000025f,0x0000025d,0x0000025e,0x00050087,0x00000006,0x00000260,0x0000025f,0x000000bb,
0x00050084,0x00000006,0x00000261,0x00000260,0x000000c9,0x00050080,0x00000006,0x00000262,
0x0000025a,0x00000261,0x0003003e,0x000000c0,0x00000262,0x0004003d,0x00000006,0x00000263,
0x00000054,0x00050084,0x00000006,0x00000264,0x00000263,0x00000021,0x00050080,0x00000006,
0x00000265,0x00000264,0x00000154,0x00050087,0x00000006,0x00000267,0x00000265,0x00000266,
0x0003003e,0x000000cc,0x00000267,0x0004003d,0x00000006,0x00000268,0x000000c0,0x000500af,
0x00000033,0x00000269,0x00000268,0x00000055,0x0004003d,0x00000006,0x0000026a,0x000000c0,
0x000500b1,0x00000033,0x0000026b,0x0000026a,0x00000026,0x000500a7,0x00000033,0x0000026c,
0x00000269,0x0000026b,0x0004003d,0x00000006,0x0000026d,0x000000b6,0x000500af,0x00000033,
0x0000026e,0x0000026d,0x00000055,0x000500a7,0x00000033,0x0000026f,0x0000026c,0x0000026e,
0x0004003d,0x00000006,0x00000270,0x000000b6,0x000500b1,0x00000033,0x00000271,0x00000270,
0x00000028,0x000500a7,0x00000033,0x00000272,0x0000026f,0x00000271,0x000300f7,0x00000274,
0x00000000,0x000400fa,0x00000272,0x00000273,0x00000274,0x000200f8,0x00000273,0x0004003d,
0x00000006,0x00000275,0x00000024,0x0004003d,0x00000006,0x00000276,0x000000cc,0x00050084,
0x00000006,0x00000278,0x00000276,0x00000277,0x00050080,0x00000006,0x00000279,0x00000275,
0x00000278,0x0004003d,0x00000006,0x0000027a,0x000000c0,0x00050084,0x00000006,0x0000027b,
0x0000027a,0x00000028,0x00050080,0x00000006,0x0000027c,0x00000279,0x0000027b,0x0004003d,
0x00000006,0x0000027d,0x000000b6,0x00050080,0x00000006,0x0000027e,0x0000027c,0x0000027d,
0x00060041,0x000000ed,0x0000027f,0x000000e2,0x00000055,0x0000027e,0x0004003d,0x00000047,
0x00000280,0x0000027f,0x00050041,0x000000f0,0x00000281,0x0000005b,0x00000180,0x0003003e,
0x00000281,0x00000280,0x000200f9,0x00000274,0x000200f8,0x00000274,0x0004003d,0x00000048,
0x00000282,0x0000005e,0x0004003d,0x00000048,0x00000283,0x0000005b,0x00050094,0x00000047,
0x00000284,0x00000282,0x00000283,0x00050041,0x000000f0,0x00000285,0x0000004a,0x00000013,
0x0004003d,0x00000047,0x00000286,0x00000285,0x00050081,0x00000047,0x00000287,0x00000286,
0x00000284,0x00050041,0x000000f0,0x00000288,0x0000004a,0x00000013,0x0003003e,0x00000288,
0x00000287,0x0004003d,0x00000048,0x00000289,0x0000006a,0x0004003d,0x00000048,0x0000028a,
0x0000005b,0x00050094,0x00000047,0x0000028b,0x00000289,0x0000028a,0x00050041,0x000000f0,
0x0000028c,0x0000004d,0x00000013,0x0004003d,0x00000047,0x0000028d,0x0000028c,0x00050081,
0x00000047,0x0000028e,0x0000028d,0x0000028b,0x00050041,0x000000f0,0x0000028f,0x0000004d,
0x00000013,0x0003003e,0x0000028f,0x0000028e,0x0004003d,0x00000048,0x00000290,0x00000071,
0x0004003d,0x00000048,0x00000291,0x0000005b,0x00050094,0x00000047,0x00000292,0x00000290,
0x00000291,0x00050041,0x000000f0,0x00000293,0x0000004e,0x00000013,0x0004003d,0x00000047,
0x00000294,0x00000293,0x00050081,0x00000047,0x00000295,0x00000294,0x00000292,0x00050041,
0x000000f0,0x00000296,0x0000004e,0x00000013,0x0003003e,0x00000296,0x00000295,0x0004003d,
0x00000048,0x00000297,0x00000078,0x0004003d,0x00000048,0x00000298,0x0000005b,0x00050094,
0x00000047,0x00000299,0x00000297,0x00000298,0x00050041,0x000000f0,0x0000029a,0x0000004f,
0x00000013,0x0004003d,0x00000047,0x0000029b,0x0000029a,0x00050081,0x00000047,0x0000029c,
0x0000029b,0x00000299,0x00050041,0x000000f0,0x0000029d,0x0000004f,0x00000013,0x0003003e,
0x0000029d,0x0000029c,0x0004003d,0x00000048,0x0000029e,0x0000007f,0x0004003d,0x00000048,
0x0000029f,0x0000005b,0x00050094,0x00000047,0x000002a0,0x0000029e,0x0000029f,0x00050041,
0x000000f0,0x000002a1,0x00000050,0x00000013,0x0004003d,0x00000047,0x000002a2,0x000002a1,
0x00050081,0x00000047,0x000002a3,0x000002a2,0x000002a0,0x00050041,0x000000f0,0x000002a4,
0x00000050,0x00000013,0x0003003e,0x000002a4,0x000002a3,0x0004003d,0x00000048,0x000002a5,
0x00000086,0x0004003d,0x00000048,0x000002a6,0x0000005b,0x00050094,0x00000047,0x000002a7,
0x000002a5,0x000002a6,0x00050041,0x000000f0,0x000002a8,0x00000051,0x00000013,0x0004003d,
0x00000047,0x000002a9,0x000002a8,0x00050081,0x00000047,0x000002aa,0x000002a9,0x000002a7,
0x00050041,0x000000f0,0x000002ab,0x00000051,0x00000013,0x0003003e,0x000002ab,0x000002aa,
0x0004003d,0x00000048,0x000002ac,0x0000008d,0x0004003d,0x00000048,0x000002ad,0x0000005b,
0x00050094,0x00000047,0x000002ae,0x000002ac,0x000002ad,0x00050041,0x000000f0,0x000002af,
0x00000052,0x00000013,0x0004003d,0x00000047,0x000002b0,0x000002af,0x00050081,0x00000047,
0x000002b1,0x000002b0,0x000002ae,0x00050041,0x000000f0,0x000002b2,0x00000052,0x00000013,
0x0003003e,0x000002b2,0x000002b1,0x0004003d,0x00000048,0x000002b3,0x00000094,0x0004003d,
0x00000048,0x000002b4,0x0000005b,0x00050094,0x00000047,0x000002b5,0x000002b3,0x000002b4,
0x00050041,0x000000f0,0x000002b6,0x00000053,0x00000013,0x0004003d,0x00000047,0x000002b7,
0x000002b6,0x00050081,0x00000047,0x000002b8,0x000002b7,0x000002b5,0x00050041,0x000000f0,
0x000002b9,0x00000053,0x00000013,0x0003003e,0x000002b9,0x000002b8,0x0004003d,0x00000006,
0x000002ba,0x00000020,0x00050080,0x00000006,0x000002bb,0x000002ba,0x00000124,0x0005008b,
0x00000006,0x000002bc,0x000002bb,0x000000a4,0x0003003e,0x000000a1,0x000002bc,0x0004003d,
0x00000006,0x000002bd,0x00000020,0x00050080,0x00000006,0x000002be,0x000002bd,0x00000124,
0x00050087,0x00000006,0x000002bf,0x000002be,0x000000a4,0x0003003e,0x000000a6,0x000002bf,
0x0004003d,0x00000006,0x000002c0,0x000000a6,0x00050084,0x00000006,0x000002c1,0x000002c0,
0x000000ac,0x00050082,0x00000006,0x000002c2,0x000002c1,0x000000ae,0x0003003e,0x000000aa,
0x000002c2,0x0004003d,0x00000006,0x000002c3,0x000000a1,0x00050084,0x00000006,0x000002c4,
0x000002c3,0x000000b2,0x00050082,0x00000006,0x000002c5,0x000002c4,0x000000b4,0x0003003e,
0x000000b0,0x000002c5,0x0004003d,0x00000006,0x000002c6,0x000000b0,0x0004003d,0x00000006,
0x000002c7,0x00000054,0x00050084,0x00000006,0x000002c8,0x000002c7,0x00000021,0x00050080,
0x00000006,0x000002c9,0x000002c8,0x00000055,0x0005008b,0x00000006,0x000002ca,0x000002c9,
0x000000bb,0x00050084,0x00000006,0x000002cb,0x000002ca,0x000000bd,0x00050080,0x00000006,
0x000002cc,0x000002c6,0x000002cb,0x0003003e,0x000000b6,0x000002cc,0x0004003d,0x00000006,
0x000002cd,0x000000aa,0x0004003d,0x00000006,0x000002ce,0x00000054,0x00050084,0x00000006,
0x000002cf,0x000002ce,0x00000021,0x00050080,0x00000006,0x000002d0,0x000002cf,0x00000055,
0x0005008b,0x00000006,0x000002d2,0x000002d0,0x000002d1,0x00050087,0x00000006,0x000002d3,
0x000002d2,0x000000bb,0x00050084,0x00000006,0x000002d4,0x000002d3,0x000000c9,0x00050080,
0x00000006,0x000002d5,0x000002cd,0x000002d4,0x0003003e,0x000000c0,0x000002d5,0x0004003d,
0x00000006,0x000002d6,0x00000054,0x00050084,0x00000006,0x000002d7,0x000002d6,0x00000021,
0x00050080,0x00000006,0x000002d8,0x000002d7,0x00000055,0x00050087,0x00000006,0x000002da,
0x000002d8,0x000002d9,0x0003003e,0x000000cc,0x000002da,0x0004003d,0x00000006,0x000002db,
0x000000c0,0x000500af,0x00000033,0x000002dc,0x000002db,0x00000055,0x0004003d,0x00000006,
0x000002dd,0x000000c0,0x000500b1,0x00000033,0x000002de,0x000002dd,0x00000026,0x000500a7,
0x00000033,0x000002df,0x000002dc,0x000002de,0x0004003d,0x00000006,0x000002e0,0x000000b6,
0x000500af,0x00000033,0x000002e1,0x000002e0,0x00000055,0x000500a7,0x00000033,0x000002e2,
0x000002df,0x000002e1,0x0004003d,0x00000006,0x000002e3,0x000000b6,0x000500b1,0x00000033,
0x000002e4,0x000002e3,0x00000028,0x000500a7,0x00000033,0x000002e5,0x000002e2,0x000002e4,
0x000300f7,0x000002e7,0x00000000,0x000400fa,0x000002e5,0x000002e6,0x000002e7,0x000200f8,
0x000002e6,0x0004003d,0x00000006,0x000002e8,0x00000024,0x0004003d,0x00000006,0x000002e9,
0x000000cc,0x00050084,0x00000006,0x000002eb,0x000002e9,0x000002ea,0x00050080,0x00000006,
0x000002ec,0x000002e8,0x000002eb,0x0004003d,0x00000006,0x000002ed,0x000000c0,0x00050084,
0x00000006,0x000002ee,0x000002ed,0x00000028,0x00050080,0x00000006,0x000002ef,0x000002ec,
0x000002ee,0x0004003d,0x00000006,0x000002f0,0x000000b6,0x00050080,0x00000006,0x000002f1,
0x000002ef,0x000002f0,0x00060041,0x000000ed,0x000002f2,0x000000e2,0x00000055,0x000002f1,
0x0004003d,0x00000047,0x000002f3,0x000002f2,0x00050041,0x000000f0,0x000002f4,0x0000005c,
0x0000000d,0x0003003e,0x000002f4,0x000002f3,0x000200f9,0x000002e7,0x000200f8,0x000002e7,
0x0004003d,0x00000006,0x000002f5,0x000000b0,0x0004003d,0x00000006,0x000002f6,0x00000054,
0x00050084,0x00000006,0x000002f7,0x000002f6,0x00000021,0x00050080,0x00000006,0x000002f8,
0x000002f7,0x0000009b,0x0005008b,0x00000006,0x000002f9,0x000002f8,0x000000bb,0x00050084,
0x00000006,0x000002fa,0x000002f9,0x000000bd,0x00050080,0x00000006,0x000002fb,0x000002f5,
0x000002fa,0x0003003e,0x000000b6,0x000002fb,0x0004003d,0x00000006,0x000002fc,0x000000aa,
0x0004003d,0x00000006,0x000002fd,0x00000054,0x00050084,0x00000006,0x000002fe,0x000002fd,
0x00000021,0x00050080,0x00000006,0x000002ff,0x000002fe,0x0000009b,0x0005008b,0x00000006,
0x00000301,0x000002ff,0x00000300,0x00050087,0x00000006,0x00000302,0x00000301,0x000000bb,
0x00050084,0x00000006,0x00000303,0x00000302,0x000000c9,0x00050080,0x00000006,0x00000304,
0x000002fc,0x00000303,0x0003003e,0x000000c0,0x00000304,0x0004003d,0x00000006,0x00000305,
0x00000054,0x00050084,0x00000006,0x00000306,0x00000305,0x00000021,0x00050080,0x00000006,
0x00000307,0x00000306,0x0000009b,0x00050087,0x00000006,0x00000309,0x00000307,0x00000308,
0x0003003e,0x000000cc,0x00000309,0x0004003d,0x00000006,0x0000030a,0x000000c0,0x000500af,
0x00000033,0x0000030b,0x0000030a,0x00000055,0x0004003d,0x00000006,0x0000030c,0x000000c0,
0x000500b1,0x00000033,0x0000030d,0x0000030c,0x00000026,0x000500a7,0x00000033,0x0000030e,
0x0000030b,0x0000030d,0x0004003d,0x00000006,0x0000030f,0x000000b6,0x000500af,0x00000033,
0x00000310,0x0000030f,0x00000055,0x000500a7,0x00000033,0x00000311,0x0000030e,0x00000310,
0x0004003d,0x00000006,0x00000312,0x000000b6,0x000500b1,0x00000033,0x00000313,0x00000312,
0x00000028,0x000500a7,0x00000033,0x00000314,0x00000311,0x00000313,0x000300f7,0x00000316,
0x00000000,0x000400fa,0x00000314,0x00000315,0x00000316,0x000200f8,0x00000315,0x0004003d,
0x00000006,0x00000317,0x00000024,0x0004003d,0x00000006,0x00000318,0x000000cc,0x00050084,
0x00000006,0x0000031a,0x00000318,0x00000319,0x00050080,0x00000006,0x0000031b,0x00000317,
0x0000031a,0x0004003d,0x00000006,0x0000031c,0x000000c0,0x00050084,0x00000006,0x0000031d,
0x0000031c,0x00000028,0x00050080,0x00000006,0x0000031e,0x0000031b,0x0000031d,0x0004003d,
0x00000006,0x0000031f,0x000000b6,0x00050080,0x00000006,0x00000320,0x0000031e,0x0000031f,
0x00060041,0x000000ed,0x00000321,0x000000e2,0x00000055,0x00000320,0x0004003d,0x00000047,
0x00000322,0x00000321,0x00050041,0x000000f0,0x00000323,0x0000005c,0x00000013,0x0003003e,
0x00000323,0x00000322,0x000200f9,0x00000316,0x000200f8,0x00000316,0x0004003d,0x00000006,
0x00000324,0x000000b0,0x0004003d,0x00000006,0x00000325,0x00000054,0x00050084,0x00000006,
0x00000326,0x00000325,0x00000021,0x00050080,0x00000006,0x00000327,0x00000326,0x00000124,
0x0005008b,0x00000006,0x00000328,0x00000327,0x000000bb,0x00050084,0x00000006,0x00000329,
0x00000328,0x000000bd,0x00050080,0x00000006,0x0000032a,0x00000324,0x00000329,0x0003003e,
0x000000b6,0x0000032a,0x0004003d,0x00000006,0x0000032b,0x000000aa,0x0004003d,0x00000006,
0x0000032c,0x00000054,0x00050084,0x00000006,0x0000032d,0x0000032c,0x00000021,0x00050080,
0x00000006,0x0000032e,0x0000032d,0x00000124,0x0005008b,0x00000006,0x00000330,0x0000032e,
0x0000032f,0x00050087,0x00000006,0x00000331,0x00000330,0x000000bb,0x00050084,0x00000006,
0x00000332,0x00000331,0x000000c9,0x00050080,0x00000006,0x00000333,0x0000032b,0x00000332,
0x0003003e,0x000000c0,0x00000333,0x0004003d,0x00000006,0x00000334,0x00000054,0x00050084,
0x00000006,0x00000335,0x00000334,0x00000021,0x00050080,0x00000006,0x00000336,0x00000335,
0x00000124,0x00050087,0x00000006,0x00000338,0x00000336,0x00000337,0x0003003e,0x000000cc,
0x00000338,0x0004003d,0x00000006,0x00000339,0x000000c0,0x000500af,0x00000033,0x0000033a,
0x00000339,0x00000055,0x0004003d,0x00000006,0x0000033b,0x000000c0,0x000500b1,0x00000033,
0x0000033c,0x0000033b,0x00000026,0x000500a7,0x00000033,0x0000033d,0x0000033a,0x0000033c,
0x0004003d,0x00000006,0x0000033e,0x000000b6,0x000500af,0x00000033,0x0000033f,0x0000033e,
0x00000055,0x000500a7,0x00000033,0x00000340,0x0000033d,0x0000033f,0x0004003d,0x00000006,
0x00000341,0x000000b6,0x000500b1,0x00000033,0x00000342,0x00000341,0x00000028,0x000500a7,
0x00000033,0x00000343,0x00000340,0x00000342,0x000300f7,0x00000345,0x00000000,0x000400fa,
0x00000343,0x00000344,0x00000345,0x000200f8,0x00000344,0x0004003d,0x00000006,0x00000346,
0x00000024,0x0004003d,0x00000006,0x00000347,0x000000cc,0x00050084,0x00000006,0x00000349,
0x00000347,0x00000348,0x00050080,0x00000006,0x0000034a,0x00000346,0x00000349,0x0004003d,
0x00000006,0x0000034b,0x000000c0,0x00050084,0x00000006,0x0000034c,0x0000034b,0x00000028,
0x00050080,0x00000006,0x0000034d,0x0000034a,0x0000034c,0x0004003d,0x00000006,0x0000034e,
0x000000b6,0x00050080,0x00000006,0x0000034f,0x0000034d,0x0000034e,0x00060041,0x000000ed,
0x00000350,0x000000e2,0x00000055,0x0000034f,0x0004003d,0x00000047,0x00000351,0x00000350,
0x00050041,0x000000f0,0x00000352,0x0000005c,0x00000018,0x0003003e,0x00000352,0x00000351,
0x000200f9,0x00000345,0x000200f8,0x00000345,0x0004003d,0x00000006,0x00000353,0x000000b0,
0x0004003d,0x00000006,0x00000354,0x00000054,0x00050084,0x00000006,0x00000355,0x00000354,
0x00000021,0x00050080,0x00000006,0x00000356,0x00000355,0x00000154,0x0005008b,0x00000006,
0x00000357,0x00000356,0x000000bb,0x00050084,0x00000006,0x00000358,0x00000357,0x000000bd,
0x00050080,0x00000006,0x00000359,0x00000353,0x00000358,0x0003003e,0x000000b6,0x00000359,
0x0004003d,0x00000006,0x0000035a,0x000000aa,0x0004003d,0x00000006,0x0000035b,0x00000054,
0x00050084,0x00000006,0x0000035c,0x0000035b,0x00000021,0x00050080,0x00000006,0x0000035d,
0x0000035c,0x00000154,0x0005008b,0x00000006,0x0000035f,0x0000035d,0x0000035e,0x00050087,
0x00000006,0x00000360,0x0000035f,0x000000bb,0x00050084,0x00000006,0x00000361,0x00000360,
0x000000c9,0x00050080,0x00000006,0x00000362,0x0000035a,0x00000361,0x0003003e,0x000000c0,
0x00000362,0x0004003d,0x00000006,0x00000363,0x00000054,0x00050084,0x00000006,0x00000364,
0x00000363,0x00000021,0x00050080,0x00000006,0x00000365,0x00000364,0x00000154,0x00050087,
0x00000006,0x00000367,0x00000365,0x00000366,0x0003003e,0x000000cc,0x00000367,0x0004003d,
0x00000006,0x00000368,0x000000c0,0x000500af,0x00000033,0x00000369,0x00000368,0x00000055,
0x0004003d,0x00000006,0x0000036a,0x000000c0,0x000500b1,0x00000033,0x0000036b,0x0000036a,
0x00000026,0x000500a7,0x00000033,0x0000036c,0x00000369,0x0000036b,0x0004003d,0x00000006,
0x0000036d,0x000000b6,0x000500af,0x00000033,0x0000036e,0x0000036d,0x00000055,0x000500a7,
0x00000033,0x0000036f,0x0000036c,0x0000036e,0x0004003d,0x00000006,0x00000370,0x000000b6,
0x000500b1,0x00000033,0x00000371,0x00000370,0x00000028,0x000500a7,0x00000033,0x00000372,
0x0000036f,0x00000371,0x000300f7,0x00000374,0x00000000,0x000400fa,0x00000372,0x00000373,
0x00000374,0x000200f8,0x00000373,0x0004003d,0x00000006,0x00000375,0x00000024,0x0004003d,
0x00000006,0x00000376,0x000000cc,0x00050084,0x00000006,0x00000378,0x00000376,0x00000377,
0x00050080,0x00000006,0x00000379,0x00000375,0x00000378,0x0004003d,0x00000006,0x0000037a,
0x000000c0,0x00050084,0x00000006,0x0000037b,0x0000037a,0x00000028,0x00050080,0x00000006,
0x0000037c,0x00000379,0x0000037b,0x0004003d,0x00000006,0x0000037d,0x000000b6,0x00050080,
0x00000006,0x0000037e,0x0000037c,0x0000037d,0x00060041,0x000000ed,0x0000037f,0x000000e2,
0x00000055,0x0000037e,0x0004003d,0x00000047,0x00000380,0x0000037f,0x00050041,0x000000f0,
0x00000381,0x0000005c,0x00000180,0x0003003e,0x00000381,0x00000380,0x000200f9,0x00000374,
0x000200f8,0x00000374,0x0004003d,0x00000048,0x00000382,0x0000005e,0x0004003d,0x00000048,
0x00000383,0x0000005c,0x00050094,0x00000047,0x00000384,0x00000382,0x00000383,0x00050041,
0x000000f0,0x00000385,0x0000004a,0x00000018,0x0004003d,0x00000047,0x00000386,0x00000385,
0x00050081,0x00000047,0x00000387,0x00000386,0x00000384,0x00050041,0x000000f0,0x00000388,
0x0000004a,0x00000018,0x0003003e,0x00000388,0x00000387,0x0004003d,0x00000048,0x00000389,
0x0000006a,0x0004003d,0x00000048,0x0000038a,0x0000005c,0x00050094,0x00000047,0x0000038b,
0x00000389,0x0000038a,0x00050041,0x000000f0,0x0000038c,0x0000004d,0x00000018,0x0004003d,
0x00000047,0x0000038d,0x0000038c,0x00050081,0x00000047,0x0000038e,0x0000038d,0x0000038b,
0x00050041,0x000000f0,0x0000038f,0x0000004d,0x00000018,0x0003003e,0x0000038f,0x0000038e,
0x0004003d,0x00000048,0x00000390,0x00000071,0x0004003d,0x00000048,0x00000391,0x0000005c,
0x00050094,0x00000047,0x00000392,0x00000390,0x00000391,0x00050041,0x000000f0,0x00000393,
0x0000004e,0x00000018,0x0004003d,0x00000047,0x00000394,0x00000393,0x00050081,0x00000047,
0x00000395,0x00000394,0x00000392,0x00050041,0x000000f0,0x00000396,0x0000004e,0x00000018,
0x0003003e,0x00000396,0x00000395,0x0004003d,0x00000048,0x00000397,0x00000078,0x0004003d,
0x00000048,0x00000398,0x0000005c,0x00050094,0x00000047,0x00000399,0x00000397,0x00000398,
0x00050041,0x000000f0,0x0000039a,0x0000004f,0x00000018,0x0004003d,0x00000047,0x0000039b,
0x0000039a,0x00050081,0x00000047,0x0000039c,0x0000039b,0x00000399,0x00050041,0x000000f0,
0x0000039d,0x0000004f,0x00000018,0x0003003e,0x0000039d,0x0000039c,0x0004003d,0x00000048,
0x0000039e,0x0000007f,0x0004003d,0x00000048,0x0000039f,0x0000005c,0x00050094,0x00000047,
0x000003a0,0x0000039e,0x0000039f,0x00050041,0x000000f0,0x000003a1,0x00000050,0x00000018,
0x0004003d,0x00000047,0x000003a2,0x000003a1,0x00050081,0x00000047,0x000003a3,0x000003a2,
0x000003a0,0x00050041,0x000000f0,0x000003a4,0x00000050,0x00000018,0x0003003e,0x000003a4,
0x000003a3,0x0004003d,0x00000048,0x000003a5,0x00000086,0x0004003d,0x00000048,0x000003a6,
0x0000005c,0x00050094,0x00000047,0x000003a7,0x000003a5,0x000003a6,0x00050041,0x000000f0,
0x000003a8,0x00000051,0x00000018,0x0004003d,0x00000047,0x000003a9,0x000003a8,0x00050081,
0x00000047,0x000003aa,0x000003a9,0x000003a7,0x00050041,0x000000f0,0x000003ab,0x00000051,
0x00000018,0x0003003e,0x000003ab,0x000003aa,0x0004003d,0x00000048,0x000003ac,0x0000008d,
0x0004003d,0x00000048,0x000003ad,0x0000005c,0x00050094,0x00000047,0x000003ae,0x000003ac,
0x000003ad,0x00050041,0x000000f0,0x000003af,0x00000052,0x00000018,0x0004003d,0x00000047,
0x000003b0,0x000003af,0x00050081,0x00000047,0x000003b1,0x000003b0,0x000003ae,0x00050041,
0x000000f0,0x000003b2,0x00000052,0x00000018,0x0003003e,0x000003b2,0x000003b1,0x0004003d,
0x00000048,0x000003b3,0x00000094,0x0004003d,0x00000048,0x000003b4,0x0000005c,0x00050094,
0x00000047,0x000003b5,0x000003b3,0x000003b4,0x00050041,0x000000f0,0x000003b6,0x00000053,
0x00000018,0x0004003d,0x00000047,0x000003b7,0x000003b6,0x00050081,0x00000047,0x000003b8,
0x000003b7,0x000003b5,0x00050041,0x000000f0,0x000003b9,0x00000053,0x00000018,0x0003003e,
0x000003b9,0x000003b8,0x0004003d,0x00000006,0x000003ba,0x00000020,0x00050080,0x00000006,
0x000003bb,0x000003ba,0x00000154,0x0005008b,0x00000006,0x000003bc,0x000003bb,0x000000a4,
0x0003003e,0x000000a1,0x000003bc,0x0004003d,0x00000006,0x000003bd,0x00000020,0x00050080,
0x00000006,0x000003be,0x000003bd,0x00000154,0x00050087,0x00000006,0x000003bf,0x000003be,
0x000000a4,0x0003003e,0x000000a6,0x000003bf,0x0004003d,0x00000006,0x000003c0,0x000000a6,
0x00050084,0x00000006,0x000003c1,0x000003c0,0x000000ac,0x00050082,0x00000006,0x000003c2,
0x000003c1,0x000000ae,0x0003003e,0x000000aa,0x000003c2,0x0004003d,0x00000006,0x000003c3,
0x000000a1,0x00050084,0x00000006,0x000003c4,0x000003c3,0x000000b2,0x00050082,0x00000006,
0x000003c5,0x000003c4,0x000000b4,0x0003003e,0x000000b0,0x000003c5,0x0004003d,0x00000006,
0x000003c6,0x000000b0,0x0004003d,0x00000006,0x000003c7,0x00000054,0x00050084,0x00000006,
0x000003c8,0x000003c7,0x00000021,0x00050080,0x00000006,0x000003c9,0x000003c8,0x00000055,
0x0005008b,0x00000006,0x000003ca,0x000003c9,0x000000bb,0x00050084,0x00000006,0x000003cb,
0x000003ca,0x000000bd,0x00050080,0x00000006,0x000003cc,0x000003c6,0x000003cb,0x0003003e,
0x000000b6,0x000003cc,0x0004003d,0x00000006,0x000003cd,0x000000aa,0x0004003d,0x00000006,
0x000003ce,0x00000054,0x00050084,0x00000006,0x000003cf,0x000003ce,0x00000021,0x00050080,
0x00000006,0x000003d0,0x000003cf,0x00000055,0x0005008b,0x00000006,0x000003d2,0x000003d0,
0x000003d1,0x00050087,0x00000006,0x000003d3,0x000003d2,0x000000bb,0x00050084,0x00000006,
0x000003d4,0x000003d3,0x000000c9,0x00050080,0x00000006,0x000003d5,0x000003cd,0x000003d4,
0x0003003e,0x000000c0,0x000003d5,0x0004003d,0x00000006,0x000003d6,0x00000054,0x00050084,
0x00000006,0x000003d7,0x000003d6,0x00000021,0x00050080,0x00000006,0x000003d8,0x000003d7,
0x00000055,0x00050087,0x00000006,0x000003da,0x000003d8,0x000003d9,0x0003003e,0x000000cc,
0x000003da,0x0004003d,0x00000006,0x000003db,0x000000c0,0x000500af,0x00000033,0x000003dc,
0x000003db,0x00000055,0x0004003d,0x00000006,0x000003dd,0x000000c0,0x000500b1,0x00000033,
0x000003de,0x000003dd,0x00000026,0x000500a7,0x00000033,0x000003df,0x000003dc,0x000003de,
0x0004003d,0x00000006,0x000003e0,0x000000b6,0x000500af,0x00000033,0x000003e1,0x000003e0,
0x00000055,0x000500a7,0x00000033,0x000003e2,0x000003df,0x000003e1,0x0004003d,0x00000006,
0x000003e3,0x000000b6,0x000500b1,0x00000033,0x000003e4,0x000003e3,0x00000028,0x000500a7,
0x00000033,0x000003e5,0x000003e2,0x000003e4,0x000300f7,0x000003e7,0x00000000,0x000400fa,
0x000003e5,0x000003e6,0x000003e7,0x000200f8,0x000003e6,0x0004003d,0x00000006,0x000003e8,
0x00000024,0x0004003d,0x00000006,0x000003e9,0x000000cc,0x00050084,0x00000006,0x000003eb,
0x000003e9,0x000003ea,0x00050080,0x00000006,0x000003ec,0x000003e8,0x000003eb,0x0004003d,
0x00000006,0x000003ed,0x000000c0,0x00050084,0x00000006,0x000003ee,0x000003ed,0x00000028,
0x00050080,0x00000006,0x000003ef,0x000003ec,0x000003ee,0x0004003d,0x00000006,0x000003f0,
0x000000b6,0x00050080,0x00000006,0x000003f1,0x000003ef,0x000003f0,0x00060041,0x000000ed,
0x000003f2,0x000000e2,0x00000055,0x000003f1,0x0004003d,0x00000047,0x000003f3,0x000003f2,
0x00050041,0x000000f0,0x000003f4,0x0000005d,0x0000000d,0x0003003e,0x000003f4,0x000003f3,
0x000200f9,0x000003e7,0x000200f8,0x000003e7,0x0004003d,0x00000006,0x000003f5,0x000000b0,
0x0004003d,0x00000006,0x000003f6,0x00000054,0x00050084,0x00000006,0x000003f7,0x000003f6,
0x00000021,0x00050080,0x00000006,0x000003f8,0x000003f7,0x0000009b,0x0005008b,0x00000006,
0x000003f9,0x000003f8,0x000000bb,0x00050084,0x00000006,0x000003fa,0x000003f9,0x000000bd,
0x00050080,0x00000006,0x000003fb,0x000003f5,0x000003fa,0x0003003e,0x000000b6,0x000003fb,
0x0004003d,0x00000006,0x000003fc,0x000000aa,0x0004003d,0x00000006,0x000003fd,0x00000054,
0x00050084,0x00000006,0x000003fe,0x000003fd,0x00000021,0x00050080,0x00000006,0x000003ff,
0x000003fe,0x0000009b,0x0005008b,0x00000006,0x00000401,0x000003ff,0x00000400,0x00050087,
0x00000006,0x00000402,0x00000401,0x000000bb,0x00050084,0x00000006,0x00000403,0x00000402,
0x000000c9,0x00050080,0x00000006,0x00000404,0x000003fc,0x00000403,0x0003003e,0x000000c0,
0x00000404,0x0004003d,0x00000006,0x00000405,0x00000054,0x00050084,0x00000006,0x00000406,
0x00000405,0x00000021,0x00050080,0x00000006,0x00000407,0x00000406,0x0000009b,0x00050087,
0x00000006,0x00000409,0x00000407,0x00000408,0x0003003e,0x000000cc,0x00000409,0x0004003d,
0x00000006,0x0000040a,0x000000c0,0x000500af,0x00000033,0x0000040b,0x0000040a,0x00000055,
0x0004003d,0x00000006,0x0000040c,0x000000c0,0x000500b1,0x00000033,0x0000040d,0x0000040c,
0x00000026,0x000500a7,0x00000033,0x0000040e,0x0000040b,0x0000040d,0x0004003d,0x00000006,
0x0000040f,0x000000b6,0x000500af,0x00000033,0x00000410,0x0000040f,0x00000055,0x000500a7,
0x00000033,0x00000411,0x0000040e,0x00000410,0x0004003d,0x00000006,0x00000412,0x000000b6,
0x000500b1,0x00000033,0x00000413,0x00000412,0x00000028,0x000500a7,0x00000033,0x00000414,
0x00000411,0x00000413,0x000300f7,0x00000416,0x00000000,0x000400fa,0x00000414,0x00000415,
0x00000416,0x000200f8,0x00000415,0x0004003d,0x00000006,0x00000417,0x00000024,0x0004003d,
0x00000006,0x00000418,0x000000cc,0x00050084,0x00000006,0x0000041a,0x00000418,0x00000419,
0x00050080,0x00000006,0x0000041b,0x00000417,0x0000041a,0x0004003d,0x00000006,0x0000041c,
0x000000c0,0x00050084,0x00000006,0x0000041d,0x0000041c,0x00000028,0x00050080,0x00000006,
0x0000041e,0x0000041b,0x0000041d,0x0004003d,0x00000006,0x0000041f,0x000000b6,0x00050080,
0x00000006,0x00000420,0x0000041e,0x0000041f,0x00060041,0x000000ed,0x00000421,0x000000e2,
0x00000055,0x00000420,0x0004003d,0x00000047,0x00000422,0x00000421,0x00050041,0x000000f0,
0x00000423,0x0000005d,0x00000013,0x0003003e,0x00000423,0x00000422,0x000200f9,0x00000416,
0x000200f8,0x00000416,0x0004003d,0x00000006,0x00000424,0x000000b0,0x0004003d,0x00000006,
0x00000425,0x00000054,0x00050084,0x00000006,0x00000426,0x00000425,0x00000021,0x00050080,
0x00000006,0x00000427,0x00000426,0x00000124,0x0005008b,0x00000006,0x00000428,0x00000427,
0x000000bb,0x00050084,0x00000006,0x00000429,0x00000428,0x000000bd,0x00050080,0x00000006,
0x0000042a,0x00000424,0x00000429,0x0003003e,0x000000b6,0x0000042a,0x0004003d,0x00000006,
0x0000042b,0x000000aa,0x0004003d,0x00000006,0x0000042c,0x00000054,0x00050084,0x00000006,
0x0000042d,0x0000042c,0x00000021,0x00050080,0x00000006,0x0000042e,0x0000042d,0x00000124,
0x0005008b,0x00000006,0x00000430,0x0000042e,0x0000042f,0x00050087,0x00000006,0x00000431,
0x00000430,0x000000bb,0x00050084,0x00000006,0x00000432,0x00000431,0x000000c9,0x00050080,
0x00000006,0x00000433,0x0000042b,0x00000432,0x0003003e,0x000000c0,0x00000433,0x0004003d,
0x00000006,0x00000434,0x00000054,0x00050084,0x00000006,0x00000435,0x00000434,0x00000021,
0x00050080,0x00000006,0x00000436,0x00000435,0x00000124,0x00050087,0x00000006,0x00000438,
0x00000436,0x00000437,0x0003003e,0x000000cc,0x00000438,0x0004003d,0x00000006,0x00000439,
0x000000c0,0x000500af,0x00000033,0x0000043a,0x00000439,0x00000055,0x0004003d,0x00000006,
0x0000043b,0x000000c0,0x000500b1,0x00000033,0x0000043c,0x0000043b,0x00000026,0x000500a7,
0x00000033,0x0000043d,0x0000043a,0x0000043c,0x0004003d,0x00000006,0x0000043e,0x000000b6,
0x000500af,0x00000033,0x0000043f,0x0000043e,0x00000055,0x000500a7,0x00000033,0x00000440,
0x0000043d,0x0000043f,0x0004003d,0x00000006,0x00000441,0x000000b6,0x000500b1,0x00000033,
0x00000442,0x00000441,0x00000028,0x000500a7,0x00000033,0x00000443,0x00000440,0x00000442,
0x000300f7,0x00000445,0x00000000,0x000400fa,0x00000443,0x00000444,0x00000445,0x000200f8,
0x00000444,0x0004003d,0x00000006,0x00000446,0x00000024,0x0004003d,0x00000006,0x00000447,
0x000000cc,0x00050084,0x00000006,0x00000449,0x00000447,0x00000448,0x00050080,0x00000006,
0x0000044a,0x00000446,0x00000449,0x0004003d,0x00000006,0x0000044b,0x000000c0,0x00050084,
0x00000006,0x0000044c,0x0000044b,0x00000028,0x00050080,0x00000006,0x0000044d,0x0000044a,
0x0000044c,0x0004003d,0x00000006,0x0000044e,0x000000b6,0x00050080,0x00000006,0x0000044f,
0x0000044d,0x0000044e,0x00060041,0x000000ed,0x00000450,0x000000e2,0x00000055,0x0000044f,
0x0004003d,0x00000047,0x00000451,0x00000450,0x00050041,0x000000f0,0x00000452,0x0000005d,
0x00000018,0x0003003e,0x00000452,0x00000451,0x000200f9,0x00000445,0x000200f8,0x00000445,
0x0004003d,0x00000006,0x00000453,0x000000b0,0x0004003d,0x00000006,0x00000454,0x00000054,
0x00050084,0x00000006,0x00000455,0x00000454,0x00000021,0x00050080,0x00000006,0x00000456,
0x00000455,0x00000154,0x0005008b,0x00000006,0x00000457,0x00000456,0x000000bb,0x00050084,
0x00000006,0x00000458,0x00000457,0x000000bd,0x00050080,0x00000006,0x00000459,0x00000453,
0x00000458,0x0003003e,0x000000b6,0x00000459,0x0004003d,0x00000006,0x0000045a,0x000000aa,
0x0004003d,0x00000006,0x0000045b,0x00000054,0x00050084,0x00000006,0x0000045c,0x0000045b,
0x00000021,0x00050080,0x00000006,0x0000045d,0x0000045c,0x00000154,0x0005008b,0x00000006,
0x0000045f,0x0000045d,0x0000045e,0x00050087,0x00000006,0x00000460,0x0000045f,0x000000bb,
0x00050084,0x00000006,0x00000461,0x00000460,0x000000c9,0x00050080,0x00000006,0x00000462,
0x0000045a,0x00000461,0x0003003e,0x000000c0,0x00000462,0x0004003d,0x00000006,0x00000463,
0x00000054,0x00050084,0x00000006,0x00000464,0x00000463,0x00000021,0x00050080,0x00000006,
0x00000465,0x00000464,0x00000154,0x00050087,0x00000006,0x00000467,0x00000465,0x00000466,
0x0003003e,0x000000cc,0x00000467,0x0004003d,0x00000006,0x00000468,0x000000c0,0x000500af,
0x00000033,0x00000469,0x00000468,0x00000055,0x0004003d,0x00000006,0x0000046a,0x000000c0,
0x000500b1,0x00000033,0x0000046b,0x0000046a,0x00000026,0x000500a7,0x00000033,0x0000046c,
0x00000469,0x0000046b,0x0004003d,0x00000006,0x0000046d,0x000000b6,0x000500af,0x00000033,
0x0000046e,0x0000046d,0x00000055,0x000500a7,0x00000033,0x0000046f,0x0000046c,0x0000046e,
0x0004003d,0x00000006,0x00000470,0x000000b6,0x000500b1,0x00000033,0x00000471,0x00000470,
0x00000028,0x000500a7,0x00000033,0x00000472,0x0000046f,0x00000471,0x000300f7,0x00000474,
0x00000000,0x000400fa,0x00000472,0x00000473,0x00000474,0x000200f8,0x00000473,0x0004003d,
0x00000006,0x00000475,0x00000024,0x0004003d,0x00000006,0x00000476,0x000000cc,0x00050084,
0x00000006,0x00000478,0x00000476,0x00000477,0x00050080,0x00000006,0x00000479,0x00000475,
0x00000478,0x0004003d,0x00000006,0x0000047a,0x000000c0,0x00050084,0x00000006,0x0000047b,
0x0000047a,0x00000028,0x00050080,0x00000006,0x0000047c,0x00000479,0x0000047b,0x0004003d,
0x00000006,0x0000047d,0x000000b6,0x00050080,0x00000006,0x0000047e,0x0000047c,0x0000047d,
0x00060041,0x000000ed,0x0000047f,0x000000e2,0x00000055,0x0000047e,0x0004003d,0x00000047,
0x00000480,0x0000047f,0x00050041,0x000000f0,0x00000481,0x0000005d,0x00000180,0x0003003e,
0x00000481,0x00000480,0x000200f9,0x00000474,0x000200f8,0x00000474,0x0004003d,0x00000048,
0x00000482,0x0000005e,0x0004003d,0x00000048,0x00000483,0x0000005d,0x00050094,0x00000047,
0x00000484,0x00000482,0x00000483,0x00050041,0x000000f0,0x00000485,0x0000004a,0x00000180,
0x0004003d,0x00000047,0x00000486,0x00000485,0x00050081,0x00000047,0x00000487,0x00000486,
0x00000484,0x00050041,0x000000f0,0x00000488,0x0000004a,0x00000180,0x0003003e,0x00000488,
0x00000487,0x0004003d,0x00000048,0x00000489,0x0000006a,0x0004003d,0x00000048,0x0000048a,
0x0000005d,0x00050094,0x00000047,0x0000048b,0x00000489,0x0000048a,0x00050041,0x000000f0,
0x0000048c,0x0000004d,0x00000180,0x0004003d,0x00000047,0x0000048d,0x0000048c,0x00050081,
0x00000047,0x0000048e,0x0000048d,0x0000048b,0x00050041,0x000000f0,0x0000048f,0x0000004d,
0x00000180,0x0003003e,0x0000048f,0x0000048e,0x0004003d,0x00000048,0x00000490,0x00000071,
0x0004003d,0x00000048,0x00000491,0x0000005d,0x00050094,0x00000047,0x00000492,0x00000490,
0x00000491,0x00050041,0x000000f0,0x00000493,0x0000004e,0x00000180,0x0004003d,0x00000047,
0x00000494,0x00000493,0x00050081,0x00000047,0x00000495,0x00000494,0x00000492,0x00050041,
0x000000f0,0x00000496,0x0000004e,0x00000180,0x0003003e,0x00000496,0x00000495,0x0004003d,
0x00000048,0x00000497,0x00000078,0x0004003d,0x00000048,0x00000498,0x0000005d,0x00050094,
0x00000047,0x00000499,0x00000497,0x00000498,0x00050041,0x000000f0,0x0000049a,0x0000004f,
0x00000180,0x0004003d,0x00000047,0x0000049b,0x0000049a,0x00050081,0x00000047,0x0000049c,
0x0000049b,0x00000499,0x00050041,0x000000f0,0x0000049d,0x0000004f,0x00000180,0x0003003e,
0x0000049d,0x0000049c,0x0004003d,0x00000048,0x0000049e,0x0000007f,0x0004003d,0x00000048,
0x0000049f,0x0000005d,0x00050094,0x00000047,0x000004a0,0x0000049e,0x0000049f,0x00050041,
0x000000f0,0x000004a1,0x00000050,0x00000180,0x0004003d,0x00000047,0x000004a2,0x000004a1,
0x00050081,0x00000047,0x000004a3,0x000004a2,0x000004a0,0x00050041,0x000000f0,0x000004a4,
0x00000050,0x00000180,0x0003003e,0x000004a4,0x000004a3,0x0004003d,0x00000048,0x000004a5,
0x00000086,0x0004003d,0x00000048,0x000004a6,0x0000005d,0x00050094,0x00000047,0x000004a7,
0x000004a5,0x000004a6,0x00050041,0x000000f0,0x000004a8,0x00000051,0x00000180,0x0004003d,
0x00000047,0x000004a9,0x000004a8,0x00050081,0x00000047,0x000004aa,0x000004a9,0x000004a7,
0x00050041,0x000000f0,0x000004ab,0x00000051,0x00000180,0x0003003e,0x000004ab,0x000004aa,
0x0004003d,0x00000048,0x000004ac,0x0000008d,0x0004003d,0x00000048,0x000004ad,0x0000005d,
0x00050094,0x00000047,0x000004ae,0x000004ac,0x000004ad,0x00050041,0x000000f0,0x000004af,
0x00000052,0x00000180,0x0004003d,0x00000047,0x000004b0,0x000004af,0x00050081,0x00000047,
0x000004b1,0x000004b0,0x000004ae,0x00050041,0x000000f0,0x000004b2,0x00000052,0x00000180,
0x0003003e,0x000004b2,0x000004b1,0x0004003d,0x00000048,0x000004b3,0x00000094,0x0004003d,
0x00000048,0x000004b4,0x0000005d,0x00050094,0x00000047,0x000004b5,0x000004b3,0x000004b4,
0x00050041,0x000000f0,0x000004b6,0x00000053,0x00000180,0x0004003d,0x00000047,0x000004b7,
0x000004b6,0x00050081,0x00000047,0x000004b8,0x000004b7,0x000004b5,0x00050041,0x000000f0,
0x000004b9,0x00000053,0x00000180,0x0003003e,0x000004b9,0x000004b8,0x0004003d,0x00000006,
0x000004ba,0x00000054,0x00050080,0x00000006,0x000004bb,0x000004ba,0x0000009b,0x0003003e,
0x00000054,0x000004bb,0x000200f9,0x00000059,0x000200f8,0x00000059,0x0004003d,0x00000006,
0x000004bc,0x00000054,0x0004003d,0x00000006,0x000004bd,0x0000003e,0x000500b1,0x00000033,
0x000004be,0x000004bc,0x000004bd,0x000400fa,0x000004be,0x00000056,0x00000058,0x000200f8,
0x00000058,0x00050041,0x0000000e,0x000004c4,0x0000000c,0x0000000d,0x0004003d,0x00000009,
0x000004c5,0x000004c4,0x0004007c,0x00000006,0x000004c6,0x000004c5,0x00050084,0x00000006,
0x000004c7,0x00000124,0x000004c6,0x00060041,0x00000064,0x000004c8,0x000004c3,0x00000055,
0x000004c7,0x0004003d,0x00000048,0x000004c9,0x000004c8,0x0003003e,0x000004bf,0x000004c9,
0x0004003d,0x00000048,0x000004ca,0x000004bf,0x0009004f,0x00000048,0x000004cb,0x000004ca,
0x000004ca,0x00000000,0x00000000,0x00000000,0x00000000,0x0004003d,0x00000048,0x000004cc,
0x0000004a,0x00050081,0x00000048,0x000004cd,0x000004cc,0x000004cb,0x0003003e,0x0000004a,
0x000004cd,0x0004003d,0x00000048,0x000004ce,0x000004bf,0x0009004f,0x00000048,0x000004cf,
0x000004ce,0x000004ce,0x00000001,0x00000001,0x00000001,0x00000001,0x0004003d,0x00000048,
0x000004d0,0x0000004d,0x00050081,0x00000048,0x000004d1,0x000004d0,0x000004cf,0x0003003e,
0x0000004d,0x000004d1,0x0004003d,0x00000048,0x000004d2,0x000004bf,0x0009004f,0x00000048,
0x000004d3,0x000004d2,0x000004d2,0x00000002,0x00000002,0x00000002,0x00000002,0x0004003d,
0x00000048,0x000004d4,0x0000004e,0x00050081,0x00000048,0x000004d5,0x000004d4,0x000004d3,
0x0003003e,0x0000004e,0x000004d5,0x0004003d,0x00000048,0x000004d6,0x000004bf,0x0009004f,
0x00000048,0x000004d7,0x000004d6,0x000004d6,0x00000003,0x00000003,0x00000003,0x00000003,
0x0004003d,0x00000048,0x000004d8,0x0000004f,0x00050081,0x00000048,0x000004d9,0x000004d8,
0x000004d7,0x0003003e,0x0000004f,0x000004d9,0x00050041,0x0000000e,0x000004da,0x0000000c,
0x0000000d,0x0004003d,0x00000009,0x000004db,0x000004da,0x0004007c,0x00000006,0x000004dc,
0x000004db,0x00050084,0x00000006,0x000004dd,0x00000124,0x000004dc,0x00050080,0x00000006,
0x000004de,0x000004dd,0x0000009b,0x00060041,0x00000064,0x000004df,0x000004c3,0x00000055,
0x000004de,0x0004003d,0x00000048,0x000004e0,0x000004df,0x0003003e,0x000004bf,0x000004e0,
0x0004003d,0x00000048,0x000004e1,0x000004bf,0x0009004f,0x00000048,0x000004e2,0x000004e1,
0x000004e1,0x00000000,0x00000000,0x00000000,0x00000000,0x0004003d,0x00000048,0x000004e3,
0x00000050,0x00050081,0x00000048,0x000004e4,0x000004e3,0x000004e2,0x0003003e,0x00000050,
0x000004e4,0x0004003d,0x00000048,0x000004e5,0x000004bf,0x0009004f,0x00000048,0x000004e6,
0x000004e5,0x000004e5,0x00000001,0x00000001,0x00000001,0x00000001,0x0004003d,0x00000048,
0x000004e7,0x00000051,0x00050081,0x00000048,0x000004e8,0x000004e7,0x000004e6,0x0003003e,
0x00000051,0x000004e8,0x0004003d,0x00000048,0x000004e9,0x000004bf,0x0009004f,0x00000048,
0x000004ea,0x000004e9,0x000004e9,0x00000002,0x00000002,0x00000002,0x00000002,0x0004003d,
0x00000048,0x000004eb,0x00000052,0x00050081,0x00000048,0x000004ec,0x000004eb,0x000004ea,
0x0003003e,0x00000052,0x000004ec,0x0004003d,0x00000048,0x000004ed,0x000004bf,0x0009004f,
0x00000048,0x000004ee,0x000004ed,0x000004ed,0x00000003,0x00000003,0x00000003,0x00000003,
0x0004003d,0x00000048,0x000004ef,0x00000053,0x00050081,0x00000048,0x000004f0,0x000004ef,
0x000004ee,0x0003003e,0x00000053,0x000004f0,0x0004003d,0x00000006,0x000004f5,0x0000002c,
0x0004003d,0x00000006,0x000004f6,0x0000001c,0x00050080,0x00000006,0x000004f7,0x000004f6,
0x00000055,0x00050084,0x00000006,0x000004f8,0x000004f7,0x0000002e,0x00050087,0x00000006,
0x000004f9,0x000004f8,0x00000021,0x00050080,0x00000006,0x000004fa,0x000004f5,0x000004f9,
0x0004003d,0x00000006,0x000004fb,0x00000012,0x00050080,0x00000006,0x000004fc,0x000004fa,
0x000004fb,0x0004003d,0x00000048,0x000004fd,0x0000004a,0x00060041,0x00000064,0x000004fe,
0x000004f4,0x00000055,0x000004fc,0x0003003e,0x000004fe,0x000004fd,0x0004003d,0x00000006,
0x000004ff,0x0000002c,0x0004003d,0x00000006,0x00000500,0x0000001c,0x00050080,0x00000006,
0x00000501,0x00000500,0x0000009b,0x00050084,0x00000006,0x00000502,0x00000501,0x0000002e,
0x00050087,0x00000006,0x00000503,0x00000502,0x00000021,0x00050080,0x00000006,0x00000504,
0x000004ff,0x00000503,0x0004003d,0x00000006,0x00000505,0x00000012,0x00050080,0x00000006,
0x00000506,0x00000504,0x00000505,0x0004003d,0x00000048,0x00000507,0x0000004d,0x00060041,
0x00000064,0x00000508,0x000004f4,0x00000055,0x00000506,0x0003003e,0x00000508,0x00000507,
0x0004003d,0x00000006,0x00000509,0x0000002c,0x0004003d,0x00000006,0x0000050a,0x0000001c,
0x00050080,0x00000006,0x0000050b,0x0000050a,0x00000124,0x00050084,0x00000006,0x0000050c,
0x0000050b,0x0000002e,0x00050087,0x00000006,0x0000050d,0x0000050c,0x00000021,0x00050080,
0x00000006,0x0000050e,0x00000509,0x0000050d,0x0004003d,0x00000006,0x0000050f,0x00000012,
0x00050080,0x00000006,0x00000510,0x0000050e,0x0000050f,0x0004003d,0x00000048,0x00000511,
0x0000004e,0x00060041,0x00000064,0x00000512,0x000004f4,0x00000055,0x00000510,0x0003003e,
0x00000512,0x00000511,0x0004003d,0x00000006,0x00000513,0x0000002c,0x0004003d,0x00000006,
0x00000514,0x0000001c,0x00050080,0x00000006,0x00000515,0x00000514,0x00000154,0x00050084,
0x00000006,0x00000516,0x00000515,0x0000002e,0x00050087,0x00000006,0x00000517,0x00000516,
0x00000021,0x00050080,0x00000006,0x00000518,0x00000513,0x00000517,0x0004003d,0x00000006,
0x00000519,0x00000012,0x00050080,0x00000006,0x0000051a,0x00000518,0x00000519,0x0004003d,
0x00000048,0x0000051b,0x0000004f,0x00060041,0x00000064,0x0000051c,0x000004f4,0x00000055,
0x0000051a,0x0003003e,0x0000051c,0x0000051b,0x0004003d,0x00000006,0x0000051d,0x0000002c,
0x0004003d,0x00000006,0x0000051e,0x0000001c,0x00050080,0x00000006,0x0000051f,0x0000051e,
0x00000021,0x00050084,0x00000006,0x00000520,0x0000051f,0x0000002e,0x00050087,0x00000006,
0x00000521,0x00000520,0x00000021,0x00050080,0x00000006,0x00000522,0x0000051d,0x00000521,
0x0004003d,0x00000006,0x00000523,0x00000012,0x00050080,0x00000006,0x00000524,0x00000522,
0x00000523,0x0004003d,0x00000048,0x00000525,0x00000050,0x00060041,0x00000064,0x00000526,
0x000004f4,0x00000055,0x00000524,0x0003003e,0x00000526,0x00000525,0x0004003d,0x00000006,
0x00000527,0x0000002c,0x0004003d,0x00000006,0x00000528,0x0000001c,0x00050080,0x00000006,
0x0000052a,0x00000528,0x00000529,0x00050084,0x00000006,0x0000052b,0x0000052a,0x0000002e,
0x00050087,0x00000006,0x0000052c,0x0000052b,0x00000021,0x00050080,0x00000006,0x0000052d,
0x00000527,0x0000052c,0x0004003d,0x00000006,0x0000052e,0x00000012,0x00050080,0x00000006,
0x0000052f,0x0000052d,0x0000052e,0x0004003d,0x00000048,0x00000530,0x00000051,0x00060041,
0x00000064,0x00000531,0x000004f4,0x00000055,0x0000052f,0x0003003e,0x00000531,0x00000530,
0x0004003d,0x00000006,0x00000532,0x0000002c,0x0004003d,0x00000006,0x00000533,0x0000001c,
0x00050080,0x00000006,0x00000535,0x00000533,0x00000534,0x00050084,0x00000006,0x00000536,
0x00000535,0x0000002e,0x00050087,0x00000006,0x00000537,0x00000536,0x00000021,0x00050080,
0x00000006,0x00000538,0x00000532,0x00000537,0x0004003d,0x00000006,0x00000539,0x00000012,
0x00050080,0x00000006,0x0000053a,0x00000538,0x00000539,0x0004003d,0x00000048,0x0000053b,
0x00000052,0x00060041,0x00000064,0x0000053c,0x000004f4,0x00000055,0x0000053a,0x0003003e,
0x0000053c,0x0000053b,0x0004003d,0x00000006,0x0000053d,0x0000002c,0x0004003d,0x00000006,
0x0000053e,0x0000001c,0x00050080,0x00000006,0x00000540,0x0000053e,0x0000053f,0x00050084,
0x00000006,0x00000541,0x00000540,0x0000002e,0x00050087,0x00000006,0x00000542,0x00000541,
0x00000021,0x00050080,0x00000006,0x00000543,0x0000053d,0x00000542,0x0004003d,0x00000006,
0x00000544,0x00000012,0x00050080,0x00000006,0x00000545,0x00000543,0x00000544,0x0004003d,
0x00000048,0x00000546,0x00000053,0x00060041,0x00000064,0x00000547,0x000004f4,0x00000055,
0x00000545,0x0003003e,0x00000547,0x00000546,0x000200f9,0x0000003d,0x000200f8,0x0000003d,
0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -0,0 +1,175 @@
#version 450
#define KSTRIP_LEN 32
#define BLOCK_SIZE 64 // the output channel shoule be aligned to 64.
#define WARP 32
#define INNER_THREAD 16 // inner thread
#define ALL_THREAD 256
#define A_INSTRIP 8
#define A_STRIP 8 // (BLOCK_SIZE/A_INSTRIP)
#define B_INSTRIP 4 // (ALL_THREAD/BLOCK_SIZE)
#define B_STRIP 8 // (KSTRIP_LEN/B_INSTRIP)
#define PER_THREAD (BLOCK_SIZE/INNER_THREAD)
layout(binding = 0) readonly buffer Input0{
float image_data[];
};
layout(binding = 1) readonly buffer Input1 {
float bias_data[];
};
layout(binding = 2) readonly buffer Input2{
float weight_data[];
};
layout(binding = 3) writeonly buffer Output{
float output_data[];
};
layout(binding = 4) uniform pushBlock {
int Hi; // H in
int Wi; // W in
int H0; // H out
int W0; // W out
int stride_h;
int stride_w;
int pad_h;
int pad_w;
int Hk;
int Wk;
int dilation_h;
int dilation_w;
int Kg;
int Cg;
int group;
int CgHkWk_aligned;
int activationType; // 0 : no activation, 1: ReLU, 2: ReLU6.
int batchi; // batch index
int groupi; // group index
} p;
shared float wshare[KSTRIP_LEN][BLOCK_SIZE]; // 2 KB
shared float inshare[BLOCK_SIZE][KSTRIP_LEN]; // 2 KB
layout(local_size_x = ALL_THREAD, local_size_y = 1, local_size_z = 1) in;
void main()
{
int M = p.Kg; // output channel
int K = p.CgHkWk_aligned; // Hk * Wk * G // aligned to KSTRIP_LEN
int N = p.H0 * p.W0; // H0 * W0
int mIndex = int(gl_WorkGroupID.x) * BLOCK_SIZE;
int nIndex = int(gl_WorkGroupID.y) * BLOCK_SIZE;
int local_x = int(gl_LocalInvocationID.x) % 16; // 0~7
int local_y = int(gl_LocalInvocationID.x) / 16; // 0~31
int w_local_x = int(gl_LocalInvocationID.x) % KSTRIP_LEN; // 256 / 32 = 8
int w_local_y = int(gl_LocalInvocationID.x) / KSTRIP_LEN;
int in_local_x = int(gl_LocalInvocationID.x) % BLOCK_SIZE; // 256 / 64 = 4
int in_local_y = int(gl_LocalInvocationID.x) / BLOCK_SIZE;
int woffset = p.groupi * p.Kg * K + K * mIndex + w_local_y * K + w_local_x;
int inoffset = (p.batchi * p.group + p.groupi) * p.Hi * p.Wi * p.Cg + in_local_y * p.Hi * p.Wi + nIndex + in_local_x;
int outoffset = (p.batchi * p.group + p.groupi) * p.H0 * p.W0 * p.Kg;
int biasoffset = p.groupi * p.Kg + mIndex + local_x * PER_THREAD;
vec4 sum[PER_THREAD];
{
for (int i = 0; i < PER_THREAD; i++)
{
sum[i] = vec4(bias_data[biasoffset + i]);
}
}
float regA[PER_THREAD];
float regB[PER_THREAD];
int KStrip = K / KSTRIP_LEN;
int KRemain = K - KStrip * KSTRIP_LEN; // NOTE: this value shoule be always 0.
for (int i = 0; i < KStrip; i++)
{
int k = i * KSTRIP_LEN;
// load Weight to local memory.
for (int s = 0; s < A_STRIP; s++)
{
wshare[w_local_x][s * A_INSTRIP + w_local_y] = weight_data[woffset + s * A_INSTRIP * K + k];
}
// load Input to local memory
for (int s = 0; s < B_STRIP; s++)
{
int cg = s * B_INSTRIP + in_local_y;
int hw = nIndex + in_local_x;
if (cg < p.Cg && hw < N)
inshare[in_local_x][s * B_INSTRIP + in_local_y] = image_data[inoffset + s * B_INSTRIP * N + k * N];
else
inshare[in_local_x][s * B_INSTRIP + in_local_y] = 0.f;
}
barrier();
for (int j = 0; j < KSTRIP_LEN; j++)
{
// Load shared memory to register.
for (int m = 0; m < 4; m++)
{
regA[m] = wshare[j][local_x*4 + m];
}
for (int m = 0; m < 4; m++)
{
regB[m] = inshare[local_y + 16 * m][j];
}
for (int m = 0; m < 4; m++)
{
for (int n = 0; n < 4; n++)
{
sum[m][n] += regA[m] * regB[n];
}
}
}
barrier();
}
if (p.activationType == 1) // ReLU
{
sum[0] = max(sum[0], (0));
sum[1] = max(sum[1], (0));
sum[2] = max(sum[2], (0));
sum[3] = max(sum[3], (0));
}
else if (p.activationType == 2) // ReLU6
{
sum[0] = clamp(sum[0], vec4(0), vec4(6));
sum[1] = clamp(sum[1], vec4(0), vec4(6));
sum[2] = clamp(sum[2], vec4(0), vec4(6));
sum[3] = clamp(sum[3], vec4(0), vec4(6));
}
for (int n = 0; n < PER_THREAD; n++)
{
int nIndex2 = nIndex + n * INNER_THREAD + local_y;
if (nIndex2 < N)
{
for (int m = 0; m < PER_THREAD; m++)
{
int mIndex2 = mIndex + local_x * PER_THREAD + m;
if (mIndex2 < M)
{
output_data[outoffset + mIndex2 * N + nIndex2] = sum[m][n];
}
}
}
}
}

View File

@ -0,0 +1,404 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int conv_1x1_fast_spv[3134] = {
0x07230203,0x00010000,0x0008000b,0x00000205,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000020,0x0000002f,0x00060010,
0x00000004,0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x0000004d,0x00050005,
0x00000009,0x68737570,0x636f6c42,0x0000006b,0x00040006,0x00000009,0x00000000,0x00006948,
0x00040006,0x00000009,0x00000001,0x00006957,0x00040006,0x00000009,0x00000002,0x00003048,
0x00040006,0x00000009,0x00000003,0x00003057,0x00060006,0x00000009,0x00000004,0x69727473,
0x685f6564,0x00000000,0x00060006,0x00000009,0x00000005,0x69727473,0x775f6564,0x00000000,
0x00050006,0x00000009,0x00000006,0x5f646170,0x00000068,0x00050006,0x00000009,0x00000007,
0x5f646170,0x00000077,0x00040006,0x00000009,0x00000008,0x00006b48,0x00040006,0x00000009,
0x00000009,0x00006b57,0x00060006,0x00000009,0x0000000a,0x616c6964,0x6e6f6974,0x0000685f,
0x00060006,0x00000009,0x0000000b,0x616c6964,0x6e6f6974,0x0000775f,0x00040006,0x00000009,
0x0000000c,0x0000674b,0x00040006,0x00000009,0x0000000d,0x00006743,0x00050006,0x00000009,
0x0000000e,0x756f7267,0x00000070,0x00070006,0x00000009,0x0000000f,0x6b486743,0x615f6b57,
0x6e67696c,0x00006465,0x00070006,0x00000009,0x00000010,0x69746361,0x69746176,0x79546e6f,
0x00006570,0x00050006,0x00000009,0x00000011,0x63746162,0x00006968,0x00050006,0x00000009,
0x00000012,0x756f7267,0x00006970,0x00030005,0x0000000b,0x00000070,0x00030005,0x00000010,
0x0000004b,0x00030005,0x00000014,0x0000004e,0x00040005,0x0000001c,0x646e496d,0x00007865,
0x00060005,0x00000020,0x575f6c67,0x476b726f,0x70756f72,0x00004449,0x00040005,0x00000028,
0x646e496e,0x00007865,0x00040005,0x0000002e,0x61636f6c,0x00785f6c,0x00080005,0x0000002f,
0x4c5f6c67,0x6c61636f,0x6f766e49,0x69746163,0x44496e6f,0x00000000,0x00040005,0x00000035,
0x61636f6c,0x00795f6c,0x00050005,0x0000003a,0x6f6c5f77,0x5f6c6163,0x00000078,0x00050005,
0x00000040,0x6f6c5f77,0x5f6c6163,0x00000079,0x00050005,0x00000045,0x6c5f6e69,0x6c61636f,
0x0000785f,0x00050005,0x0000004a,0x6c5f6e69,0x6c61636f,0x0000795f,0x00040005,0x0000004f,
0x66666f77,0x00746573,0x00050005,0x00000062,0x666f6e69,0x74657366,0x00000000,0x00050005,
0x00000085,0x6f74756f,0x65736666,0x00000074,0x00050005,0x00000097,0x73616962,0x7366666f,
0x00007465,0x00030005,0x000000a3,0x00000069,0x00030005,0x000000b1,0x006d7573,0x00040005,
0x000000b4,0x75706e49,0x00003174,0x00060006,0x000000b4,0x00000000,0x73616962,0x7461645f,
0x00000061,0x00030005,0x000000b6,0x00000000,0x00040005,0x000000c2,0x7274534b,0x00007069,
0x00040005,0x000000c5,0x6d65524b,0x006e6961,0x00030005,0x000000ca,0x00000069,0x00030005,
0x000000d3,0x0000006b,0x00030005,0x000000d6,0x00000073,0x00040005,0x000000e4,0x61687377,
0x00006572,0x00040005,0x000000eb,0x75706e49,0x00003274,0x00060006,0x000000eb,0x00000000,
0x67696577,0x645f7468,0x00617461,0x00030005,0x000000ed,0x00000000,0x00030005,0x000000fc,
0x00000073,0x00030005,0x00000104,0x00006763,0x00030005,0x00000109,0x00007768,0x00040005,
0x0000011a,0x68736e69,0x00657261,0x00040005,0x00000121,0x75706e49,0x00003074,0x00060006,
0x00000121,0x00000000,0x67616d69,0x61645f65,0x00006174,0x00030005,0x00000123,0x00000000,
0x00030005,0x0000013d,0x0000006a,0x00030005,0x00000145,0x0000006d,0x00040005,0x0000014f,
0x41676572,0x00000000,0x00030005,0x0000015c,0x0000006d,0x00040005,0x00000164,0x42676572,
0x00000000,0x00030005,0x00000170,0x0000006d,0x00030005,0x00000178,0x0000006e,0x00030005,
0x000001c7,0x0000006e,0x00040005,0x000001cf,0x646e496e,0x00327865,0x00030005,0x000001db,
0x0000006d,0x00040005,0x000001e3,0x646e496d,0x00327865,0x00040005,0x000001f0,0x7074754f,
0x00007475,0x00060006,0x000001f0,0x00000000,0x7074756f,0x645f7475,0x00617461,0x00030005,
0x000001f2,0x00000000,0x00050048,0x00000009,0x00000000,0x00000023,0x00000000,0x00050048,
0x00000009,0x00000001,0x00000023,0x00000004,0x00050048,0x00000009,0x00000002,0x00000023,
0x00000008,0x00050048,0x00000009,0x00000003,0x00000023,0x0000000c,0x00050048,0x00000009,
0x00000004,0x00000023,0x00000010,0x00050048,0x00000009,0x00000005,0x00000023,0x00000014,
0x00050048,0x00000009,0x00000006,0x00000023,0x00000018,0x00050048,0x00000009,0x00000007,
0x00000023,0x0000001c,0x00050048,0x00000009,0x00000008,0x00000023,0x00000020,0x00050048,
0x00000009,0x00000009,0x00000023,0x00000024,0x00050048,0x00000009,0x0000000a,0x00000023,
0x00000028,0x00050048,0x00000009,0x0000000b,0x00000023,0x0000002c,0x00050048,0x00000009,
0x0000000c,0x00000023,0x00000030,0x00050048,0x00000009,0x0000000d,0x00000023,0x00000034,
0x00050048,0x00000009,0x0000000e,0x00000023,0x00000038,0x00050048,0x00000009,0x0000000f,
0x00000023,0x0000003c,0x00050048,0x00000009,0x00000010,0x00000023,0x00000040,0x00050048,
0x00000009,0x00000011,0x00000023,0x00000044,0x00050048,0x00000009,0x00000012,0x00000023,
0x00000048,0x00030047,0x00000009,0x00000002,0x00040047,0x0000000b,0x00000022,0x00000000,
0x00040047,0x0000000b,0x00000021,0x00000004,0x00040047,0x00000020,0x0000000b,0x0000001a,
0x00040047,0x0000002f,0x0000000b,0x0000001b,0x00040047,0x000000b3,0x00000006,0x00000004,
0x00040048,0x000000b4,0x00000000,0x00000018,0x00050048,0x000000b4,0x00000000,0x00000023,
0x00000000,0x00030047,0x000000b4,0x00000003,0x00040047,0x000000b6,0x00000022,0x00000000,
0x00040047,0x000000b6,0x00000021,0x00000001,0x00040047,0x000000ea,0x00000006,0x00000004,
0x00040048,0x000000eb,0x00000000,0x00000018,0x00050048,0x000000eb,0x00000000,0x00000023,
0x00000000,0x00030047,0x000000eb,0x00000003,0x00040047,0x000000ed,0x00000022,0x00000000,
0x00040047,0x000000ed,0x00000021,0x00000002,0x00040047,0x00000120,0x00000006,0x00000004,
0x00040048,0x00000121,0x00000000,0x00000018,0x00050048,0x00000121,0x00000000,0x00000023,
0x00000000,0x00030047,0x00000121,0x00000003,0x00040047,0x00000123,0x00000022,0x00000000,
0x00040047,0x00000123,0x00000021,0x00000000,0x00040047,0x000001ef,0x00000006,0x00000004,
0x00040048,0x000001f0,0x00000000,0x00000019,0x00050048,0x000001f0,0x00000000,0x00000023,
0x00000000,0x00030047,0x000001f0,0x00000003,0x00040047,0x000001f2,0x00000022,0x00000000,
0x00040047,0x000001f2,0x00000021,0x00000003,0x00040047,0x00000204,0x0000000b,0x00000019,
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,
0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,0x0015001e,0x00000009,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00040020,0x0000000a,0x00000002,0x00000009,0x0004003b,0x0000000a,
0x0000000b,0x00000002,0x0004002b,0x00000006,0x0000000c,0x0000000c,0x00040020,0x0000000d,
0x00000002,0x00000006,0x0004002b,0x00000006,0x00000011,0x0000000f,0x0004002b,0x00000006,
0x00000015,0x00000002,0x0004002b,0x00000006,0x00000018,0x00000003,0x00040015,0x0000001d,
0x00000020,0x00000000,0x00040017,0x0000001e,0x0000001d,0x00000003,0x00040020,0x0000001f,
0x00000001,0x0000001e,0x0004003b,0x0000001f,0x00000020,0x00000001,0x0004002b,0x0000001d,
0x00000021,0x00000000,0x00040020,0x00000022,0x00000001,0x0000001d,0x0004002b,0x00000006,
0x00000026,0x00000040,0x0004002b,0x0000001d,0x00000029,0x00000001,0x0004003b,0x0000001f,
0x0000002f,0x00000001,0x0004002b,0x00000006,0x00000033,0x00000010,0x0004002b,0x00000006,
0x0000003e,0x00000020,0x0004002b,0x00000006,0x00000050,0x00000012,0x0004002b,0x00000006,
0x00000063,0x00000011,0x0004002b,0x00000006,0x00000066,0x0000000e,0x0004002b,0x00000006,
0x0000006d,0x00000000,0x0004002b,0x00000006,0x00000071,0x00000001,0x0004002b,0x00000006,
0x00000075,0x0000000d,0x0004002b,0x00000006,0x000000a0,0x00000004,0x00020014,0x000000aa,
0x00030016,0x000000ac,0x00000020,0x00040017,0x000000ad,0x000000ac,0x00000004,0x0004002b,
0x0000001d,0x000000ae,0x00000004,0x0004001c,0x000000af,0x000000ad,0x000000ae,0x00040020,
0x000000b0,0x00000007,0x000000af,0x0003001d,0x000000b3,0x000000ac,0x0003001e,0x000000b4,
0x000000b3,0x00040020,0x000000b5,0x00000002,0x000000b4,0x0004003b,0x000000b5,0x000000b6,
0x00000002,0x00040020,0x000000ba,0x00000002,0x000000ac,0x00040020,0x000000be,0x00000007,
0x000000ad,0x0004002b,0x00000006,0x000000dd,0x00000008,0x0004002b,0x0000001d,0x000000df,
0x00000040,0x0004001c,0x000000e0,0x000000ac,0x000000df,0x0004002b,0x0000001d,0x000000e1,
0x00000020,0x0004001c,0x000000e2,0x000000e0,0x000000e1,0x00040020,0x000000e3,0x00000004,
0x000000e2,0x0004003b,0x000000e3,0x000000e4,0x00000004,0x0003001d,0x000000ea,0x000000ac,
0x0003001e,0x000000eb,0x000000ea,0x00040020,0x000000ec,0x00000002,0x000000eb,0x0004003b,
0x000000ec,0x000000ed,0x00000002,0x00040020,0x000000f8,0x00000004,0x000000ac,0x0004001c,
0x00000117,0x000000ac,0x000000e1,0x0004001c,0x00000118,0x00000117,0x000000df,0x00040020,
0x00000119,0x00000004,0x00000118,0x0004003b,0x00000119,0x0000011a,0x00000004,0x0003001d,
0x00000120,0x000000ac,0x0003001e,0x00000121,0x00000120,0x00040020,0x00000122,0x00000002,
0x00000121,0x0004003b,0x00000122,0x00000123,0x00000002,0x0004002b,0x000000ac,0x00000137,
0x00000000,0x0004002b,0x0000001d,0x0000013b,0x00000002,0x0004002b,0x0000001d,0x0000013c,
0x00000108,0x0004001c,0x0000014d,0x000000ac,0x000000ae,0x00040020,0x0000014e,0x00000007,
0x0000014d,0x00040020,0x00000158,0x00000007,0x000000ac,0x0007002c,0x000000ad,0x000001b6,
0x00000137,0x00000137,0x00000137,0x00000137,0x0004002b,0x000000ac,0x000001b7,0x40c00000,
0x0007002c,0x000000ad,0x000001b8,0x000001b7,0x000001b7,0x000001b7,0x000001b7,0x0003001d,
0x000001ef,0x000000ac,0x0003001e,0x000001f0,0x000001ef,0x00040020,0x000001f1,0x00000002,
0x000001f0,0x0004003b,0x000001f1,0x000001f2,0x00000002,0x0004002b,0x0000001d,0x00000203,
0x00000100,0x0006002c,0x0000001e,0x00000204,0x00000203,0x00000029,0x00000029,0x00050036,
0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,
0x00000008,0x00000007,0x0004003b,0x00000007,0x00000010,0x00000007,0x0004003b,0x00000007,
0x00000014,0x00000007,0x0004003b,0x00000007,0x0000001c,0x00000007,0x0004003b,0x00000007,
0x00000028,0x00000007,0x0004003b,0x00000007,0x0000002e,0x00000007,0x0004003b,0x00000007,
0x00000035,0x00000007,0x0004003b,0x00000007,0x0000003a,0x00000007,0x0004003b,0x00000007,
0x00000040,0x00000007,0x0004003b,0x00000007,0x00000045,0x00000007,0x0004003b,0x00000007,
0x0000004a,0x00000007,0x0004003b,0x00000007,0x0000004f,0x00000007,0x0004003b,0x00000007,
0x00000062,0x00000007,0x0004003b,0x00000007,0x00000085,0x00000007,0x0004003b,0x00000007,
0x00000097,0x00000007,0x0004003b,0x00000007,0x000000a3,0x00000007,0x0004003b,0x000000b0,
0x000000b1,0x00000007,0x0004003b,0x00000007,0x000000c2,0x00000007,0x0004003b,0x00000007,
0x000000c5,0x00000007,0x0004003b,0x00000007,0x000000ca,0x00000007,0x0004003b,0x00000007,
0x000000d3,0x00000007,0x0004003b,0x00000007,0x000000d6,0x00000007,0x0004003b,0x00000007,
0x000000fc,0x00000007,0x0004003b,0x00000007,0x00000104,0x00000007,0x0004003b,0x00000007,
0x00000109,0x00000007,0x0004003b,0x00000007,0x0000013d,0x00000007,0x0004003b,0x00000007,
0x00000145,0x00000007,0x0004003b,0x0000014e,0x0000014f,0x00000007,0x0004003b,0x00000007,
0x0000015c,0x00000007,0x0004003b,0x0000014e,0x00000164,0x00000007,0x0004003b,0x00000007,
0x00000170,0x00000007,0x0004003b,0x00000007,0x00000178,0x00000007,0x0004003b,0x00000007,
0x000001c7,0x00000007,0x0004003b,0x00000007,0x000001cf,0x00000007,0x0004003b,0x00000007,
0x000001db,0x00000007,0x0004003b,0x00000007,0x000001e3,0x00000007,0x00050041,0x0000000d,
0x0000000e,0x0000000b,0x0000000c,0x0004003d,0x00000006,0x0000000f,0x0000000e,0x0003003e,
0x00000008,0x0000000f,0x00050041,0x0000000d,0x00000012,0x0000000b,0x00000011,0x0004003d,
0x00000006,0x00000013,0x00000012,0x0003003e,0x00000010,0x00000013,0x00050041,0x0000000d,
0x00000016,0x0000000b,0x00000015,0x0004003d,0x00000006,0x00000017,0x00000016,0x00050041,
0x0000000d,0x00000019,0x0000000b,0x00000018,0x0004003d,0x00000006,0x0000001a,0x00000019,
0x00050084,0x00000006,0x0000001b,0x00000017,0x0000001a,0x0003003e,0x00000014,0x0000001b,
0x00050041,0x00000022,0x00000023,0x00000020,0x00000021,0x0004003d,0x0000001d,0x00000024,
0x00000023,0x0004007c,0x00000006,0x00000025,0x00000024,0x00050084,0x00000006,0x00000027,
0x00000025,0x00000026,0x0003003e,0x0000001c,0x00000027,0x00050041,0x00000022,0x0000002a,
0x00000020,0x00000029,0x0004003d,0x0000001d,0x0000002b,0x0000002a,0x0004007c,0x00000006,
0x0000002c,0x0000002b,0x00050084,0x00000006,0x0000002d,0x0000002c,0x00000026,0x0003003e,
0x00000028,0x0000002d,0x00050041,0x00000022,0x00000030,0x0000002f,0x00000021,0x0004003d,
0x0000001d,0x00000031,0x00000030,0x0004007c,0x00000006,0x00000032,0x00000031,0x0005008b,
0x00000006,0x00000034,0x00000032,0x00000033,0x0003003e,0x0000002e,0x00000034,0x00050041,
0x00000022,0x00000036,0x0000002f,0x00000021,0x0004003d,0x0000001d,0x00000037,0x00000036,
0x0004007c,0x00000006,0x00000038,0x00000037,0x00050087,0x00000006,0x00000039,0x00000038,
0x00000033,0x0003003e,0x00000035,0x00000039,0x00050041,0x00000022,0x0000003b,0x0000002f,
0x00000021,0x0004003d,0x0000001d,0x0000003c,0x0000003b,0x0004007c,0x00000006,0x0000003d,
0x0000003c,0x0005008b,0x00000006,0x0000003f,0x0000003d,0x0000003e,0x0003003e,0x0000003a,
0x0000003f,0x00050041,0x00000022,0x00000041,0x0000002f,0x00000021,0x0004003d,0x0000001d,
0x00000042,0x00000041,0x0004007c,0x00000006,0x00000043,0x00000042,0x00050087,0x00000006,
0x00000044,0x00000043,0x0000003e,0x0003003e,0x00000040,0x00000044,0x00050041,0x00000022,
0x00000046,0x0000002f,0x00000021,0x0004003d,0x0000001d,0x00000047,0x00000046,0x0004007c,
0x00000006,0x00000048,0x00000047,0x0005008b,0x00000006,0x00000049,0x00000048,0x00000026,
0x0003003e,0x00000045,0x00000049,0x00050041,0x00000022,0x0000004b,0x0000002f,0x00000021,
0x0004003d,0x0000001d,0x0000004c,0x0000004b,0x0004007c,0x00000006,0x0000004d,0x0000004c,
0x00050087,0x00000006,0x0000004e,0x0000004d,0x00000026,0x0003003e,0x0000004a,0x0000004e,
0x00050041,0x0000000d,0x00000051,0x0000000b,0x00000050,0x0004003d,0x00000006,0x00000052,
0x00000051,0x00050041,0x0000000d,0x00000053,0x0000000b,0x0000000c,0x0004003d,0x00000006,
0x00000054,0x00000053,0x00050084,0x00000006,0x00000055,0x00000052,0x00000054,0x0004003d,
0x00000006,0x00000056,0x00000010,0x00050084,0x00000006,0x00000057,0x00000055,0x00000056,
0x0004003d,0x00000006,0x00000058,0x00000010,0x0004003d,0x00000006,0x00000059,0x0000001c,
0x00050084,0x00000006,0x0000005a,0x00000058,0x00000059,0x00050080,0x00000006,0x0000005b,
0x00000057,0x0000005a,0x0004003d,0x00000006,0x0000005c,0x00000040,0x0004003d,0x00000006,
0x0000005d,0x00000010,0x00050084,0x00000006,0x0000005e,0x0000005c,0x0000005d,0x00050080,
0x00000006,0x0000005f,0x0000005b,0x0000005e,0x0004003d,0x00000006,0x00000060,0x0000003a,
0x00050080,0x00000006,0x00000061,0x0000005f,0x00000060,0x0003003e,0x0000004f,0x00000061,
0x00050041,0x0000000d,0x00000064,0x0000000b,0x00000063,0x0004003d,0x00000006,0x00000065,
0x00000064,0x00050041,0x0000000d,0x00000067,0x0000000b,0x00000066,0x0004003d,0x00000006,
0x00000068,0x00000067,0x00050084,0x00000006,0x00000069,0x00000065,0x00000068,0x00050041,
0x0000000d,0x0000006a,0x0000000b,0x00000050,0x0004003d,0x00000006,0x0000006b,0x0000006a,
0x00050080,0x00000006,0x0000006c,0x00000069,0x0000006b,0x00050041,0x0000000d,0x0000006e,
0x0000000b,0x0000006d,0x0004003d,0x00000006,0x0000006f,0x0000006e,0x00050084,0x00000006,
0x00000070,0x0000006c,0x0000006f,0x00050041,0x0000000d,0x00000072,0x0000000b,0x00000071,
0x0004003d,0x00000006,0x00000073,0x00000072,0x00050084,0x00000006,0x00000074,0x00000070,
0x00000073,0x00050041,0x0000000d,0x00000076,0x0000000b,0x00000075,0x0004003d,0x00000006,
0x00000077,0x00000076,0x00050084,0x00000006,0x00000078,0x00000074,0x00000077,0x0004003d,
0x00000006,0x00000079,0x0000004a,0x00050041,0x0000000d,0x0000007a,0x0000000b,0x0000006d,
0x0004003d,0x00000006,0x0000007b,0x0000007a,0x00050084,0x00000006,0x0000007c,0x00000079,
0x0000007b,0x00050041,0x0000000d,0x0000007d,0x0000000b,0x00000071,0x0004003d,0x00000006,
0x0000007e,0x0000007d,0x00050084,0x00000006,0x0000007f,0x0000007c,0x0000007e,0x00050080,
0x00000006,0x00000080,0x00000078,0x0000007f,0x0004003d,0x00000006,0x00000081,0x00000028,
0x00050080,0x00000006,0x00000082,0x00000080,0x00000081,0x0004003d,0x00000006,0x00000083,
0x00000045,0x00050080,0x00000006,0x00000084,0x00000082,0x00000083,0x0003003e,0x00000062,
0x00000084,0x00050041,0x0000000d,0x00000086,0x0000000b,0x00000063,0x0004003d,0x00000006,
0x00000087,0x00000086,0x00050041,0x0000000d,0x00000088,0x0000000b,0x00000066,0x0004003d,
0x00000006,0x00000089,0x00000088,0x00050084,0x00000006,0x0000008a,0x00000087,0x00000089,
0x00050041,0x0000000d,0x0000008b,0x0000000b,0x00000050,0x0004003d,0x00000006,0x0000008c,
0x0000008b,0x00050080,0x00000006,0x0000008d,0x0000008a,0x0000008c,0x00050041,0x0000000d,
0x0000008e,0x0000000b,0x00000015,0x0004003d,0x00000006,0x0000008f,0x0000008e,0x00050084,
0x00000006,0x00000090,0x0000008d,0x0000008f,0x00050041,0x0000000d,0x00000091,0x0000000b,
0x00000018,0x0004003d,0x00000006,0x00000092,0x00000091,0x00050084,0x00000006,0x00000093,
0x00000090,0x00000092,0x00050041,0x0000000d,0x00000094,0x0000000b,0x0000000c,0x0004003d,
0x00000006,0x00000095,0x00000094,0x00050084,0x00000006,0x00000096,0x00000093,0x00000095,
0x0003003e,0x00000085,0x00000096,0x00050041,0x0000000d,0x00000098,0x0000000b,0x00000050,
0x0004003d,0x00000006,0x00000099,0x00000098,0x00050041,0x0000000d,0x0000009a,0x0000000b,
0x0000000c,0x0004003d,0x00000006,0x0000009b,0x0000009a,0x00050084,0x00000006,0x0000009c,
0x00000099,0x0000009b,0x0004003d,0x00000006,0x0000009d,0x0000001c,0x00050080,0x00000006,
0x0000009e,0x0000009c,0x0000009d,0x0004003d,0x00000006,0x0000009f,0x0000002e,0x00050084,
0x00000006,0x000000a1,0x0000009f,0x000000a0,0x00050080,0x00000006,0x000000a2,0x0000009e,
0x000000a1,0x0003003e,0x00000097,0x000000a2,0x0003003e,0x000000a3,0x0000006d,0x000200f9,
0x000000a4,0x000200f8,0x000000a4,0x000400f6,0x000000a6,0x000000a7,0x00000000,0x000200f9,
0x000000a8,0x000200f8,0x000000a8,0x0004003d,0x00000006,0x000000a9,0x000000a3,0x000500b1,
0x000000aa,0x000000ab,0x000000a9,0x000000a0,0x000400fa,0x000000ab,0x000000a5,0x000000a6,
0x000200f8,0x000000a5,0x0004003d,0x00000006,0x000000b2,0x000000a3,0x0004003d,0x00000006,
0x000000b7,0x00000097,0x0004003d,0x00000006,0x000000b8,0x000000a3,0x00050080,0x00000006,
0x000000b9,0x000000b7,0x000000b8,0x00060041,0x000000ba,0x000000bb,0x000000b6,0x0000006d,
0x000000b9,0x0004003d,0x000000ac,0x000000bc,0x000000bb,0x00070050,0x000000ad,0x000000bd,
0x000000bc,0x000000bc,0x000000bc,0x000000bc,0x00050041,0x000000be,0x000000bf,0x000000b1,
0x000000b2,0x0003003e,0x000000bf,0x000000bd,0x000200f9,0x000000a7,0x000200f8,0x000000a7,
0x0004003d,0x00000006,0x000000c0,0x000000a3,0x00050080,0x00000006,0x000000c1,0x000000c0,
0x00000071,0x0003003e,0x000000a3,0x000000c1,0x000200f9,0x000000a4,0x000200f8,0x000000a6,
0x0004003d,0x00000006,0x000000c3,0x00000010,0x00050087,0x00000006,0x000000c4,0x000000c3,
0x0000003e,0x0003003e,0x000000c2,0x000000c4,0x0004003d,0x00000006,0x000000c6,0x00000010,
0x0004003d,0x00000006,0x000000c7,0x000000c2,0x00050084,0x00000006,0x000000c8,0x000000c7,
0x0000003e,0x00050082,0x00000006,0x000000c9,0x000000c6,0x000000c8,0x0003003e,0x000000c5,
0x000000c9,0x0003003e,0x000000ca,0x0000006d,0x000200f9,0x000000cb,0x000200f8,0x000000cb,
0x000400f6,0x000000cd,0x000000ce,0x00000000,0x000200f9,0x000000cf,0x000200f8,0x000000cf,
0x0004003d,0x00000006,0x000000d0,0x000000ca,0x0004003d,0x00000006,0x000000d1,0x000000c2,
0x000500b1,0x000000aa,0x000000d2,0x000000d0,0x000000d1,0x000400fa,0x000000d2,0x000000cc,
0x000000cd,0x000200f8,0x000000cc,0x0004003d,0x00000006,0x000000d4,0x000000ca,0x00050084,
0x00000006,0x000000d5,0x000000d4,0x0000003e,0x0003003e,0x000000d3,0x000000d5,0x0003003e,
0x000000d6,0x0000006d,0x000200f9,0x000000d7,0x000200f8,0x000000d7,0x000400f6,0x000000d9,
0x000000da,0x00000000,0x000200f9,0x000000db,0x000200f8,0x000000db,0x0004003d,0x00000006,
0x000000dc,0x000000d6,0x000500b1,0x000000aa,0x000000de,0x000000dc,0x000000dd,0x000400fa,
0x000000de,0x000000d8,0x000000d9,0x000200f8,0x000000d8,0x0004003d,0x00000006,0x000000e5,
0x0000003a,0x0004003d,0x00000006,0x000000e6,0x000000d6,0x00050084,0x00000006,0x000000e7,
0x000000e6,0x000000dd,0x0004003d,0x00000006,0x000000e8,0x00000040,0x00050080,0x00000006,
0x000000e9,0x000000e7,0x000000e8,0x0004003d,0x00000006,0x000000ee,0x0000004f,0x0004003d,
0x00000006,0x000000ef,0x000000d6,0x00050084,0x00000006,0x000000f0,0x000000ef,0x000000dd,
0x0004003d,0x00000006,0x000000f1,0x00000010,0x00050084,0x00000006,0x000000f2,0x000000f0,
0x000000f1,0x00050080,0x00000006,0x000000f3,0x000000ee,0x000000f2,0x0004003d,0x00000006,
0x000000f4,0x000000d3,0x00050080,0x00000006,0x000000f5,0x000000f3,0x000000f4,0x00060041,
0x000000ba,0x000000f6,0x000000ed,0x0000006d,0x000000f5,0x0004003d,0x000000ac,0x000000f7,
0x000000f6,0x00060041,0x000000f8,0x000000f9,0x000000e4,0x000000e5,0x000000e9,0x0003003e,
0x000000f9,0x000000f7,0x000200f9,0x000000da,0x000200f8,0x000000da,0x0004003d,0x00000006,
0x000000fa,0x000000d6,0x00050080,0x00000006,0x000000fb,0x000000fa,0x00000071,0x0003003e,
0x000000d6,0x000000fb,0x000200f9,0x000000d7,0x000200f8,0x000000d9,0x0003003e,0x000000fc,
0x0000006d,0x000200f9,0x000000fd,0x000200f8,0x000000fd,0x000400f6,0x000000ff,0x00000100,
0x00000000,0x000200f9,0x00000101,0x000200f8,0x00000101,0x0004003d,0x00000006,0x00000102,
0x000000fc,0x000500b1,0x000000aa,0x00000103,0x00000102,0x000000dd,0x000400fa,0x00000103,
0x000000fe,0x000000ff,0x000200f8,0x000000fe,0x0004003d,0x00000006,0x00000105,0x000000fc,
0x00050084,0x00000006,0x00000106,0x00000105,0x000000a0,0x0004003d,0x00000006,0x00000107,
0x0000004a,0x00050080,0x00000006,0x00000108,0x00000106,0x00000107,0x0003003e,0x00000104,
0x00000108,0x0004003d,0x00000006,0x0000010a,0x00000028,0x0004003d,0x00000006,0x0000010b,
0x00000045,0x00050080,0x00000006,0x0000010c,0x0000010a,0x0000010b,0x0003003e,0x00000109,
0x0000010c,0x0004003d,0x00000006,0x0000010d,0x00000104,0x00050041,0x0000000d,0x0000010e,
0x0000000b,0x00000075,0x0004003d,0x00000006,0x0000010f,0x0000010e,0x000500b1,0x000000aa,
0x00000110,0x0000010d,0x0000010f,0x0004003d,0x00000006,0x00000111,0x00000109,0x0004003d,
0x00000006,0x00000112,0x00000014,0x000500b1,0x000000aa,0x00000113,0x00000111,0x00000112,
0x000500a7,0x000000aa,0x00000114,0x00000110,0x00000113,0x000300f7,0x00000116,0x00000000,
0x000400fa,0x00000114,0x00000115,0x00000131,0x000200f8,0x00000115,0x0004003d,0x00000006,
0x0000011b,0x00000045,0x0004003d,0x00000006,0x0000011c,0x000000fc,0x00050084,0x00000006,
0x0000011d,0x0000011c,0x000000a0,0x0004003d,0x00000006,0x0000011e,0x0000004a,0x00050080,
0x00000006,0x0000011f,0x0000011d,0x0000011e,0x0004003d,0x00000006,0x00000124,0x00000062,
0x0004003d,0x00000006,0x00000125,0x000000fc,0x00050084,0x00000006,0x00000126,0x00000125,
0x000000a0,0x0004003d,0x00000006,0x00000127,0x00000014,0x00050084,0x00000006,0x00000128,
0x00000126,0x00000127,0x00050080,0x00000006,0x00000129,0x00000124,0x00000128,0x0004003d,
0x00000006,0x0000012a,0x000000d3,0x0004003d,0x00000006,0x0000012b,0x00000014,0x00050084,
0x00000006,0x0000012c,0x0000012a,0x0000012b,0x00050080,0x00000006,0x0000012d,0x00000129,
0x0000012c,0x00060041,0x000000ba,0x0000012e,0x00000123,0x0000006d,0x0000012d,0x0004003d,
0x000000ac,0x0000012f,0x0000012e,0x00060041,0x000000f8,0x00000130,0x0000011a,0x0000011b,
0x0000011f,0x0003003e,0x00000130,0x0000012f,0x000200f9,0x00000116,0x000200f8,0x00000131,
0x0004003d,0x00000006,0x00000132,0x00000045,0x0004003d,0x00000006,0x00000133,0x000000fc,
0x00050084,0x00000006,0x00000134,0x00000133,0x000000a0,0x0004003d,0x00000006,0x00000135,
0x0000004a,0x00050080,0x00000006,0x00000136,0x00000134,0x00000135,0x00060041,0x000000f8,
0x00000138,0x0000011a,0x00000132,0x00000136,0x0003003e,0x00000138,0x00000137,0x000200f9,
0x00000116,0x000200f8,0x00000116,0x000200f9,0x00000100,0x000200f8,0x00000100,0x0004003d,
0x00000006,0x00000139,0x000000fc,0x00050080,0x00000006,0x0000013a,0x00000139,0x00000071,
0x0003003e,0x000000fc,0x0000013a,0x000200f9,0x000000fd,0x000200f8,0x000000ff,0x000400e0,
0x0000013b,0x0000013b,0x0000013c,0x0003003e,0x0000013d,0x0000006d,0x000200f9,0x0000013e,
0x000200f8,0x0000013e,0x000400f6,0x00000140,0x00000141,0x00000000,0x000200f9,0x00000142,
0x000200f8,0x00000142,0x0004003d,0x00000006,0x00000143,0x0000013d,0x000500b1,0x000000aa,
0x00000144,0x00000143,0x0000003e,0x000400fa,0x00000144,0x0000013f,0x00000140,0x000200f8,
0x0000013f,0x0003003e,0x00000145,0x0000006d,0x000200f9,0x00000146,0x000200f8,0x00000146,
0x000400f6,0x00000148,0x00000149,0x00000000,0x000200f9,0x0000014a,0x000200f8,0x0000014a,
0x0004003d,0x00000006,0x0000014b,0x00000145,0x000500b1,0x000000aa,0x0000014c,0x0000014b,
0x000000a0,0x000400fa,0x0000014c,0x00000147,0x00000148,0x000200f8,0x00000147,0x0004003d,
0x00000006,0x00000150,0x00000145,0x0004003d,0x00000006,0x00000151,0x0000013d,0x0004003d,
0x00000006,0x00000152,0x0000002e,0x00050084,0x00000006,0x00000153,0x00000152,0x000000a0,
0x0004003d,0x00000006,0x00000154,0x00000145,0x00050080,0x00000006,0x00000155,0x00000153,
0x00000154,0x00060041,0x000000f8,0x00000156,0x000000e4,0x00000151,0x00000155,0x0004003d,
0x000000ac,0x00000157,0x00000156,0x00050041,0x00000158,0x00000159,0x0000014f,0x00000150,
0x0003003e,0x00000159,0x00000157,0x000200f9,0x00000149,0x000200f8,0x00000149,0x0004003d,
0x00000006,0x0000015a,0x00000145,0x00050080,0x00000006,0x0000015b,0x0000015a,0x00000071,
0x0003003e,0x00000145,0x0000015b,0x000200f9,0x00000146,0x000200f8,0x00000148,0x0003003e,
0x0000015c,0x0000006d,0x000200f9,0x0000015d,0x000200f8,0x0000015d,0x000400f6,0x0000015f,
0x00000160,0x00000000,0x000200f9,0x00000161,0x000200f8,0x00000161,0x0004003d,0x00000006,
0x00000162,0x0000015c,0x000500b1,0x000000aa,0x00000163,0x00000162,0x000000a0,0x000400fa,
0x00000163,0x0000015e,0x0000015f,0x000200f8,0x0000015e,0x0004003d,0x00000006,0x00000165,
0x0000015c,0x0004003d,0x00000006,0x00000166,0x00000035,0x0004003d,0x00000006,0x00000167,
0x0000015c,0x00050084,0x00000006,0x00000168,0x00000033,0x00000167,0x00050080,0x00000006,
0x00000169,0x00000166,0x00000168,0x0004003d,0x00000006,0x0000016a,0x0000013d,0x00060041,
0x000000f8,0x0000016b,0x0000011a,0x00000169,0x0000016a,0x0004003d,0x000000ac,0x0000016c,
0x0000016b,0x00050041,0x00000158,0x0000016d,0x00000164,0x00000165,0x0003003e,0x0000016d,
0x0000016c,0x000200f9,0x00000160,0x000200f8,0x00000160,0x0004003d,0x00000006,0x0000016e,
0x0000015c,0x00050080,0x00000006,0x0000016f,0x0000016e,0x00000071,0x0003003e,0x0000015c,
0x0000016f,0x000200f9,0x0000015d,0x000200f8,0x0000015f,0x0003003e,0x00000170,0x0000006d,
0x000200f9,0x00000171,0x000200f8,0x00000171,0x000400f6,0x00000173,0x00000174,0x00000000,
0x000200f9,0x00000175,0x000200f8,0x00000175,0x0004003d,0x00000006,0x00000176,0x00000170,
0x000500b1,0x000000aa,0x00000177,0x00000176,0x000000a0,0x000400fa,0x00000177,0x00000172,
0x00000173,0x000200f8,0x00000172,0x0003003e,0x00000178,0x0000006d,0x000200f9,0x00000179,
0x000200f8,0x00000179,0x000400f6,0x0000017b,0x0000017c,0x00000000,0x000200f9,0x0000017d,
0x000200f8,0x0000017d,0x0004003d,0x00000006,0x0000017e,0x00000178,0x000500b1,0x000000aa,
0x0000017f,0x0000017e,0x000000a0,0x000400fa,0x0000017f,0x0000017a,0x0000017b,0x000200f8,
0x0000017a,0x0004003d,0x00000006,0x00000180,0x00000170,0x0004003d,0x00000006,0x00000181,
0x00000178,0x0004003d,0x00000006,0x00000182,0x00000170,0x00050041,0x00000158,0x00000183,
0x0000014f,0x00000182,0x0004003d,0x000000ac,0x00000184,0x00000183,0x0004003d,0x00000006,
0x00000185,0x00000178,0x00050041,0x00000158,0x00000186,0x00000164,0x00000185,0x0004003d,
0x000000ac,0x00000187,0x00000186,0x00050085,0x000000ac,0x00000188,0x00000184,0x00000187,
0x00060041,0x00000158,0x00000189,0x000000b1,0x00000180,0x00000181,0x0004003d,0x000000ac,
0x0000018a,0x00000189,0x00050081,0x000000ac,0x0000018b,0x0000018a,0x00000188,0x00060041,
0x00000158,0x0000018c,0x000000b1,0x00000180,0x00000181,0x0003003e,0x0000018c,0x0000018b,
0x000200f9,0x0000017c,0x000200f8,0x0000017c,0x0004003d,0x00000006,0x0000018d,0x00000178,
0x00050080,0x00000006,0x0000018e,0x0000018d,0x00000071,0x0003003e,0x00000178,0x0000018e,
0x000200f9,0x00000179,0x000200f8,0x0000017b,0x000200f9,0x00000174,0x000200f8,0x00000174,
0x0004003d,0x00000006,0x0000018f,0x00000170,0x00050080,0x00000006,0x00000190,0x0000018f,
0x00000071,0x0003003e,0x00000170,0x00000190,0x000200f9,0x00000171,0x000200f8,0x00000173,
0x000200f9,0x00000141,0x000200f8,0x00000141,0x0004003d,0x00000006,0x00000191,0x0000013d,
0x00050080,0x00000006,0x00000192,0x00000191,0x00000071,0x0003003e,0x0000013d,0x00000192,
0x000200f9,0x0000013e,0x000200f8,0x00000140,0x000400e0,0x0000013b,0x0000013b,0x0000013c,
0x000200f9,0x000000ce,0x000200f8,0x000000ce,0x0004003d,0x00000006,0x00000193,0x000000ca,
0x00050080,0x00000006,0x00000194,0x00000193,0x00000071,0x0003003e,0x000000ca,0x00000194,
0x000200f9,0x000000cb,0x000200f8,0x000000cd,0x00050041,0x0000000d,0x00000195,0x0000000b,
0x00000033,0x0004003d,0x00000006,0x00000196,0x00000195,0x000500aa,0x000000aa,0x00000197,
0x00000196,0x00000071,0x000300f7,0x00000199,0x00000000,0x000400fa,0x00000197,0x00000198,
0x000001ae,0x000200f8,0x00000198,0x00050041,0x000000be,0x0000019a,0x000000b1,0x0000006d,
0x0004003d,0x000000ad,0x0000019b,0x0000019a,0x00070050,0x000000ad,0x0000019c,0x00000137,
0x00000137,0x00000137,0x00000137,0x0007000c,0x000000ad,0x0000019d,0x00000001,0x00000028,
0x0000019b,0x0000019c,0x00050041,0x000000be,0x0000019e,0x000000b1,0x0000006d,0x0003003e,
0x0000019e,0x0000019d,0x00050041,0x000000be,0x0000019f,0x000000b1,0x00000071,0x0004003d,
0x000000ad,0x000001a0,0x0000019f,0x00070050,0x000000ad,0x000001a1,0x00000137,0x00000137,
0x00000137,0x00000137,0x0007000c,0x000000ad,0x000001a2,0x00000001,0x00000028,0x000001a0,
0x000001a1,0x00050041,0x000000be,0x000001a3,0x000000b1,0x00000071,0x0003003e,0x000001a3,
0x000001a2,0x00050041,0x000000be,0x000001a4,0x000000b1,0x00000015,0x0004003d,0x000000ad,
0x000001a5,0x000001a4,0x00070050,0x000000ad,0x000001a6,0x00000137,0x00000137,0x00000137,
0x00000137,0x0007000c,0x000000ad,0x000001a7,0x00000001,0x00000028,0x000001a5,0x000001a6,
0x00050041,0x000000be,0x000001a8,0x000000b1,0x00000015,0x0003003e,0x000001a8,0x000001a7,
0x00050041,0x000000be,0x000001a9,0x000000b1,0x00000018,0x0004003d,0x000000ad,0x000001aa,
0x000001a9,0x00070050,0x000000ad,0x000001ab,0x00000137,0x00000137,0x00000137,0x00000137,
0x0007000c,0x000000ad,0x000001ac,0x00000001,0x00000028,0x000001aa,0x000001ab,0x00050041,
0x000000be,0x000001ad,0x000000b1,0x00000018,0x0003003e,0x000001ad,0x000001ac,0x000200f9,
0x00000199,0x000200f8,0x000001ae,0x00050041,0x0000000d,0x000001af,0x0000000b,0x00000033,
0x0004003d,0x00000006,0x000001b0,0x000001af,0x000500aa,0x000000aa,0x000001b1,0x000001b0,
0x00000015,0x000300f7,0x000001b3,0x00000000,0x000400fa,0x000001b1,0x000001b2,0x000001b3,
0x000200f8,0x000001b2,0x00050041,0x000000be,0x000001b4,0x000000b1,0x0000006d,0x0004003d,
0x000000ad,0x000001b5,0x000001b4,0x0008000c,0x000000ad,0x000001b9,0x00000001,0x0000002b,
0x000001b5,0x000001b6,0x000001b8,0x00050041,0x000000be,0x000001ba,0x000000b1,0x0000006d,
0x0003003e,0x000001ba,0x000001b9,0x00050041,0x000000be,0x000001bb,0x000000b1,0x00000071,
0x0004003d,0x000000ad,0x000001bc,0x000001bb,0x0008000c,0x000000ad,0x000001bd,0x00000001,
0x0000002b,0x000001bc,0x000001b6,0x000001b8,0x00050041,0x000000be,0x000001be,0x000000b1,
0x00000071,0x0003003e,0x000001be,0x000001bd,0x00050041,0x000000be,0x000001bf,0x000000b1,
0x00000015,0x0004003d,0x000000ad,0x000001c0,0x000001bf,0x0008000c,0x000000ad,0x000001c1,
0x00000001,0x0000002b,0x000001c0,0x000001b6,0x000001b8,0x00050041,0x000000be,0x000001c2,
0x000000b1,0x00000015,0x0003003e,0x000001c2,0x000001c1,0x00050041,0x000000be,0x000001c3,
0x000000b1,0x00000018,0x0004003d,0x000000ad,0x000001c4,0x000001c3,0x0008000c,0x000000ad,
0x000001c5,0x00000001,0x0000002b,0x000001c4,0x000001b6,0x000001b8,0x00050041,0x000000be,
0x000001c6,0x000000b1,0x00000018,0x0003003e,0x000001c6,0x000001c5,0x000200f9,0x000001b3,
0x000200f8,0x000001b3,0x000200f9,0x00000199,0x000200f8,0x00000199,0x0003003e,0x000001c7,
0x0000006d,0x000200f9,0x000001c8,0x000200f8,0x000001c8,0x000400f6,0x000001ca,0x000001cb,
0x00000000,0x000200f9,0x000001cc,0x000200f8,0x000001cc,0x0004003d,0x00000006,0x000001cd,
0x000001c7,0x000500b1,0x000000aa,0x000001ce,0x000001cd,0x000000a0,0x000400fa,0x000001ce,
0x000001c9,0x000001ca,0x000200f8,0x000001c9,0x0004003d,0x00000006,0x000001d0,0x00000028,
0x0004003d,0x00000006,0x000001d1,0x000001c7,0x00050084,0x00000006,0x000001d2,0x000001d1,
0x00000033,0x00050080,0x00000006,0x000001d3,0x000001d0,0x000001d2,0x0004003d,0x00000006,
0x000001d4,0x00000035,0x00050080,0x00000006,0x000001d5,0x000001d3,0x000001d4,0x0003003e,
0x000001cf,0x000001d5,0x0004003d,0x00000006,0x000001d6,0x000001cf,0x0004003d,0x00000006,
0x000001d7,0x00000014,0x000500b1,0x000000aa,0x000001d8,0x000001d6,0x000001d7,0x000300f7,
0x000001da,0x00000000,0x000400fa,0x000001d8,0x000001d9,0x000001da,0x000200f8,0x000001d9,
0x0003003e,0x000001db,0x0000006d,0x000200f9,0x000001dc,0x000200f8,0x000001dc,0x000400f6,
0x000001de,0x000001df,0x00000000,0x000200f9,0x000001e0,0x000200f8,0x000001e0,0x0004003d,
0x00000006,0x000001e1,0x000001db,0x000500b1,0x000000aa,0x000001e2,0x000001e1,0x000000a0,
0x000400fa,0x000001e2,0x000001dd,0x000001de,0x000200f8,0x000001dd,0x0004003d,0x00000006,
0x000001e4,0x0000001c,0x0004003d,0x00000006,0x000001e5,0x0000002e,0x00050084,0x00000006,
0x000001e6,0x000001e5,0x000000a0,0x00050080,0x00000006,0x000001e7,0x000001e4,0x000001e6,
0x0004003d,0x00000006,0x000001e8,0x000001db,0x00050080,0x00000006,0x000001e9,0x000001e7,
0x000001e8,0x0003003e,0x000001e3,0x000001e9,0x0004003d,0x00000006,0x000001ea,0x000001e3,
0x0004003d,0x00000006,0x000001eb,0x00000008,0x000500b1,0x000000aa,0x000001ec,0x000001ea,
0x000001eb,0x000300f7,0x000001ee,0x00000000,0x000400fa,0x000001ec,0x000001ed,0x000001ee,
0x000200f8,0x000001ed,0x0004003d,0x00000006,0x000001f3,0x00000085,0x0004003d,0x00000006,
0x000001f4,0x000001e3,0x0004003d,0x00000006,0x000001f5,0x00000014,0x00050084,0x00000006,
0x000001f6,0x000001f4,0x000001f5,0x00050080,0x00000006,0x000001f7,0x000001f3,0x000001f6,
0x0004003d,0x00000006,0x000001f8,0x000001cf,0x00050080,0x00000006,0x000001f9,0x000001f7,
0x000001f8,0x0004003d,0x00000006,0x000001fa,0x000001db,0x0004003d,0x00000006,0x000001fb,
0x000001c7,0x00060041,0x00000158,0x000001fc,0x000000b1,0x000001fa,0x000001fb,0x0004003d,
0x000000ac,0x000001fd,0x000001fc,0x00060041,0x000000ba,0x000001fe,0x000001f2,0x0000006d,
0x000001f9,0x0003003e,0x000001fe,0x000001fd,0x000200f9,0x000001ee,0x000200f8,0x000001ee,
0x000200f9,0x000001df,0x000200f8,0x000001df,0x0004003d,0x00000006,0x000001ff,0x000001db,
0x00050080,0x00000006,0x00000200,0x000001ff,0x00000071,0x0003003e,0x000001db,0x00000200,
0x000200f9,0x000001dc,0x000200f8,0x000001de,0x000200f9,0x000001da,0x000200f8,0x000001da,
0x000200f9,0x000001cb,0x000200f8,0x000001cb,0x0004003d,0x00000006,0x00000201,0x000001c7,
0x00050080,0x00000006,0x00000202,0x00000201,0x00000071,0x0003003e,0x000001c7,0x00000202,
0x000200f9,0x000001c8,0x000200f8,0x000001ca,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -0,0 +1,125 @@
#version 450
#define KSTRIP_LEN 16
#define BLOCK_SIZE 64 // the output channel shoule be aligned to 64.
#define WARP 32
#define ALL_THREAD 64
layout(binding = 0) readonly buffer Input0{
float image_data[];
};
layout(binding = 1) readonly buffer Input1 {
float bias_data[];
};
layout(binding = 2) readonly buffer Input2{
float weight_data[];
};
layout(binding = 3) writeonly buffer Output{
float output_data[];
};
layout(binding = 4) uniform pushBlock {
int Hi; // H in
int Wi; // W in
int H0; // H out
int W0; // W out
int stride_h;
int stride_w;
int pad_h;
int pad_w;
int Hk;
int Wk;
int dilation_h;
int dilation_w;
int Kg;
int Cg;
int group;
int CgHkWk_aligned;
int activationType; // 0 : no activation, 1: ReLU, 2: ReLU6.
int batchi;
int _unused;
} p;
shared float wshare[KSTRIP_LEN];
shared float inshare[KSTRIP_LEN][BLOCK_SIZE]; // 2 KB
layout(local_size_x = ALL_THREAD, local_size_y = 1, local_size_z = 1) in;
void main()
{
int outputPlan = p.H0 * p.W0; // H0 * W0
int HkWk = p.Hk * p.Wk;
int KStrip = p.CgHkWk_aligned / KSTRIP_LEN;
int hwIndex = int(gl_WorkGroupID.x) * BLOCK_SIZE;
int kIndex = int(gl_WorkGroupID.y);
int local_x = int(gl_LocalInvocationID.x); // 0 ~ 63
int w_local_x = int(gl_LocalInvocationID.x) % KSTRIP_LEN; // 64 % 32 = 0 ~ 31
int w_local_y = int(gl_LocalInvocationID.x) / KSTRIP_LEN;
int in_local_x = local_x; // 64 / 64 = 1
int woffset = kIndex * p.CgHkWk_aligned + w_local_x;
int inoffset = p.batchi * p.group * p.Hi * p.Wi;
int outoffset = p.batchi * p.group * p.H0 * p.W0;
float sum = bias_data[kIndex];
for (int i = 0; i < KStrip; i++)
{
int kStrip = i * KSTRIP_LEN;
// load Weight to local memory.
if (w_local_y == 0)
wshare[w_local_x] = weight_data[woffset + kStrip];
// load Input to local memory
for (int k = 0; k < KSTRIP_LEN; k++)
{
int hk = k / p.Wk;
int wk = k - hk * p.Wk;
int dh = hk * p.dilation_h, dw = wk * p.dilation_w;
int h0w0 = in_local_x + hwIndex;
int h0 = h0w0 / p.W0;
int w0 = h0w0 - h0 * p.W0;
int hi = h0 * p.stride_h + dh - p.pad_h;
int wi = w0 * p.stride_w + dw - p.pad_w;
if (uint(hi) < uint(p.Hi) && uint(wi) < uint(p.Wi))
inshare[k][in_local_x] = image_data[inoffset + hi * p.Wi + wi];
else
inshare[k][in_local_x] = 0.f;
}
barrier();
for (int j = 0; j < KSTRIP_LEN; j++)
{
sum += wshare[j] * inshare[j][in_local_x];
}
barrier();
}
if (p.activationType == 1) // ReLU
{
sum = max(sum, 0.f);
}
else if (p.activationType == 2) // ReLU6
{
sum = clamp(sum, 0.f, 6.f);
}
hwIndex += in_local_x;
if (hwIndex < outputPlan)
output_data[outoffset + hwIndex] = sum;
}

View File

@ -0,0 +1,121 @@
#version 450
// This kernel is made for generic convolution, but for depth-wise, it is very slow.
#define KSTRIP_LEN 16
#define REAL_KSTRIP_LEN 9 // 3x3 kernel size.
#define BLOCK_SIZE 64 // the output channel shoule be aligned to 64.
#define WARP 32
#define ALL_THREAD 64
layout(binding = 0) readonly buffer Input0{
float image_data[];
};
layout(binding = 1) readonly buffer Input1 {
float bias_data[];
};
layout(binding = 2) readonly buffer Input2{
float weight_data[];
};
layout(binding = 3) writeonly buffer Output{
float output_data[];
};
layout(binding = 4) uniform pushBlock {
int Hi; // H in
int Wi; // W in
int H0; // H out
int W0; // W out
int stride_h;
int stride_w;
int pad_h;
int pad_w;
int Hk;
int Wk;
int dilation_h;
int dilation_w;
int Kg;
int Cg;
int group;
int CgHkWk_aligned;
int activationType; // 0 : no activation, 1: ReLU, 2: ReLU6.
int batchi;
int _unused;
} p;
shared float wshare[KSTRIP_LEN];
shared float inshare[KSTRIP_LEN][BLOCK_SIZE]; // 2 KB
layout(local_size_x = ALL_THREAD, local_size_y = 1, local_size_z = 1) in;
void main()
{
int outputPlan = p.H0 * p.W0; // H0 * W0
int HkWk = p.Hk * p.Wk;
int hwIndex = int(gl_WorkGroupID.x) * BLOCK_SIZE;
int kIndex = int(gl_WorkGroupID.y);
int local_x = int(gl_LocalInvocationID.x); // 0 ~ 63
int w_local_x = int(gl_LocalInvocationID.x) % KSTRIP_LEN; // 64 % 32 = 0 ~ 31
int w_local_y = int(gl_LocalInvocationID.x) / KSTRIP_LEN;
int in_local_x = local_x; // 64 / 64 = 1
int woffset = kIndex * p.CgHkWk_aligned + w_local_x;
int inoffset = p.batchi * p.group * p.Hi * p.Wi;
int outoffset = p.batchi * p.group * p.H0 * p.W0;
float sum = bias_data[kIndex];
// load Weight to local memory.
if (w_local_y == 0)
wshare[w_local_x] = weight_data[woffset];
for (int k = 0; k < REAL_KSTRIP_LEN; k++)
{
int hk = k / p.Wk;
int wk = k - hk * p.Wk;
int dh = hk * p.dilation_h, dw = wk * p.dilation_w;
int h0w0 = in_local_x + hwIndex;
int h0 = h0w0 / p.W0;
int w0 = h0w0 - h0 * p.W0;
int hi = h0 * p.stride_h + dh - p.pad_h;
int wi = w0 * p.stride_w + dw - p.pad_w;
if (uint(hi) < uint(p.Hi) && uint(wi) < uint(p.Wi))
inshare[k][in_local_x] = image_data[inoffset + hi * p.Wi + wi];
else
inshare[k][in_local_x] = 0.f;
}
barrier();
for (int j = 0; j < REAL_KSTRIP_LEN; j++)
{
sum += wshare[j] * inshare[j][in_local_x];
}
barrier();
if (p.activationType == 1) // ReLU
{
sum = max(sum, 0.f);
}
else if (p.activationType == 2) // ReLU6
{
sum = clamp(sum, 0.f, 6.f);
}
hwIndex += in_local_x;
if (hwIndex < outputPlan)
output_data[outoffset + hwIndex] = sum;
}

View File

@ -0,0 +1,260 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int conv_depthwise_3x3_spv[1977] = {
0x07230203,0x00010000,0x0008000b,0x0000012f,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000020,0x0000002e,0x00060010,
0x00000004,0x00000011,0x00000040,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00050005,0x00000008,0x7074756f,0x6c507475,
0x00006e61,0x00050005,0x00000009,0x68737570,0x636f6c42,0x0000006b,0x00040006,0x00000009,
0x00000000,0x00006948,0x00040006,0x00000009,0x00000001,0x00006957,0x00040006,0x00000009,
0x00000002,0x00003048,0x00040006,0x00000009,0x00000003,0x00003057,0x00060006,0x00000009,
0x00000004,0x69727473,0x685f6564,0x00000000,0x00060006,0x00000009,0x00000005,0x69727473,
0x775f6564,0x00000000,0x00050006,0x00000009,0x00000006,0x5f646170,0x00000068,0x00050006,
0x00000009,0x00000007,0x5f646170,0x00000077,0x00040006,0x00000009,0x00000008,0x00006b48,
0x00040006,0x00000009,0x00000009,0x00006b57,0x00060006,0x00000009,0x0000000a,0x616c6964,
0x6e6f6974,0x0000685f,0x00060006,0x00000009,0x0000000b,0x616c6964,0x6e6f6974,0x0000775f,
0x00040006,0x00000009,0x0000000c,0x0000674b,0x00040006,0x00000009,0x0000000d,0x00006743,
0x00050006,0x00000009,0x0000000e,0x756f7267,0x00000070,0x00070006,0x00000009,0x0000000f,
0x6b486743,0x615f6b57,0x6e67696c,0x00006465,0x00070006,0x00000009,0x00000010,0x69746361,
0x69746176,0x79546e6f,0x00006570,0x00050006,0x00000009,0x00000011,0x63746162,0x00006968,
0x00050006,0x00000009,0x00000012,0x756e755f,0x00646573,0x00030005,0x0000000b,0x00000070,
0x00040005,0x00000014,0x6b576b48,0x00000000,0x00040005,0x0000001c,0x6e497768,0x00786564,
0x00060005,0x00000020,0x575f6c67,0x476b726f,0x70756f72,0x00004449,0x00040005,0x00000028,
0x646e496b,0x00007865,0x00040005,0x0000002d,0x61636f6c,0x00785f6c,0x00080005,0x0000002e,
0x4c5f6c67,0x6c61636f,0x6f766e49,0x69746163,0x44496e6f,0x00000000,0x00050005,0x00000032,
0x6f6c5f77,0x5f6c6163,0x00000078,0x00050005,0x00000038,0x6f6c5f77,0x5f6c6163,0x00000079,
0x00050005,0x0000003d,0x6c5f6e69,0x6c61636f,0x0000785f,0x00040005,0x0000003f,0x66666f77,
0x00746573,0x00050005,0x00000047,0x666f6e69,0x74657366,0x00000000,0x00050005,0x00000057,
0x6f74756f,0x65736666,0x00000074,0x00030005,0x00000065,0x006d7573,0x00040005,0x00000067,
0x75706e49,0x00003174,0x00060006,0x00000067,0x00000000,0x73616962,0x7461645f,0x00000061,
0x00030005,0x00000069,0x00000000,0x00040005,0x00000076,0x61687377,0x00006572,0x00040005,
0x00000079,0x75706e49,0x00003274,0x00060006,0x00000079,0x00000000,0x67696577,0x645f7468,
0x00617461,0x00030005,0x0000007b,0x00000000,0x00030005,0x00000081,0x0000006b,0x00030005,
0x00000089,0x00006b68,0x00030005,0x0000008e,0x00006b77,0x00030005,0x00000095,0x00006864,
0x00030005,0x0000009b,0x00007764,0x00040005,0x000000a1,0x30773068,0x00000000,0x00030005,
0x000000a5,0x00003068,0x00030005,0x000000aa,0x00003077,0x00030005,0x000000b1,0x00006968,
0x00030005,0x000000bd,0x00006977,0x00040005,0x000000de,0x68736e69,0x00657261,0x00040005,
0x000000e2,0x75706e49,0x00003074,0x00060006,0x000000e2,0x00000000,0x67616d69,0x61645f65,
0x00006174,0x00030005,0x000000e4,0x00000000,0x00030005,0x000000f9,0x0000006a,0x00040005,
0x00000126,0x7074754f,0x00007475,0x00060006,0x00000126,0x00000000,0x7074756f,0x645f7475,
0x00617461,0x00030005,0x00000128,0x00000000,0x00050048,0x00000009,0x00000000,0x00000023,
0x00000000,0x00050048,0x00000009,0x00000001,0x00000023,0x00000004,0x00050048,0x00000009,
0x00000002,0x00000023,0x00000008,0x00050048,0x00000009,0x00000003,0x00000023,0x0000000c,
0x00050048,0x00000009,0x00000004,0x00000023,0x00000010,0x00050048,0x00000009,0x00000005,
0x00000023,0x00000014,0x00050048,0x00000009,0x00000006,0x00000023,0x00000018,0x00050048,
0x00000009,0x00000007,0x00000023,0x0000001c,0x00050048,0x00000009,0x00000008,0x00000023,
0x00000020,0x00050048,0x00000009,0x00000009,0x00000023,0x00000024,0x00050048,0x00000009,
0x0000000a,0x00000023,0x00000028,0x00050048,0x00000009,0x0000000b,0x00000023,0x0000002c,
0x00050048,0x00000009,0x0000000c,0x00000023,0x00000030,0x00050048,0x00000009,0x0000000d,
0x00000023,0x00000034,0x00050048,0x00000009,0x0000000e,0x00000023,0x00000038,0x00050048,
0x00000009,0x0000000f,0x00000023,0x0000003c,0x00050048,0x00000009,0x00000010,0x00000023,
0x00000040,0x00050048,0x00000009,0x00000011,0x00000023,0x00000044,0x00050048,0x00000009,
0x00000012,0x00000023,0x00000048,0x00030047,0x00000009,0x00000002,0x00040047,0x0000000b,
0x00000022,0x00000000,0x00040047,0x0000000b,0x00000021,0x00000004,0x00040047,0x00000020,
0x0000000b,0x0000001a,0x00040047,0x0000002e,0x0000000b,0x0000001b,0x00040047,0x00000066,
0x00000006,0x00000004,0x00040048,0x00000067,0x00000000,0x00000018,0x00050048,0x00000067,
0x00000000,0x00000023,0x00000000,0x00030047,0x00000067,0x00000003,0x00040047,0x00000069,
0x00000022,0x00000000,0x00040047,0x00000069,0x00000021,0x00000001,0x00040047,0x00000078,
0x00000006,0x00000004,0x00040048,0x00000079,0x00000000,0x00000018,0x00050048,0x00000079,
0x00000000,0x00000023,0x00000000,0x00030047,0x00000079,0x00000003,0x00040047,0x0000007b,
0x00000022,0x00000000,0x00040047,0x0000007b,0x00000021,0x00000002,0x00040047,0x000000e1,
0x00000006,0x00000004,0x00040048,0x000000e2,0x00000000,0x00000018,0x00050048,0x000000e2,
0x00000000,0x00000023,0x00000000,0x00030047,0x000000e2,0x00000003,0x00040047,0x000000e4,
0x00000022,0x00000000,0x00040047,0x000000e4,0x00000021,0x00000000,0x00040047,0x00000125,
0x00000006,0x00000004,0x00040048,0x00000126,0x00000000,0x00000019,0x00050048,0x00000126,
0x00000000,0x00000023,0x00000000,0x00030047,0x00000126,0x00000003,0x00040047,0x00000128,
0x00000022,0x00000000,0x00040047,0x00000128,0x00000021,0x00000003,0x00040047,0x0000012e,
0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,
0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,0x0015001e,
0x00000009,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00040020,0x0000000a,0x00000002,0x00000009,
0x0004003b,0x0000000a,0x0000000b,0x00000002,0x0004002b,0x00000006,0x0000000c,0x00000002,
0x00040020,0x0000000d,0x00000002,0x00000006,0x0004002b,0x00000006,0x00000010,0x00000003,
0x0004002b,0x00000006,0x00000015,0x00000008,0x0004002b,0x00000006,0x00000018,0x00000009,
0x00040015,0x0000001d,0x00000020,0x00000000,0x00040017,0x0000001e,0x0000001d,0x00000003,
0x00040020,0x0000001f,0x00000001,0x0000001e,0x0004003b,0x0000001f,0x00000020,0x00000001,
0x0004002b,0x0000001d,0x00000021,0x00000000,0x00040020,0x00000022,0x00000001,0x0000001d,
0x0004002b,0x00000006,0x00000026,0x00000040,0x0004002b,0x0000001d,0x00000029,0x00000001,
0x0004003b,0x0000001f,0x0000002e,0x00000001,0x0004002b,0x00000006,0x00000036,0x00000010,
0x0004002b,0x00000006,0x00000041,0x0000000f,0x0004002b,0x00000006,0x00000048,0x00000011,
0x0004002b,0x00000006,0x0000004b,0x0000000e,0x0004002b,0x00000006,0x0000004f,0x00000000,
0x0004002b,0x00000006,0x00000053,0x00000001,0x00030016,0x00000063,0x00000020,0x00040020,
0x00000064,0x00000007,0x00000063,0x0003001d,0x00000066,0x00000063,0x0003001e,0x00000067,
0x00000066,0x00040020,0x00000068,0x00000002,0x00000067,0x0004003b,0x00000068,0x00000069,
0x00000002,0x00040020,0x0000006b,0x00000002,0x00000063,0x00020014,0x0000006f,0x0004002b,
0x0000001d,0x00000073,0x00000010,0x0004001c,0x00000074,0x00000063,0x00000073,0x00040020,
0x00000075,0x00000004,0x00000074,0x0004003b,0x00000075,0x00000076,0x00000004,0x0003001d,
0x00000078,0x00000063,0x0003001e,0x00000079,0x00000078,0x00040020,0x0000007a,0x00000002,
0x00000079,0x0004003b,0x0000007a,0x0000007b,0x00000002,0x00040020,0x0000007f,0x00000004,
0x00000063,0x0004002b,0x00000006,0x00000097,0x0000000a,0x0004002b,0x00000006,0x0000009d,
0x0000000b,0x0004002b,0x00000006,0x000000b3,0x00000004,0x0004002b,0x00000006,0x000000b9,
0x00000006,0x0004002b,0x00000006,0x000000bf,0x00000005,0x0004002b,0x00000006,0x000000c5,
0x00000007,0x0004002b,0x0000001d,0x000000da,0x00000040,0x0004001c,0x000000db,0x00000063,
0x000000da,0x0004001c,0x000000dc,0x000000db,0x00000073,0x00040020,0x000000dd,0x00000004,
0x000000dc,0x0004003b,0x000000dd,0x000000de,0x00000004,0x0003001d,0x000000e1,0x00000063,
0x0003001e,0x000000e2,0x000000e1,0x00040020,0x000000e3,0x00000002,0x000000e2,0x0004003b,
0x000000e3,0x000000e4,0x00000002,0x0004002b,0x00000063,0x000000f3,0x00000000,0x0004002b,
0x0000001d,0x000000f7,0x00000002,0x0004002b,0x0000001d,0x000000f8,0x00000108,0x0004002b,
0x00000063,0x0000011b,0x40c00000,0x0003001d,0x00000125,0x00000063,0x0003001e,0x00000126,
0x00000125,0x00040020,0x00000127,0x00000002,0x00000126,0x0004003b,0x00000127,0x00000128,
0x00000002,0x0006002c,0x0000001e,0x0000012e,0x000000da,0x00000029,0x00000029,0x00050036,
0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,
0x00000008,0x00000007,0x0004003b,0x00000007,0x00000014,0x00000007,0x0004003b,0x00000007,
0x0000001c,0x00000007,0x0004003b,0x00000007,0x00000028,0x00000007,0x0004003b,0x00000007,
0x0000002d,0x00000007,0x0004003b,0x00000007,0x00000032,0x00000007,0x0004003b,0x00000007,
0x00000038,0x00000007,0x0004003b,0x00000007,0x0000003d,0x00000007,0x0004003b,0x00000007,
0x0000003f,0x00000007,0x0004003b,0x00000007,0x00000047,0x00000007,0x0004003b,0x00000007,
0x00000057,0x00000007,0x0004003b,0x00000064,0x00000065,0x00000007,0x0004003b,0x00000007,
0x00000081,0x00000007,0x0004003b,0x00000007,0x00000089,0x00000007,0x0004003b,0x00000007,
0x0000008e,0x00000007,0x0004003b,0x00000007,0x00000095,0x00000007,0x0004003b,0x00000007,
0x0000009b,0x00000007,0x0004003b,0x00000007,0x000000a1,0x00000007,0x0004003b,0x00000007,
0x000000a5,0x00000007,0x0004003b,0x00000007,0x000000aa,0x00000007,0x0004003b,0x00000007,
0x000000b1,0x00000007,0x0004003b,0x00000007,0x000000bd,0x00000007,0x0004003b,0x00000007,
0x000000f9,0x00000007,0x00050041,0x0000000d,0x0000000e,0x0000000b,0x0000000c,0x0004003d,
0x00000006,0x0000000f,0x0000000e,0x00050041,0x0000000d,0x00000011,0x0000000b,0x00000010,
0x0004003d,0x00000006,0x00000012,0x00000011,0x00050084,0x00000006,0x00000013,0x0000000f,
0x00000012,0x0003003e,0x00000008,0x00000013,0x00050041,0x0000000d,0x00000016,0x0000000b,
0x00000015,0x0004003d,0x00000006,0x00000017,0x00000016,0x00050041,0x0000000d,0x00000019,
0x0000000b,0x00000018,0x0004003d,0x00000006,0x0000001a,0x00000019,0x00050084,0x00000006,
0x0000001b,0x00000017,0x0000001a,0x0003003e,0x00000014,0x0000001b,0x00050041,0x00000022,
0x00000023,0x00000020,0x00000021,0x0004003d,0x0000001d,0x00000024,0x00000023,0x0004007c,
0x00000006,0x00000025,0x00000024,0x00050084,0x00000006,0x00000027,0x00000025,0x00000026,
0x0003003e,0x0000001c,0x00000027,0x00050041,0x00000022,0x0000002a,0x00000020,0x00000029,
0x0004003d,0x0000001d,0x0000002b,0x0000002a,0x0004007c,0x00000006,0x0000002c,0x0000002b,
0x0003003e,0x00000028,0x0000002c,0x00050041,0x00000022,0x0000002f,0x0000002e,0x00000021,
0x0004003d,0x0000001d,0x00000030,0x0000002f,0x0004007c,0x00000006,0x00000031,0x00000030,
0x0003003e,0x0000002d,0x00000031,0x00050041,0x00000022,0x00000033,0x0000002e,0x00000021,
0x0004003d,0x0000001d,0x00000034,0x00000033,0x0004007c,0x00000006,0x00000035,0x00000034,
0x0005008b,0x00000006,0x00000037,0x00000035,0x00000036,0x0003003e,0x00000032,0x00000037,
0x00050041,0x00000022,0x00000039,0x0000002e,0x00000021,0x0004003d,0x0000001d,0x0000003a,
0x00000039,0x0004007c,0x00000006,0x0000003b,0x0000003a,0x00050087,0x00000006,0x0000003c,
0x0000003b,0x00000036,0x0003003e,0x00000038,0x0000003c,0x0004003d,0x00000006,0x0000003e,
0x0000002d,0x0003003e,0x0000003d,0x0000003e,0x0004003d,0x00000006,0x00000040,0x00000028,
0x00050041,0x0000000d,0x00000042,0x0000000b,0x00000041,0x0004003d,0x00000006,0x00000043,
0x00000042,0x00050084,0x00000006,0x00000044,0x00000040,0x00000043,0x0004003d,0x00000006,
0x00000045,0x00000032,0x00050080,0x00000006,0x00000046,0x00000044,0x00000045,0x0003003e,
0x0000003f,0x00000046,0x00050041,0x0000000d,0x00000049,0x0000000b,0x00000048,0x0004003d,
0x00000006,0x0000004a,0x00000049,0x00050041,0x0000000d,0x0000004c,0x0000000b,0x0000004b,
0x0004003d,0x00000006,0x0000004d,0x0000004c,0x00050084,0x00000006,0x0000004e,0x0000004a,
0x0000004d,0x00050041,0x0000000d,0x00000050,0x0000000b,0x0000004f,0x0004003d,0x00000006,
0x00000051,0x00000050,0x00050084,0x00000006,0x00000052,0x0000004e,0x00000051,0x00050041,
0x0000000d,0x00000054,0x0000000b,0x00000053,0x0004003d,0x00000006,0x00000055,0x00000054,
0x00050084,0x00000006,0x00000056,0x00000052,0x00000055,0x0003003e,0x00000047,0x00000056,
0x00050041,0x0000000d,0x00000058,0x0000000b,0x00000048,0x0004003d,0x00000006,0x00000059,
0x00000058,0x00050041,0x0000000d,0x0000005a,0x0000000b,0x0000004b,0x0004003d,0x00000006,
0x0000005b,0x0000005a,0x00050084,0x00000006,0x0000005c,0x00000059,0x0000005b,0x00050041,
0x0000000d,0x0000005d,0x0000000b,0x0000000c,0x0004003d,0x00000006,0x0000005e,0x0000005d,
0x00050084,0x00000006,0x0000005f,0x0000005c,0x0000005e,0x00050041,0x0000000d,0x00000060,
0x0000000b,0x00000010,0x0004003d,0x00000006,0x00000061,0x00000060,0x00050084,0x00000006,
0x00000062,0x0000005f,0x00000061,0x0003003e,0x00000057,0x00000062,0x0004003d,0x00000006,
0x0000006a,0x00000028,0x00060041,0x0000006b,0x0000006c,0x00000069,0x0000004f,0x0000006a,
0x0004003d,0x00000063,0x0000006d,0x0000006c,0x0003003e,0x00000065,0x0000006d,0x0004003d,
0x00000006,0x0000006e,0x00000038,0x000500aa,0x0000006f,0x00000070,0x0000006e,0x0000004f,
0x000300f7,0x00000072,0x00000000,0x000400fa,0x00000070,0x00000071,0x00000072,0x000200f8,
0x00000071,0x0004003d,0x00000006,0x00000077,0x00000032,0x0004003d,0x00000006,0x0000007c,
0x0000003f,0x00060041,0x0000006b,0x0000007d,0x0000007b,0x0000004f,0x0000007c,0x0004003d,
0x00000063,0x0000007e,0x0000007d,0x00050041,0x0000007f,0x00000080,0x00000076,0x00000077,
0x0003003e,0x00000080,0x0000007e,0x000200f9,0x00000072,0x000200f8,0x00000072,0x0003003e,
0x00000081,0x0000004f,0x000200f9,0x00000082,0x000200f8,0x00000082,0x000400f6,0x00000084,
0x00000085,0x00000000,0x000200f9,0x00000086,0x000200f8,0x00000086,0x0004003d,0x00000006,
0x00000087,0x00000081,0x000500b1,0x0000006f,0x00000088,0x00000087,0x00000018,0x000400fa,
0x00000088,0x00000083,0x00000084,0x000200f8,0x00000083,0x0004003d,0x00000006,0x0000008a,
0x00000081,0x00050041,0x0000000d,0x0000008b,0x0000000b,0x00000018,0x0004003d,0x00000006,
0x0000008c,0x0000008b,0x00050087,0x00000006,0x0000008d,0x0000008a,0x0000008c,0x0003003e,
0x00000089,0x0000008d,0x0004003d,0x00000006,0x0000008f,0x00000081,0x0004003d,0x00000006,
0x00000090,0x00000089,0x00050041,0x0000000d,0x00000091,0x0000000b,0x00000018,0x0004003d,
0x00000006,0x00000092,0x00000091,0x00050084,0x00000006,0x00000093,0x00000090,0x00000092,
0x00050082,0x00000006,0x00000094,0x0000008f,0x00000093,0x0003003e,0x0000008e,0x00000094,
0x0004003d,0x00000006,0x00000096,0x00000089,0x00050041,0x0000000d,0x00000098,0x0000000b,
0x00000097,0x0004003d,0x00000006,0x00000099,0x00000098,0x00050084,0x00000006,0x0000009a,
0x00000096,0x00000099,0x0003003e,0x00000095,0x0000009a,0x0004003d,0x00000006,0x0000009c,
0x0000008e,0x00050041,0x0000000d,0x0000009e,0x0000000b,0x0000009d,0x0004003d,0x00000006,
0x0000009f,0x0000009e,0x00050084,0x00000006,0x000000a0,0x0000009c,0x0000009f,0x0003003e,
0x0000009b,0x000000a0,0x0004003d,0x00000006,0x000000a2,0x0000003d,0x0004003d,0x00000006,
0x000000a3,0x0000001c,0x00050080,0x00000006,0x000000a4,0x000000a2,0x000000a3,0x0003003e,
0x000000a1,0x000000a4,0x0004003d,0x00000006,0x000000a6,0x000000a1,0x00050041,0x0000000d,
0x000000a7,0x0000000b,0x00000010,0x0004003d,0x00000006,0x000000a8,0x000000a7,0x00050087,
0x00000006,0x000000a9,0x000000a6,0x000000a8,0x0003003e,0x000000a5,0x000000a9,0x0004003d,
0x00000006,0x000000ab,0x000000a1,0x0004003d,0x00000006,0x000000ac,0x000000a5,0x00050041,
0x0000000d,0x000000ad,0x0000000b,0x00000010,0x0004003d,0x00000006,0x000000ae,0x000000ad,
0x00050084,0x00000006,0x000000af,0x000000ac,0x000000ae,0x00050082,0x00000006,0x000000b0,
0x000000ab,0x000000af,0x0003003e,0x000000aa,0x000000b0,0x0004003d,0x00000006,0x000000b2,
0x000000a5,0x00050041,0x0000000d,0x000000b4,0x0000000b,0x000000b3,0x0004003d,0x00000006,
0x000000b5,0x000000b4,0x00050084,0x00000006,0x000000b6,0x000000b2,0x000000b5,0x0004003d,
0x00000006,0x000000b7,0x00000095,0x00050080,0x00000006,0x000000b8,0x000000b6,0x000000b7,
0x00050041,0x0000000d,0x000000ba,0x0000000b,0x000000b9,0x0004003d,0x00000006,0x000000bb,
0x000000ba,0x00050082,0x00000006,0x000000bc,0x000000b8,0x000000bb,0x0003003e,0x000000b1,
0x000000bc,0x0004003d,0x00000006,0x000000be,0x000000aa,0x00050041,0x0000000d,0x000000c0,
0x0000000b,0x000000bf,0x0004003d,0x00000006,0x000000c1,0x000000c0,0x00050084,0x00000006,
0x000000c2,0x000000be,0x000000c1,0x0004003d,0x00000006,0x000000c3,0x0000009b,0x00050080,
0x00000006,0x000000c4,0x000000c2,0x000000c3,0x00050041,0x0000000d,0x000000c6,0x0000000b,
0x000000c5,0x0004003d,0x00000006,0x000000c7,0x000000c6,0x00050082,0x00000006,0x000000c8,
0x000000c4,0x000000c7,0x0003003e,0x000000bd,0x000000c8,0x0004003d,0x00000006,0x000000c9,
0x000000b1,0x0004007c,0x0000001d,0x000000ca,0x000000c9,0x00050041,0x0000000d,0x000000cb,
0x0000000b,0x0000004f,0x0004003d,0x00000006,0x000000cc,0x000000cb,0x0004007c,0x0000001d,
0x000000cd,0x000000cc,0x000500b0,0x0000006f,0x000000ce,0x000000ca,0x000000cd,0x000300f7,
0x000000d0,0x00000000,0x000400fa,0x000000ce,0x000000cf,0x000000d0,0x000200f8,0x000000cf,
0x0004003d,0x00000006,0x000000d1,0x000000bd,0x0004007c,0x0000001d,0x000000d2,0x000000d1,
0x00050041,0x0000000d,0x000000d3,0x0000000b,0x00000053,0x0004003d,0x00000006,0x000000d4,
0x000000d3,0x0004007c,0x0000001d,0x000000d5,0x000000d4,0x000500b0,0x0000006f,0x000000d6,
0x000000d2,0x000000d5,0x000200f9,0x000000d0,0x000200f8,0x000000d0,0x000700f5,0x0000006f,
0x000000d7,0x000000ce,0x00000083,0x000000d6,0x000000cf,0x000300f7,0x000000d9,0x00000000,
0x000400fa,0x000000d7,0x000000d8,0x000000f0,0x000200f8,0x000000d8,0x0004003d,0x00000006,
0x000000df,0x00000081,0x0004003d,0x00000006,0x000000e0,0x0000003d,0x0004003d,0x00000006,
0x000000e5,0x00000047,0x0004003d,0x00000006,0x000000e6,0x000000b1,0x00050041,0x0000000d,
0x000000e7,0x0000000b,0x00000053,0x0004003d,0x00000006,0x000000e8,0x000000e7,0x00050084,
0x00000006,0x000000e9,0x000000e6,0x000000e8,0x00050080,0x00000006,0x000000ea,0x000000e5,
0x000000e9,0x0004003d,0x00000006,0x000000eb,0x000000bd,0x00050080,0x00000006,0x000000ec,
0x000000ea,0x000000eb,0x00060041,0x0000006b,0x000000ed,0x000000e4,0x0000004f,0x000000ec,
0x0004003d,0x00000063,0x000000ee,0x000000ed,0x00060041,0x0000007f,0x000000ef,0x000000de,
0x000000df,0x000000e0,0x0003003e,0x000000ef,0x000000ee,0x000200f9,0x000000d9,0x000200f8,
0x000000f0,0x0004003d,0x00000006,0x000000f1,0x00000081,0x0004003d,0x00000006,0x000000f2,
0x0000003d,0x00060041,0x0000007f,0x000000f4,0x000000de,0x000000f1,0x000000f2,0x0003003e,
0x000000f4,0x000000f3,0x000200f9,0x000000d9,0x000200f8,0x000000d9,0x000200f9,0x00000085,
0x000200f8,0x00000085,0x0004003d,0x00000006,0x000000f5,0x00000081,0x00050080,0x00000006,
0x000000f6,0x000000f5,0x00000053,0x0003003e,0x00000081,0x000000f6,0x000200f9,0x00000082,
0x000200f8,0x00000084,0x000400e0,0x000000f7,0x000000f7,0x000000f8,0x0003003e,0x000000f9,
0x0000004f,0x000200f9,0x000000fa,0x000200f8,0x000000fa,0x000400f6,0x000000fc,0x000000fd,
0x00000000,0x000200f9,0x000000fe,0x000200f8,0x000000fe,0x0004003d,0x00000006,0x000000ff,
0x000000f9,0x000500b1,0x0000006f,0x00000100,0x000000ff,0x00000018,0x000400fa,0x00000100,
0x000000fb,0x000000fc,0x000200f8,0x000000fb,0x0004003d,0x00000006,0x00000101,0x000000f9,
0x00050041,0x0000007f,0x00000102,0x00000076,0x00000101,0x0004003d,0x00000063,0x00000103,
0x00000102,0x0004003d,0x00000006,0x00000104,0x000000f9,0x0004003d,0x00000006,0x00000105,
0x0000003d,0x00060041,0x0000007f,0x00000106,0x000000de,0x00000104,0x00000105,0x0004003d,
0x00000063,0x00000107,0x00000106,0x00050085,0x00000063,0x00000108,0x00000103,0x00000107,
0x0004003d,0x00000063,0x00000109,0x00000065,0x00050081,0x00000063,0x0000010a,0x00000109,
0x00000108,0x0003003e,0x00000065,0x0000010a,0x000200f9,0x000000fd,0x000200f8,0x000000fd,
0x0004003d,0x00000006,0x0000010b,0x000000f9,0x00050080,0x00000006,0x0000010c,0x0000010b,
0x00000053,0x0003003e,0x000000f9,0x0000010c,0x000200f9,0x000000fa,0x000200f8,0x000000fc,
0x000400e0,0x000000f7,0x000000f7,0x000000f8,0x00050041,0x0000000d,0x0000010d,0x0000000b,
0x00000036,0x0004003d,0x00000006,0x0000010e,0x0000010d,0x000500aa,0x0000006f,0x0000010f,
0x0000010e,0x00000053,0x000300f7,0x00000111,0x00000000,0x000400fa,0x0000010f,0x00000110,
0x00000114,0x000200f8,0x00000110,0x0004003d,0x00000063,0x00000112,0x00000065,0x0007000c,
0x00000063,0x00000113,0x00000001,0x00000028,0x00000112,0x000000f3,0x0003003e,0x00000065,
0x00000113,0x000200f9,0x00000111,0x000200f8,0x00000114,0x00050041,0x0000000d,0x00000115,
0x0000000b,0x00000036,0x0004003d,0x00000006,0x00000116,0x00000115,0x000500aa,0x0000006f,
0x00000117,0x00000116,0x0000000c,0x000300f7,0x00000119,0x00000000,0x000400fa,0x00000117,
0x00000118,0x00000119,0x000200f8,0x00000118,0x0004003d,0x00000063,0x0000011a,0x00000065,
0x0008000c,0x00000063,0x0000011c,0x00000001,0x0000002b,0x0000011a,0x000000f3,0x0000011b,
0x0003003e,0x00000065,0x0000011c,0x000200f9,0x00000119,0x000200f8,0x00000119,0x000200f9,
0x00000111,0x000200f8,0x00000111,0x0004003d,0x00000006,0x0000011d,0x0000003d,0x0004003d,
0x00000006,0x0000011e,0x0000001c,0x00050080,0x00000006,0x0000011f,0x0000011e,0x0000011d,
0x0003003e,0x0000001c,0x0000011f,0x0004003d,0x00000006,0x00000120,0x0000001c,0x0004003d,
0x00000006,0x00000121,0x00000008,0x000500b1,0x0000006f,0x00000122,0x00000120,0x00000121,
0x000300f7,0x00000124,0x00000000,0x000400fa,0x00000122,0x00000123,0x00000124,0x000200f8,
0x00000123,0x0004003d,0x00000006,0x00000129,0x00000057,0x0004003d,0x00000006,0x0000012a,
0x0000001c,0x00050080,0x00000006,0x0000012b,0x00000129,0x0000012a,0x0004003d,0x00000063,
0x0000012c,0x00000065,0x00060041,0x0000006b,0x0000012d,0x00000128,0x0000004f,0x0000012b,
0x0003003e,0x0000012d,0x0000012c,0x000200f9,0x00000124,0x000200f8,0x00000124,0x000100fd,
0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -0,0 +1,274 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int conv_depthwise_spv[2092] = {
0x07230203,0x00010000,0x0008000b,0x00000143,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000026,0x00000034,0x00060010,
0x00000004,0x00000011,0x00000040,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00050005,0x00000008,0x7074756f,0x6c507475,
0x00006e61,0x00050005,0x00000009,0x68737570,0x636f6c42,0x0000006b,0x00040006,0x00000009,
0x00000000,0x00006948,0x00040006,0x00000009,0x00000001,0x00006957,0x00040006,0x00000009,
0x00000002,0x00003048,0x00040006,0x00000009,0x00000003,0x00003057,0x00060006,0x00000009,
0x00000004,0x69727473,0x685f6564,0x00000000,0x00060006,0x00000009,0x00000005,0x69727473,
0x775f6564,0x00000000,0x00050006,0x00000009,0x00000006,0x5f646170,0x00000068,0x00050006,
0x00000009,0x00000007,0x5f646170,0x00000077,0x00040006,0x00000009,0x00000008,0x00006b48,
0x00040006,0x00000009,0x00000009,0x00006b57,0x00060006,0x00000009,0x0000000a,0x616c6964,
0x6e6f6974,0x0000685f,0x00060006,0x00000009,0x0000000b,0x616c6964,0x6e6f6974,0x0000775f,
0x00040006,0x00000009,0x0000000c,0x0000674b,0x00040006,0x00000009,0x0000000d,0x00006743,
0x00050006,0x00000009,0x0000000e,0x756f7267,0x00000070,0x00070006,0x00000009,0x0000000f,
0x6b486743,0x615f6b57,0x6e67696c,0x00006465,0x00070006,0x00000009,0x00000010,0x69746361,
0x69746176,0x79546e6f,0x00006570,0x00050006,0x00000009,0x00000011,0x63746162,0x00006968,
0x00050006,0x00000009,0x00000012,0x756e755f,0x00646573,0x00030005,0x0000000b,0x00000070,
0x00040005,0x00000014,0x6b576b48,0x00000000,0x00040005,0x0000001c,0x7274534b,0x00007069,
0x00040005,0x00000022,0x6e497768,0x00786564,0x00060005,0x00000026,0x575f6c67,0x476b726f,
0x70756f72,0x00004449,0x00040005,0x0000002e,0x646e496b,0x00007865,0x00040005,0x00000033,
0x61636f6c,0x00785f6c,0x00080005,0x00000034,0x4c5f6c67,0x6c61636f,0x6f766e49,0x69746163,
0x44496e6f,0x00000000,0x00050005,0x00000038,0x6f6c5f77,0x5f6c6163,0x00000078,0x00050005,
0x0000003d,0x6f6c5f77,0x5f6c6163,0x00000079,0x00050005,0x00000042,0x6c5f6e69,0x6c61636f,
0x0000785f,0x00040005,0x00000044,0x66666f77,0x00746573,0x00050005,0x0000004b,0x666f6e69,
0x74657366,0x00000000,0x00050005,0x0000005b,0x6f74756f,0x65736666,0x00000074,0x00030005,
0x00000069,0x006d7573,0x00040005,0x0000006b,0x75706e49,0x00003174,0x00060006,0x0000006b,
0x00000000,0x73616962,0x7461645f,0x00000061,0x00030005,0x0000006d,0x00000000,0x00030005,
0x00000072,0x00000069,0x00040005,0x0000007c,0x7274536b,0x00007069,0x00040005,0x00000086,
0x61687377,0x00006572,0x00040005,0x00000089,0x75706e49,0x00003274,0x00060006,0x00000089,
0x00000000,0x67696577,0x645f7468,0x00617461,0x00030005,0x0000008b,0x00000000,0x00030005,
0x00000093,0x0000006b,0x00030005,0x0000009b,0x00006b68,0x00030005,0x000000a0,0x00006b77,
0x00030005,0x000000a7,0x00006864,0x00030005,0x000000ad,0x00007764,0x00040005,0x000000b3,
0x30773068,0x00000000,0x00030005,0x000000b7,0x00003068,0x00030005,0x000000bc,0x00003077,
0x00030005,0x000000c3,0x00006968,0x00030005,0x000000cf,0x00006977,0x00040005,0x000000f0,
0x68736e69,0x00657261,0x00040005,0x000000f4,0x75706e49,0x00003074,0x00060006,0x000000f4,
0x00000000,0x67616d69,0x61645f65,0x00006174,0x00030005,0x000000f6,0x00000000,0x00030005,
0x0000010b,0x0000006a,0x00040005,0x0000013a,0x7074754f,0x00007475,0x00060006,0x0000013a,
0x00000000,0x7074756f,0x645f7475,0x00617461,0x00030005,0x0000013c,0x00000000,0x00050048,
0x00000009,0x00000000,0x00000023,0x00000000,0x00050048,0x00000009,0x00000001,0x00000023,
0x00000004,0x00050048,0x00000009,0x00000002,0x00000023,0x00000008,0x00050048,0x00000009,
0x00000003,0x00000023,0x0000000c,0x00050048,0x00000009,0x00000004,0x00000023,0x00000010,
0x00050048,0x00000009,0x00000005,0x00000023,0x00000014,0x00050048,0x00000009,0x00000006,
0x00000023,0x00000018,0x00050048,0x00000009,0x00000007,0x00000023,0x0000001c,0x00050048,
0x00000009,0x00000008,0x00000023,0x00000020,0x00050048,0x00000009,0x00000009,0x00000023,
0x00000024,0x00050048,0x00000009,0x0000000a,0x00000023,0x00000028,0x00050048,0x00000009,
0x0000000b,0x00000023,0x0000002c,0x00050048,0x00000009,0x0000000c,0x00000023,0x00000030,
0x00050048,0x00000009,0x0000000d,0x00000023,0x00000034,0x00050048,0x00000009,0x0000000e,
0x00000023,0x00000038,0x00050048,0x00000009,0x0000000f,0x00000023,0x0000003c,0x00050048,
0x00000009,0x00000010,0x00000023,0x00000040,0x00050048,0x00000009,0x00000011,0x00000023,
0x00000044,0x00050048,0x00000009,0x00000012,0x00000023,0x00000048,0x00030047,0x00000009,
0x00000002,0x00040047,0x0000000b,0x00000022,0x00000000,0x00040047,0x0000000b,0x00000021,
0x00000004,0x00040047,0x00000026,0x0000000b,0x0000001a,0x00040047,0x00000034,0x0000000b,
0x0000001b,0x00040047,0x0000006a,0x00000006,0x00000004,0x00040048,0x0000006b,0x00000000,
0x00000018,0x00050048,0x0000006b,0x00000000,0x00000023,0x00000000,0x00030047,0x0000006b,
0x00000003,0x00040047,0x0000006d,0x00000022,0x00000000,0x00040047,0x0000006d,0x00000021,
0x00000001,0x00040047,0x00000088,0x00000006,0x00000004,0x00040048,0x00000089,0x00000000,
0x00000018,0x00050048,0x00000089,0x00000000,0x00000023,0x00000000,0x00030047,0x00000089,
0x00000003,0x00040047,0x0000008b,0x00000022,0x00000000,0x00040047,0x0000008b,0x00000021,
0x00000002,0x00040047,0x000000f3,0x00000006,0x00000004,0x00040048,0x000000f4,0x00000000,
0x00000018,0x00050048,0x000000f4,0x00000000,0x00000023,0x00000000,0x00030047,0x000000f4,
0x00000003,0x00040047,0x000000f6,0x00000022,0x00000000,0x00040047,0x000000f6,0x00000021,
0x00000000,0x00040047,0x00000139,0x00000006,0x00000004,0x00040048,0x0000013a,0x00000000,
0x00000019,0x00050048,0x0000013a,0x00000000,0x00000023,0x00000000,0x00030047,0x0000013a,
0x00000003,0x00040047,0x0000013c,0x00000022,0x00000000,0x00040047,0x0000013c,0x00000021,
0x00000003,0x00040047,0x00000142,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,
0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,
0x00000007,0x00000006,0x0015001e,0x00000009,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00040020,
0x0000000a,0x00000002,0x00000009,0x0004003b,0x0000000a,0x0000000b,0x00000002,0x0004002b,
0x00000006,0x0000000c,0x00000002,0x00040020,0x0000000d,0x00000002,0x00000006,0x0004002b,
0x00000006,0x00000010,0x00000003,0x0004002b,0x00000006,0x00000015,0x00000008,0x0004002b,
0x00000006,0x00000018,0x00000009,0x0004002b,0x00000006,0x0000001d,0x0000000f,0x0004002b,
0x00000006,0x00000020,0x00000010,0x00040015,0x00000023,0x00000020,0x00000000,0x00040017,
0x00000024,0x00000023,0x00000003,0x00040020,0x00000025,0x00000001,0x00000024,0x0004003b,
0x00000025,0x00000026,0x00000001,0x0004002b,0x00000023,0x00000027,0x00000000,0x00040020,
0x00000028,0x00000001,0x00000023,0x0004002b,0x00000006,0x0000002c,0x00000040,0x0004002b,
0x00000023,0x0000002f,0x00000001,0x0004003b,0x00000025,0x00000034,0x00000001,0x0004002b,
0x00000006,0x0000004c,0x00000011,0x0004002b,0x00000006,0x0000004f,0x0000000e,0x0004002b,
0x00000006,0x00000053,0x00000000,0x0004002b,0x00000006,0x00000057,0x00000001,0x00030016,
0x00000067,0x00000020,0x00040020,0x00000068,0x00000007,0x00000067,0x0003001d,0x0000006a,
0x00000067,0x0003001e,0x0000006b,0x0000006a,0x00040020,0x0000006c,0x00000002,0x0000006b,
0x0004003b,0x0000006c,0x0000006d,0x00000002,0x00040020,0x0000006f,0x00000002,0x00000067,
0x00020014,0x0000007a,0x0004002b,0x00000023,0x00000083,0x00000010,0x0004001c,0x00000084,
0x00000067,0x00000083,0x00040020,0x00000085,0x00000004,0x00000084,0x0004003b,0x00000085,
0x00000086,0x00000004,0x0003001d,0x00000088,0x00000067,0x0003001e,0x00000089,0x00000088,
0x00040020,0x0000008a,0x00000002,0x00000089,0x0004003b,0x0000008a,0x0000008b,0x00000002,
0x00040020,0x00000091,0x00000004,0x00000067,0x0004002b,0x00000006,0x000000a9,0x0000000a,
0x0004002b,0x00000006,0x000000af,0x0000000b,0x0004002b,0x00000006,0x000000c5,0x00000004,
0x0004002b,0x00000006,0x000000cb,0x00000006,0x0004002b,0x00000006,0x000000d1,0x00000005,
0x0004002b,0x00000006,0x000000d7,0x00000007,0x0004002b,0x00000023,0x000000ec,0x00000040,
0x0004001c,0x000000ed,0x00000067,0x000000ec,0x0004001c,0x000000ee,0x000000ed,0x00000083,
0x00040020,0x000000ef,0x00000004,0x000000ee,0x0004003b,0x000000ef,0x000000f0,0x00000004,
0x0003001d,0x000000f3,0x00000067,0x0003001e,0x000000f4,0x000000f3,0x00040020,0x000000f5,
0x00000002,0x000000f4,0x0004003b,0x000000f5,0x000000f6,0x00000002,0x0004002b,0x00000067,
0x00000105,0x00000000,0x0004002b,0x00000023,0x00000109,0x00000002,0x0004002b,0x00000023,
0x0000010a,0x00000108,0x0004002b,0x00000067,0x0000012f,0x40c00000,0x0003001d,0x00000139,
0x00000067,0x0003001e,0x0000013a,0x00000139,0x00040020,0x0000013b,0x00000002,0x0000013a,
0x0004003b,0x0000013b,0x0000013c,0x00000002,0x0006002c,0x00000024,0x00000142,0x000000ec,
0x0000002f,0x0000002f,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,
0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,0x0004003b,0x00000007,0x00000014,
0x00000007,0x0004003b,0x00000007,0x0000001c,0x00000007,0x0004003b,0x00000007,0x00000022,
0x00000007,0x0004003b,0x00000007,0x0000002e,0x00000007,0x0004003b,0x00000007,0x00000033,
0x00000007,0x0004003b,0x00000007,0x00000038,0x00000007,0x0004003b,0x00000007,0x0000003d,
0x00000007,0x0004003b,0x00000007,0x00000042,0x00000007,0x0004003b,0x00000007,0x00000044,
0x00000007,0x0004003b,0x00000007,0x0000004b,0x00000007,0x0004003b,0x00000007,0x0000005b,
0x00000007,0x0004003b,0x00000068,0x00000069,0x00000007,0x0004003b,0x00000007,0x00000072,
0x00000007,0x0004003b,0x00000007,0x0000007c,0x00000007,0x0004003b,0x00000007,0x00000093,
0x00000007,0x0004003b,0x00000007,0x0000009b,0x00000007,0x0004003b,0x00000007,0x000000a0,
0x00000007,0x0004003b,0x00000007,0x000000a7,0x00000007,0x0004003b,0x00000007,0x000000ad,
0x00000007,0x0004003b,0x00000007,0x000000b3,0x00000007,0x0004003b,0x00000007,0x000000b7,
0x00000007,0x0004003b,0x00000007,0x000000bc,0x00000007,0x0004003b,0x00000007,0x000000c3,
0x00000007,0x0004003b,0x00000007,0x000000cf,0x00000007,0x0004003b,0x00000007,0x0000010b,
0x00000007,0x00050041,0x0000000d,0x0000000e,0x0000000b,0x0000000c,0x0004003d,0x00000006,
0x0000000f,0x0000000e,0x00050041,0x0000000d,0x00000011,0x0000000b,0x00000010,0x0004003d,
0x00000006,0x00000012,0x00000011,0x00050084,0x00000006,0x00000013,0x0000000f,0x00000012,
0x0003003e,0x00000008,0x00000013,0x00050041,0x0000000d,0x00000016,0x0000000b,0x00000015,
0x0004003d,0x00000006,0x00000017,0x00000016,0x00050041,0x0000000d,0x00000019,0x0000000b,
0x00000018,0x0004003d,0x00000006,0x0000001a,0x00000019,0x00050084,0x00000006,0x0000001b,
0x00000017,0x0000001a,0x0003003e,0x00000014,0x0000001b,0x00050041,0x0000000d,0x0000001e,
0x0000000b,0x0000001d,0x0004003d,0x00000006,0x0000001f,0x0000001e,0x00050087,0x00000006,
0x00000021,0x0000001f,0x00000020,0x0003003e,0x0000001c,0x00000021,0x00050041,0x00000028,
0x00000029,0x00000026,0x00000027,0x0004003d,0x00000023,0x0000002a,0x00000029,0x0004007c,
0x00000006,0x0000002b,0x0000002a,0x00050084,0x00000006,0x0000002d,0x0000002b,0x0000002c,
0x0003003e,0x00000022,0x0000002d,0x00050041,0x00000028,0x00000030,0x00000026,0x0000002f,
0x0004003d,0x00000023,0x00000031,0x00000030,0x0004007c,0x00000006,0x00000032,0x00000031,
0x0003003e,0x0000002e,0x00000032,0x00050041,0x00000028,0x00000035,0x00000034,0x00000027,
0x0004003d,0x00000023,0x00000036,0x00000035,0x0004007c,0x00000006,0x00000037,0x00000036,
0x0003003e,0x00000033,0x00000037,0x00050041,0x00000028,0x00000039,0x00000034,0x00000027,
0x0004003d,0x00000023,0x0000003a,0x00000039,0x0004007c,0x00000006,0x0000003b,0x0000003a,
0x0005008b,0x00000006,0x0000003c,0x0000003b,0x00000020,0x0003003e,0x00000038,0x0000003c,
0x00050041,0x00000028,0x0000003e,0x00000034,0x00000027,0x0004003d,0x00000023,0x0000003f,
0x0000003e,0x0004007c,0x00000006,0x00000040,0x0000003f,0x00050087,0x00000006,0x00000041,
0x00000040,0x00000020,0x0003003e,0x0000003d,0x00000041,0x0004003d,0x00000006,0x00000043,
0x00000033,0x0003003e,0x00000042,0x00000043,0x0004003d,0x00000006,0x00000045,0x0000002e,
0x00050041,0x0000000d,0x00000046,0x0000000b,0x0000001d,0x0004003d,0x00000006,0x00000047,
0x00000046,0x00050084,0x00000006,0x00000048,0x00000045,0x00000047,0x0004003d,0x00000006,
0x00000049,0x00000038,0x00050080,0x00000006,0x0000004a,0x00000048,0x00000049,0x0003003e,
0x00000044,0x0000004a,0x00050041,0x0000000d,0x0000004d,0x0000000b,0x0000004c,0x0004003d,
0x00000006,0x0000004e,0x0000004d,0x00050041,0x0000000d,0x00000050,0x0000000b,0x0000004f,
0x0004003d,0x00000006,0x00000051,0x00000050,0x00050084,0x00000006,0x00000052,0x0000004e,
0x00000051,0x00050041,0x0000000d,0x00000054,0x0000000b,0x00000053,0x0004003d,0x00000006,
0x00000055,0x00000054,0x00050084,0x00000006,0x00000056,0x00000052,0x00000055,0x00050041,
0x0000000d,0x00000058,0x0000000b,0x00000057,0x0004003d,0x00000006,0x00000059,0x00000058,
0x00050084,0x00000006,0x0000005a,0x00000056,0x00000059,0x0003003e,0x0000004b,0x0000005a,
0x00050041,0x0000000d,0x0000005c,0x0000000b,0x0000004c,0x0004003d,0x00000006,0x0000005d,
0x0000005c,0x00050041,0x0000000d,0x0000005e,0x0000000b,0x0000004f,0x0004003d,0x00000006,
0x0000005f,0x0000005e,0x00050084,0x00000006,0x00000060,0x0000005d,0x0000005f,0x00050041,
0x0000000d,0x00000061,0x0000000b,0x0000000c,0x0004003d,0x00000006,0x00000062,0x00000061,
0x00050084,0x00000006,0x00000063,0x00000060,0x00000062,0x00050041,0x0000000d,0x00000064,
0x0000000b,0x00000010,0x0004003d,0x00000006,0x00000065,0x00000064,0x00050084,0x00000006,
0x00000066,0x00000063,0x00000065,0x0003003e,0x0000005b,0x00000066,0x0004003d,0x00000006,
0x0000006e,0x0000002e,0x00060041,0x0000006f,0x00000070,0x0000006d,0x00000053,0x0000006e,
0x0004003d,0x00000067,0x00000071,0x00000070,0x0003003e,0x00000069,0x00000071,0x0003003e,
0x00000072,0x00000053,0x000200f9,0x00000073,0x000200f8,0x00000073,0x000400f6,0x00000075,
0x00000076,0x00000000,0x000200f9,0x00000077,0x000200f8,0x00000077,0x0004003d,0x00000006,
0x00000078,0x00000072,0x0004003d,0x00000006,0x00000079,0x0000001c,0x000500b1,0x0000007a,
0x0000007b,0x00000078,0x00000079,0x000400fa,0x0000007b,0x00000074,0x00000075,0x000200f8,
0x00000074,0x0004003d,0x00000006,0x0000007d,0x00000072,0x00050084,0x00000006,0x0000007e,
0x0000007d,0x00000020,0x0003003e,0x0000007c,0x0000007e,0x0004003d,0x00000006,0x0000007f,
0x0000003d,0x000500aa,0x0000007a,0x00000080,0x0000007f,0x00000053,0x000300f7,0x00000082,
0x00000000,0x000400fa,0x00000080,0x00000081,0x00000082,0x000200f8,0x00000081,0x0004003d,
0x00000006,0x00000087,0x00000038,0x0004003d,0x00000006,0x0000008c,0x00000044,0x0004003d,
0x00000006,0x0000008d,0x0000007c,0x00050080,0x00000006,0x0000008e,0x0000008c,0x0000008d,
0x00060041,0x0000006f,0x0000008f,0x0000008b,0x00000053,0x0000008e,0x0004003d,0x00000067,
0x00000090,0x0000008f,0x00050041,0x00000091,0x00000092,0x00000086,0x00000087,0x0003003e,
0x00000092,0x00000090,0x000200f9,0x00000082,0x000200f8,0x00000082,0x0003003e,0x00000093,
0x00000053,0x000200f9,0x00000094,0x000200f8,0x00000094,0x000400f6,0x00000096,0x00000097,
0x00000000,0x000200f9,0x00000098,0x000200f8,0x00000098,0x0004003d,0x00000006,0x00000099,
0x00000093,0x000500b1,0x0000007a,0x0000009a,0x00000099,0x00000020,0x000400fa,0x0000009a,
0x00000095,0x00000096,0x000200f8,0x00000095,0x0004003d,0x00000006,0x0000009c,0x00000093,
0x00050041,0x0000000d,0x0000009d,0x0000000b,0x00000018,0x0004003d,0x00000006,0x0000009e,
0x0000009d,0x00050087,0x00000006,0x0000009f,0x0000009c,0x0000009e,0x0003003e,0x0000009b,
0x0000009f,0x0004003d,0x00000006,0x000000a1,0x00000093,0x0004003d,0x00000006,0x000000a2,
0x0000009b,0x00050041,0x0000000d,0x000000a3,0x0000000b,0x00000018,0x0004003d,0x00000006,
0x000000a4,0x000000a3,0x00050084,0x00000006,0x000000a5,0x000000a2,0x000000a4,0x00050082,
0x00000006,0x000000a6,0x000000a1,0x000000a5,0x0003003e,0x000000a0,0x000000a6,0x0004003d,
0x00000006,0x000000a8,0x0000009b,0x00050041,0x0000000d,0x000000aa,0x0000000b,0x000000a9,
0x0004003d,0x00000006,0x000000ab,0x000000aa,0x00050084,0x00000006,0x000000ac,0x000000a8,
0x000000ab,0x0003003e,0x000000a7,0x000000ac,0x0004003d,0x00000006,0x000000ae,0x000000a0,
0x00050041,0x0000000d,0x000000b0,0x0000000b,0x000000af,0x0004003d,0x00000006,0x000000b1,
0x000000b0,0x00050084,0x00000006,0x000000b2,0x000000ae,0x000000b1,0x0003003e,0x000000ad,
0x000000b2,0x0004003d,0x00000006,0x000000b4,0x00000042,0x0004003d,0x00000006,0x000000b5,
0x00000022,0x00050080,0x00000006,0x000000b6,0x000000b4,0x000000b5,0x0003003e,0x000000b3,
0x000000b6,0x0004003d,0x00000006,0x000000b8,0x000000b3,0x00050041,0x0000000d,0x000000b9,
0x0000000b,0x00000010,0x0004003d,0x00000006,0x000000ba,0x000000b9,0x00050087,0x00000006,
0x000000bb,0x000000b8,0x000000ba,0x0003003e,0x000000b7,0x000000bb,0x0004003d,0x00000006,
0x000000bd,0x000000b3,0x0004003d,0x00000006,0x000000be,0x000000b7,0x00050041,0x0000000d,
0x000000bf,0x0000000b,0x00000010,0x0004003d,0x00000006,0x000000c0,0x000000bf,0x00050084,
0x00000006,0x000000c1,0x000000be,0x000000c0,0x00050082,0x00000006,0x000000c2,0x000000bd,
0x000000c1,0x0003003e,0x000000bc,0x000000c2,0x0004003d,0x00000006,0x000000c4,0x000000b7,
0x00050041,0x0000000d,0x000000c6,0x0000000b,0x000000c5,0x0004003d,0x00000006,0x000000c7,
0x000000c6,0x00050084,0x00000006,0x000000c8,0x000000c4,0x000000c7,0x0004003d,0x00000006,
0x000000c9,0x000000a7,0x00050080,0x00000006,0x000000ca,0x000000c8,0x000000c9,0x00050041,
0x0000000d,0x000000cc,0x0000000b,0x000000cb,0x0004003d,0x00000006,0x000000cd,0x000000cc,
0x00050082,0x00000006,0x000000ce,0x000000ca,0x000000cd,0x0003003e,0x000000c3,0x000000ce,
0x0004003d,0x00000006,0x000000d0,0x000000bc,0x00050041,0x0000000d,0x000000d2,0x0000000b,
0x000000d1,0x0004003d,0x00000006,0x000000d3,0x000000d2,0x00050084,0x00000006,0x000000d4,
0x000000d0,0x000000d3,0x0004003d,0x00000006,0x000000d5,0x000000ad,0x00050080,0x00000006,
0x000000d6,0x000000d4,0x000000d5,0x00050041,0x0000000d,0x000000d8,0x0000000b,0x000000d7,
0x0004003d,0x00000006,0x000000d9,0x000000d8,0x00050082,0x00000006,0x000000da,0x000000d6,
0x000000d9,0x0003003e,0x000000cf,0x000000da,0x0004003d,0x00000006,0x000000db,0x000000c3,
0x0004007c,0x00000023,0x000000dc,0x000000db,0x00050041,0x0000000d,0x000000dd,0x0000000b,
0x00000053,0x0004003d,0x00000006,0x000000de,0x000000dd,0x0004007c,0x00000023,0x000000df,
0x000000de,0x000500b0,0x0000007a,0x000000e0,0x000000dc,0x000000df,0x000300f7,0x000000e2,
0x00000000,0x000400fa,0x000000e0,0x000000e1,0x000000e2,0x000200f8,0x000000e1,0x0004003d,
0x00000006,0x000000e3,0x000000cf,0x0004007c,0x00000023,0x000000e4,0x000000e3,0x00050041,
0x0000000d,0x000000e5,0x0000000b,0x00000057,0x0004003d,0x00000006,0x000000e6,0x000000e5,
0x0004007c,0x00000023,0x000000e7,0x000000e6,0x000500b0,0x0000007a,0x000000e8,0x000000e4,
0x000000e7,0x000200f9,0x000000e2,0x000200f8,0x000000e2,0x000700f5,0x0000007a,0x000000e9,
0x000000e0,0x00000095,0x000000e8,0x000000e1,0x000300f7,0x000000eb,0x00000000,0x000400fa,
0x000000e9,0x000000ea,0x00000102,0x000200f8,0x000000ea,0x0004003d,0x00000006,0x000000f1,
0x00000093,0x0004003d,0x00000006,0x000000f2,0x00000042,0x0004003d,0x00000006,0x000000f7,
0x0000004b,0x0004003d,0x00000006,0x000000f8,0x000000c3,0x00050041,0x0000000d,0x000000f9,
0x0000000b,0x00000057,0x0004003d,0x00000006,0x000000fa,0x000000f9,0x00050084,0x00000006,
0x000000fb,0x000000f8,0x000000fa,0x00050080,0x00000006,0x000000fc,0x000000f7,0x000000fb,
0x0004003d,0x00000006,0x000000fd,0x000000cf,0x00050080,0x00000006,0x000000fe,0x000000fc,
0x000000fd,0x00060041,0x0000006f,0x000000ff,0x000000f6,0x00000053,0x000000fe,0x0004003d,
0x00000067,0x00000100,0x000000ff,0x00060041,0x00000091,0x00000101,0x000000f0,0x000000f1,
0x000000f2,0x0003003e,0x00000101,0x00000100,0x000200f9,0x000000eb,0x000200f8,0x00000102,
0x0004003d,0x00000006,0x00000103,0x00000093,0x0004003d,0x00000006,0x00000104,0x00000042,
0x00060041,0x00000091,0x00000106,0x000000f0,0x00000103,0x00000104,0x0003003e,0x00000106,
0x00000105,0x000200f9,0x000000eb,0x000200f8,0x000000eb,0x000200f9,0x00000097,0x000200f8,
0x00000097,0x0004003d,0x00000006,0x00000107,0x00000093,0x00050080,0x00000006,0x00000108,
0x00000107,0x00000057,0x0003003e,0x00000093,0x00000108,0x000200f9,0x00000094,0x000200f8,
0x00000096,0x000400e0,0x00000109,0x00000109,0x0000010a,0x0003003e,0x0000010b,0x00000053,
0x000200f9,0x0000010c,0x000200f8,0x0000010c,0x000400f6,0x0000010e,0x0000010f,0x00000000,
0x000200f9,0x00000110,0x000200f8,0x00000110,0x0004003d,0x00000006,0x00000111,0x0000010b,
0x000500b1,0x0000007a,0x00000112,0x00000111,0x00000020,0x000400fa,0x00000112,0x0000010d,
0x0000010e,0x000200f8,0x0000010d,0x0004003d,0x00000006,0x00000113,0x0000010b,0x00050041,
0x00000091,0x00000114,0x00000086,0x00000113,0x0004003d,0x00000067,0x00000115,0x00000114,
0x0004003d,0x00000006,0x00000116,0x0000010b,0x0004003d,0x00000006,0x00000117,0x00000042,
0x00060041,0x00000091,0x00000118,0x000000f0,0x00000116,0x00000117,0x0004003d,0x00000067,
0x00000119,0x00000118,0x00050085,0x00000067,0x0000011a,0x00000115,0x00000119,0x0004003d,
0x00000067,0x0000011b,0x00000069,0x00050081,0x00000067,0x0000011c,0x0000011b,0x0000011a,
0x0003003e,0x00000069,0x0000011c,0x000200f9,0x0000010f,0x000200f8,0x0000010f,0x0004003d,
0x00000006,0x0000011d,0x0000010b,0x00050080,0x00000006,0x0000011e,0x0000011d,0x00000057,
0x0003003e,0x0000010b,0x0000011e,0x000200f9,0x0000010c,0x000200f8,0x0000010e,0x000400e0,
0x00000109,0x00000109,0x0000010a,0x000200f9,0x00000076,0x000200f8,0x00000076,0x0004003d,
0x00000006,0x0000011f,0x00000072,0x00050080,0x00000006,0x00000120,0x0000011f,0x00000057,
0x0003003e,0x00000072,0x00000120,0x000200f9,0x00000073,0x000200f8,0x00000075,0x00050041,
0x0000000d,0x00000121,0x0000000b,0x00000020,0x0004003d,0x00000006,0x00000122,0x00000121,
0x000500aa,0x0000007a,0x00000123,0x00000122,0x00000057,0x000300f7,0x00000125,0x00000000,
0x000400fa,0x00000123,0x00000124,0x00000128,0x000200f8,0x00000124,0x0004003d,0x00000067,
0x00000126,0x00000069,0x0007000c,0x00000067,0x00000127,0x00000001,0x00000028,0x00000126,
0x00000105,0x0003003e,0x00000069,0x00000127,0x000200f9,0x00000125,0x000200f8,0x00000128,
0x00050041,0x0000000d,0x00000129,0x0000000b,0x00000020,0x0004003d,0x00000006,0x0000012a,
0x00000129,0x000500aa,0x0000007a,0x0000012b,0x0000012a,0x0000000c,0x000300f7,0x0000012d,
0x00000000,0x000400fa,0x0000012b,0x0000012c,0x0000012d,0x000200f8,0x0000012c,0x0004003d,
0x00000067,0x0000012e,0x00000069,0x0008000c,0x00000067,0x00000130,0x00000001,0x0000002b,
0x0000012e,0x00000105,0x0000012f,0x0003003e,0x00000069,0x00000130,0x000200f9,0x0000012d,
0x000200f8,0x0000012d,0x000200f9,0x00000125,0x000200f8,0x00000125,0x0004003d,0x00000006,
0x00000131,0x00000042,0x0004003d,0x00000006,0x00000132,0x00000022,0x00050080,0x00000006,
0x00000133,0x00000132,0x00000131,0x0003003e,0x00000022,0x00000133,0x0004003d,0x00000006,
0x00000134,0x00000022,0x0004003d,0x00000006,0x00000135,0x00000008,0x000500b1,0x0000007a,
0x00000136,0x00000134,0x00000135,0x000300f7,0x00000138,0x00000000,0x000400fa,0x00000136,
0x00000137,0x00000138,0x000200f8,0x00000137,0x0004003d,0x00000006,0x0000013d,0x0000005b,
0x0004003d,0x00000006,0x0000013e,0x00000022,0x00050080,0x00000006,0x0000013f,0x0000013d,
0x0000013e,0x0004003d,0x00000067,0x00000140,0x00000069,0x00060041,0x0000006f,0x00000141,
0x0000013c,0x00000053,0x0000013f,0x0003003e,0x00000141,0x00000140,0x000200f9,0x00000138,
0x000200f8,0x00000138,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -0,0 +1,188 @@
#version 450
#define KSTRIP_LEN 32
#define BLOCK_SIZE 64 // the output channel shoule be aligned to 64.
#define WARP 32
#define INNER_THREAD 16 // inner thread
#define ALL_THREAD 256
#define A_INSTRIP 8
#define A_STRIP 8 // (BLOCK_SIZE/A_INSTRIP)
#define B_INSTRIP 4 // (ALL_THREAD/BLOCK_SIZE)
#define B_STRIP 8 // (KSTRIP_LEN/B_INSTRIP)
#define PER_THREAD (BLOCK_SIZE/INNER_THREAD)
layout(binding = 0) readonly buffer Input0{
float image_data[];
};
layout(binding = 1) readonly buffer Input1 {
float bias_data[];
};
layout(binding = 2) readonly buffer Input2{
float weight_data[];
};
layout(binding = 3) writeonly buffer Output{
float output_data[];
};
layout(binding = 4) uniform pushBlock {
int Hi; // H in
int Wi; // W in
int H0; // H out
int W0; // W out
int stride_h;
int stride_w;
int pad_h;
int pad_w;
int Hk;
int Wk;
int dilation_h;
int dilation_w;
int Kg;
int Cg;
int group;
int CgHkWk_aligned;
int activationType; // 0 : no activation, 1: ReLU, 2: ReLU6.
int batchi; // batch index
int groupi; // group index
} p;
shared float wshare[KSTRIP_LEN][BLOCK_SIZE]; // 2 KB
shared float inshare[BLOCK_SIZE][KSTRIP_LEN]; // 2 KB
layout(local_size_x = ALL_THREAD, local_size_y = 1, local_size_z = 1) in;
void main()
{
int M = p.Kg; // output channel
int K = p.CgHkWk_aligned; // Hk * Wk * G // aligned to KSTRIP_LEN
int N = p.H0 * p.W0; // H0 * W0
int mIndex = int(gl_WorkGroupID.x) * BLOCK_SIZE;
int nIndex = int(gl_WorkGroupID.y) * BLOCK_SIZE;
int local_x = int(gl_LocalInvocationID.x) % 16; // 0~7
int local_y = int(gl_LocalInvocationID.x) / 16; // 0~31
int w_local_x = int(gl_LocalInvocationID.x) % KSTRIP_LEN; // 256 / 32 = 8
int w_local_y = int(gl_LocalInvocationID.x) / KSTRIP_LEN;
int in_local_x = int(gl_LocalInvocationID.x) % BLOCK_SIZE; // 256 / 64 = 4
int in_local_y = int(gl_LocalInvocationID.x) / BLOCK_SIZE;
int woffset = p.groupi * p.Kg * K + K * mIndex + w_local_y * K + w_local_x;
int inoffset = (p.batchi * p.group + p.groupi) * p.Hi*p.Wi*p.Cg;
int outoffset = (p.batchi * p.group + p.groupi) * p.H0*p.W0*p.Kg;
int biasoffset = p.groupi * p.Kg + mIndex + local_x * PER_THREAD;
vec4 sum[PER_THREAD];
{
for (int i = 0; i < PER_THREAD; i++)
{
sum[i] = vec4(bias_data[biasoffset + i]);
}
}
float regA[PER_THREAD];
float regB[PER_THREAD];
int KStrip = K / KSTRIP_LEN;
int KRemain = K - KStrip * KSTRIP_LEN; // NOTE: this value shoule be always 0.
for (int i = 0; i < KStrip; i++)
{
int k = i * KSTRIP_LEN;
// load Weight to local memory.
for (int s = 0; s < A_STRIP; s++)
{
wshare[w_local_x][s * A_INSTRIP + w_local_y] = weight_data[woffset + s * A_INSTRIP * K + k];
}
// load Input to local memory
for (int s = 0; s < B_STRIP; s++)
{
int kk = in_local_y + s * B_INSTRIP + k;
int HkWk = p.Hk * p.Wk;
int cg = kk/HkWk;
int hkwk = kk - cg * HkWk;
int hk = hkwk / p.Wk;
int wk = hkwk - hk * p.Wk;
int dh = hk * p.dilation_h, dw = wk * p.dilation_w;
int h0w0 = in_local_x + nIndex;
int h0 = h0w0 / p.W0;
int w0 = h0w0 - h0 * p.W0;
int hi = h0 * p.stride_h + dh - p.pad_h;
int wi = w0 * p.stride_w + dw - p.pad_w;
if (cg < p.Cg && uint(hi) < uint(p.Hi) && uint(wi) < uint(p.Wi))
inshare[in_local_x][s * B_INSTRIP + in_local_y] = image_data[inoffset + cg * p.Hi * p.Wi + hi * p.Wi + wi];
else
inshare[in_local_x][s * B_INSTRIP + in_local_y] = 0.f;
}
barrier();
for (int j = 0; j < KSTRIP_LEN; j++)
{
// Load shared memory to register.
for (int m = 0; m < 4; m++)
{
regA[m] = wshare[j][local_x*4 + m];
}
for (int m = 0; m < 4; m++)
{
regB[m] = inshare[local_y + 16 * m][j];
}
for (int m = 0; m < 4; m++)
{
for (int n = 0; n < 4; n++)
{
sum[m][n] += regA[m] * regB[n];
}
}
}
barrier();
}
if (p.activationType == 1) // ReLU
{
sum[0] = max(sum[0], vec4(0));
sum[1] = max(sum[1], vec4(0));
sum[2] = max(sum[2], vec4(0));
sum[3] = max(sum[3], vec4(0));
}
else if (p.activationType == 2) // ReLU6
{
sum[0] = clamp(sum[0], vec4(0), vec4(6));
sum[1] = clamp(sum[1], vec4(0), vec4(6));
sum[2] = clamp(sum[2], vec4(0), vec4(6));
sum[3] = clamp(sum[3], vec4(0), vec4(6));
}
for (int n = 0; n < PER_THREAD; n++)
{
int nIndex2 = nIndex + n * INNER_THREAD + local_y;
if (nIndex2 < N)
{
for (int m = 0; m < PER_THREAD; m++)
{
int mIndex2 = mIndex + local_x * PER_THREAD + m;
if (mIndex2 < M)
{
output_data[outoffset + mIndex2 * N + nIndex2] = sum[m][n];
}
}
}
}
}

View File

@ -0,0 +1,458 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int conv_implicit_gemm_spv[3565] = {
0x07230203,0x00010000,0x0008000b,0x00000257,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000020,0x0000002f,0x00060010,
0x00000004,0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x0000004d,0x00050005,
0x00000009,0x68737570,0x636f6c42,0x0000006b,0x00040006,0x00000009,0x00000000,0x00006948,
0x00040006,0x00000009,0x00000001,0x00006957,0x00040006,0x00000009,0x00000002,0x00003048,
0x00040006,0x00000009,0x00000003,0x00003057,0x00060006,0x00000009,0x00000004,0x69727473,
0x685f6564,0x00000000,0x00060006,0x00000009,0x00000005,0x69727473,0x775f6564,0x00000000,
0x00050006,0x00000009,0x00000006,0x5f646170,0x00000068,0x00050006,0x00000009,0x00000007,
0x5f646170,0x00000077,0x00040006,0x00000009,0x00000008,0x00006b48,0x00040006,0x00000009,
0x00000009,0x00006b57,0x00060006,0x00000009,0x0000000a,0x616c6964,0x6e6f6974,0x0000685f,
0x00060006,0x00000009,0x0000000b,0x616c6964,0x6e6f6974,0x0000775f,0x00040006,0x00000009,
0x0000000c,0x0000674b,0x00040006,0x00000009,0x0000000d,0x00006743,0x00050006,0x00000009,
0x0000000e,0x756f7267,0x00000070,0x00070006,0x00000009,0x0000000f,0x6b486743,0x615f6b57,
0x6e67696c,0x00006465,0x00070006,0x00000009,0x00000010,0x69746361,0x69746176,0x79546e6f,
0x00006570,0x00050006,0x00000009,0x00000011,0x63746162,0x00006968,0x00050006,0x00000009,
0x00000012,0x756f7267,0x00006970,0x00030005,0x0000000b,0x00000070,0x00030005,0x00000010,
0x0000004b,0x00030005,0x00000014,0x0000004e,0x00040005,0x0000001c,0x646e496d,0x00007865,
0x00060005,0x00000020,0x575f6c67,0x476b726f,0x70756f72,0x00004449,0x00040005,0x00000028,
0x646e496e,0x00007865,0x00040005,0x0000002e,0x61636f6c,0x00785f6c,0x00080005,0x0000002f,
0x4c5f6c67,0x6c61636f,0x6f766e49,0x69746163,0x44496e6f,0x00000000,0x00040005,0x00000035,
0x61636f6c,0x00795f6c,0x00050005,0x0000003a,0x6f6c5f77,0x5f6c6163,0x00000078,0x00050005,
0x00000040,0x6f6c5f77,0x5f6c6163,0x00000079,0x00050005,0x00000045,0x6c5f6e69,0x6c61636f,
0x0000785f,0x00050005,0x0000004a,0x6c5f6e69,0x6c61636f,0x0000795f,0x00040005,0x0000004f,
0x66666f77,0x00746573,0x00050005,0x00000062,0x666f6e69,0x74657366,0x00000000,0x00050005,
0x00000079,0x6f74756f,0x65736666,0x00000074,0x00050005,0x0000008b,0x73616962,0x7366666f,
0x00007465,0x00030005,0x00000097,0x00000069,0x00030005,0x000000a5,0x006d7573,0x00040005,
0x000000a8,0x75706e49,0x00003174,0x00060006,0x000000a8,0x00000000,0x73616962,0x7461645f,
0x00000061,0x00030005,0x000000aa,0x00000000,0x00040005,0x000000b6,0x7274534b,0x00007069,
0x00040005,0x000000b9,0x6d65524b,0x006e6961,0x00030005,0x000000be,0x00000069,0x00030005,
0x000000c7,0x0000006b,0x00030005,0x000000ca,0x00000073,0x00040005,0x000000d8,0x61687377,
0x00006572,0x00040005,0x000000df,0x75706e49,0x00003274,0x00060006,0x000000df,0x00000000,
0x67696577,0x645f7468,0x00617461,0x00030005,0x000000e1,0x00000000,0x00030005,0x000000f0,
0x00000073,0x00030005,0x000000f8,0x00006b6b,0x00040005,0x000000ff,0x6b576b48,0x00000000,
0x00030005,0x00000106,0x00006763,0x00040005,0x0000010a,0x6b776b68,0x00000000,0x00030005,
0x00000110,0x00006b68,0x00030005,0x00000115,0x00006b77,0x00030005,0x0000011c,0x00006864,
0x00030005,0x00000122,0x00007764,0x00040005,0x00000128,0x30773068,0x00000000,0x00030005,
0x0000012c,0x00003068,0x00030005,0x00000131,0x00003077,0x00030005,0x00000138,0x00006968,
0x00030005,0x00000143,0x00006977,0x00040005,0x0000016a,0x68736e69,0x00657261,0x00040005,
0x00000171,0x75706e49,0x00003074,0x00060006,0x00000171,0x00000000,0x67616d69,0x61645f65,
0x00006174,0x00030005,0x00000173,0x00000000,0x00030005,0x00000193,0x0000006a,0x00030005,
0x0000019b,0x0000006d,0x00040005,0x000001a5,0x41676572,0x00000000,0x00030005,0x000001b2,
0x0000006d,0x00040005,0x000001ba,0x42676572,0x00000000,0x00030005,0x000001c6,0x0000006d,
0x00030005,0x000001ce,0x0000006e,0x00030005,0x00000219,0x0000006e,0x00040005,0x00000221,
0x646e496e,0x00327865,0x00030005,0x0000022d,0x0000006d,0x00040005,0x00000235,0x646e496d,
0x00327865,0x00040005,0x00000242,0x7074754f,0x00007475,0x00060006,0x00000242,0x00000000,
0x7074756f,0x645f7475,0x00617461,0x00030005,0x00000244,0x00000000,0x00050048,0x00000009,
0x00000000,0x00000023,0x00000000,0x00050048,0x00000009,0x00000001,0x00000023,0x00000004,
0x00050048,0x00000009,0x00000002,0x00000023,0x00000008,0x00050048,0x00000009,0x00000003,
0x00000023,0x0000000c,0x00050048,0x00000009,0x00000004,0x00000023,0x00000010,0x00050048,
0x00000009,0x00000005,0x00000023,0x00000014,0x00050048,0x00000009,0x00000006,0x00000023,
0x00000018,0x00050048,0x00000009,0x00000007,0x00000023,0x0000001c,0x00050048,0x00000009,
0x00000008,0x00000023,0x00000020,0x00050048,0x00000009,0x00000009,0x00000023,0x00000024,
0x00050048,0x00000009,0x0000000a,0x00000023,0x00000028,0x00050048,0x00000009,0x0000000b,
0x00000023,0x0000002c,0x00050048,0x00000009,0x0000000c,0x00000023,0x00000030,0x00050048,
0x00000009,0x0000000d,0x00000023,0x00000034,0x00050048,0x00000009,0x0000000e,0x00000023,
0x00000038,0x00050048,0x00000009,0x0000000f,0x00000023,0x0000003c,0x00050048,0x00000009,
0x00000010,0x00000023,0x00000040,0x00050048,0x00000009,0x00000011,0x00000023,0x00000044,
0x00050048,0x00000009,0x00000012,0x00000023,0x00000048,0x00030047,0x00000009,0x00000002,
0x00040047,0x0000000b,0x00000022,0x00000000,0x00040047,0x0000000b,0x00000021,0x00000004,
0x00040047,0x00000020,0x0000000b,0x0000001a,0x00040047,0x0000002f,0x0000000b,0x0000001b,
0x00040047,0x000000a7,0x00000006,0x00000004,0x00040048,0x000000a8,0x00000000,0x00000018,
0x00050048,0x000000a8,0x00000000,0x00000023,0x00000000,0x00030047,0x000000a8,0x00000003,
0x00040047,0x000000aa,0x00000022,0x00000000,0x00040047,0x000000aa,0x00000021,0x00000001,
0x00040047,0x000000de,0x00000006,0x00000004,0x00040048,0x000000df,0x00000000,0x00000018,
0x00050048,0x000000df,0x00000000,0x00000023,0x00000000,0x00030047,0x000000df,0x00000003,
0x00040047,0x000000e1,0x00000022,0x00000000,0x00040047,0x000000e1,0x00000021,0x00000002,
0x00040047,0x00000170,0x00000006,0x00000004,0x00040048,0x00000171,0x00000000,0x00000018,
0x00050048,0x00000171,0x00000000,0x00000023,0x00000000,0x00030047,0x00000171,0x00000003,
0x00040047,0x00000173,0x00000022,0x00000000,0x00040047,0x00000173,0x00000021,0x00000000,
0x00040047,0x00000241,0x00000006,0x00000004,0x00040048,0x00000242,0x00000000,0x00000019,
0x00050048,0x00000242,0x00000000,0x00000023,0x00000000,0x00030047,0x00000242,0x00000003,
0x00040047,0x00000244,0x00000022,0x00000000,0x00040047,0x00000244,0x00000021,0x00000003,
0x00040047,0x00000256,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,0x00000003,
0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,
0x00000006,0x0015001e,0x00000009,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00040020,0x0000000a,
0x00000002,0x00000009,0x0004003b,0x0000000a,0x0000000b,0x00000002,0x0004002b,0x00000006,
0x0000000c,0x0000000c,0x00040020,0x0000000d,0x00000002,0x00000006,0x0004002b,0x00000006,
0x00000011,0x0000000f,0x0004002b,0x00000006,0x00000015,0x00000002,0x0004002b,0x00000006,
0x00000018,0x00000003,0x00040015,0x0000001d,0x00000020,0x00000000,0x00040017,0x0000001e,
0x0000001d,0x00000003,0x00040020,0x0000001f,0x00000001,0x0000001e,0x0004003b,0x0000001f,
0x00000020,0x00000001,0x0004002b,0x0000001d,0x00000021,0x00000000,0x00040020,0x00000022,
0x00000001,0x0000001d,0x0004002b,0x00000006,0x00000026,0x00000040,0x0004002b,0x0000001d,
0x00000029,0x00000001,0x0004003b,0x0000001f,0x0000002f,0x00000001,0x0004002b,0x00000006,
0x00000033,0x00000010,0x0004002b,0x00000006,0x0000003e,0x00000020,0x0004002b,0x00000006,
0x00000050,0x00000012,0x0004002b,0x00000006,0x00000063,0x00000011,0x0004002b,0x00000006,
0x00000066,0x0000000e,0x0004002b,0x00000006,0x0000006d,0x00000000,0x0004002b,0x00000006,
0x00000071,0x00000001,0x0004002b,0x00000006,0x00000075,0x0000000d,0x0004002b,0x00000006,
0x00000094,0x00000004,0x00020014,0x0000009e,0x00030016,0x000000a0,0x00000020,0x00040017,
0x000000a1,0x000000a0,0x00000004,0x0004002b,0x0000001d,0x000000a2,0x00000004,0x0004001c,
0x000000a3,0x000000a1,0x000000a2,0x00040020,0x000000a4,0x00000007,0x000000a3,0x0003001d,
0x000000a7,0x000000a0,0x0003001e,0x000000a8,0x000000a7,0x00040020,0x000000a9,0x00000002,
0x000000a8,0x0004003b,0x000000a9,0x000000aa,0x00000002,0x00040020,0x000000ae,0x00000002,
0x000000a0,0x00040020,0x000000b2,0x00000007,0x000000a1,0x0004002b,0x00000006,0x000000d1,
0x00000008,0x0004002b,0x0000001d,0x000000d3,0x00000040,0x0004001c,0x000000d4,0x000000a0,
0x000000d3,0x0004002b,0x0000001d,0x000000d5,0x00000020,0x0004001c,0x000000d6,0x000000d4,
0x000000d5,0x00040020,0x000000d7,0x00000004,0x000000d6,0x0004003b,0x000000d7,0x000000d8,
0x00000004,0x0003001d,0x000000de,0x000000a0,0x0003001e,0x000000df,0x000000de,0x00040020,
0x000000e0,0x00000002,0x000000df,0x0004003b,0x000000e0,0x000000e1,0x00000002,0x00040020,
0x000000ec,0x00000004,0x000000a0,0x0004002b,0x00000006,0x00000102,0x00000009,0x0004002b,
0x00000006,0x0000011e,0x0000000a,0x0004002b,0x00000006,0x00000124,0x0000000b,0x0004002b,
0x00000006,0x0000013f,0x00000006,0x0004002b,0x00000006,0x00000145,0x00000005,0x0004002b,
0x00000006,0x0000014b,0x00000007,0x0004001c,0x00000167,0x000000a0,0x000000d5,0x0004001c,
0x00000168,0x00000167,0x000000d3,0x00040020,0x00000169,0x00000004,0x00000168,0x0004003b,
0x00000169,0x0000016a,0x00000004,0x0003001d,0x00000170,0x000000a0,0x0003001e,0x00000171,
0x00000170,0x00040020,0x00000172,0x00000002,0x00000171,0x0004003b,0x00000172,0x00000173,
0x00000002,0x0004002b,0x000000a0,0x0000018d,0x00000000,0x0004002b,0x0000001d,0x00000191,
0x00000002,0x0004002b,0x0000001d,0x00000192,0x00000108,0x0004001c,0x000001a3,0x000000a0,
0x000000a2,0x00040020,0x000001a4,0x00000007,0x000001a3,0x00040020,0x000001ae,0x00000007,
0x000000a0,0x0007002c,0x000000a1,0x000001f2,0x0000018d,0x0000018d,0x0000018d,0x0000018d,
0x0004002b,0x000000a0,0x00000209,0x40c00000,0x0007002c,0x000000a1,0x0000020a,0x00000209,
0x00000209,0x00000209,0x00000209,0x0003001d,0x00000241,0x000000a0,0x0003001e,0x00000242,
0x00000241,0x00040020,0x00000243,0x00000002,0x00000242,0x0004003b,0x00000243,0x00000244,
0x00000002,0x0004002b,0x0000001d,0x00000255,0x00000100,0x0006002c,0x0000001e,0x00000256,
0x00000255,0x00000029,0x00000029,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,
0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,0x0004003b,0x00000007,
0x00000010,0x00000007,0x0004003b,0x00000007,0x00000014,0x00000007,0x0004003b,0x00000007,
0x0000001c,0x00000007,0x0004003b,0x00000007,0x00000028,0x00000007,0x0004003b,0x00000007,
0x0000002e,0x00000007,0x0004003b,0x00000007,0x00000035,0x00000007,0x0004003b,0x00000007,
0x0000003a,0x00000007,0x0004003b,0x00000007,0x00000040,0x00000007,0x0004003b,0x00000007,
0x00000045,0x00000007,0x0004003b,0x00000007,0x0000004a,0x00000007,0x0004003b,0x00000007,
0x0000004f,0x00000007,0x0004003b,0x00000007,0x00000062,0x00000007,0x0004003b,0x00000007,
0x00000079,0x00000007,0x0004003b,0x00000007,0x0000008b,0x00000007,0x0004003b,0x00000007,
0x00000097,0x00000007,0x0004003b,0x000000a4,0x000000a5,0x00000007,0x0004003b,0x00000007,
0x000000b6,0x00000007,0x0004003b,0x00000007,0x000000b9,0x00000007,0x0004003b,0x00000007,
0x000000be,0x00000007,0x0004003b,0x00000007,0x000000c7,0x00000007,0x0004003b,0x00000007,
0x000000ca,0x00000007,0x0004003b,0x00000007,0x000000f0,0x00000007,0x0004003b,0x00000007,
0x000000f8,0x00000007,0x0004003b,0x00000007,0x000000ff,0x00000007,0x0004003b,0x00000007,
0x00000106,0x00000007,0x0004003b,0x00000007,0x0000010a,0x00000007,0x0004003b,0x00000007,
0x00000110,0x00000007,0x0004003b,0x00000007,0x00000115,0x00000007,0x0004003b,0x00000007,
0x0000011c,0x00000007,0x0004003b,0x00000007,0x00000122,0x00000007,0x0004003b,0x00000007,
0x00000128,0x00000007,0x0004003b,0x00000007,0x0000012c,0x00000007,0x0004003b,0x00000007,
0x00000131,0x00000007,0x0004003b,0x00000007,0x00000138,0x00000007,0x0004003b,0x00000007,
0x00000143,0x00000007,0x0004003b,0x00000007,0x00000193,0x00000007,0x0004003b,0x00000007,
0x0000019b,0x00000007,0x0004003b,0x000001a4,0x000001a5,0x00000007,0x0004003b,0x00000007,
0x000001b2,0x00000007,0x0004003b,0x000001a4,0x000001ba,0x00000007,0x0004003b,0x00000007,
0x000001c6,0x00000007,0x0004003b,0x00000007,0x000001ce,0x00000007,0x0004003b,0x00000007,
0x00000219,0x00000007,0x0004003b,0x00000007,0x00000221,0x00000007,0x0004003b,0x00000007,
0x0000022d,0x00000007,0x0004003b,0x00000007,0x00000235,0x00000007,0x00050041,0x0000000d,
0x0000000e,0x0000000b,0x0000000c,0x0004003d,0x00000006,0x0000000f,0x0000000e,0x0003003e,
0x00000008,0x0000000f,0x00050041,0x0000000d,0x00000012,0x0000000b,0x00000011,0x0004003d,
0x00000006,0x00000013,0x00000012,0x0003003e,0x00000010,0x00000013,0x00050041,0x0000000d,
0x00000016,0x0000000b,0x00000015,0x0004003d,0x00000006,0x00000017,0x00000016,0x00050041,
0x0000000d,0x00000019,0x0000000b,0x00000018,0x0004003d,0x00000006,0x0000001a,0x00000019,
0x00050084,0x00000006,0x0000001b,0x00000017,0x0000001a,0x0003003e,0x00000014,0x0000001b,
0x00050041,0x00000022,0x00000023,0x00000020,0x00000021,0x0004003d,0x0000001d,0x00000024,
0x00000023,0x0004007c,0x00000006,0x00000025,0x00000024,0x00050084,0x00000006,0x00000027,
0x00000025,0x00000026,0x0003003e,0x0000001c,0x00000027,0x00050041,0x00000022,0x0000002a,
0x00000020,0x00000029,0x0004003d,0x0000001d,0x0000002b,0x0000002a,0x0004007c,0x00000006,
0x0000002c,0x0000002b,0x00050084,0x00000006,0x0000002d,0x0000002c,0x00000026,0x0003003e,
0x00000028,0x0000002d,0x00050041,0x00000022,0x00000030,0x0000002f,0x00000021,0x0004003d,
0x0000001d,0x00000031,0x00000030,0x0004007c,0x00000006,0x00000032,0x00000031,0x0005008b,
0x00000006,0x00000034,0x00000032,0x00000033,0x0003003e,0x0000002e,0x00000034,0x00050041,
0x00000022,0x00000036,0x0000002f,0x00000021,0x0004003d,0x0000001d,0x00000037,0x00000036,
0x0004007c,0x00000006,0x00000038,0x00000037,0x00050087,0x00000006,0x00000039,0x00000038,
0x00000033,0x0003003e,0x00000035,0x00000039,0x00050041,0x00000022,0x0000003b,0x0000002f,
0x00000021,0x0004003d,0x0000001d,0x0000003c,0x0000003b,0x0004007c,0x00000006,0x0000003d,
0x0000003c,0x0005008b,0x00000006,0x0000003f,0x0000003d,0x0000003e,0x0003003e,0x0000003a,
0x0000003f,0x00050041,0x00000022,0x00000041,0x0000002f,0x00000021,0x0004003d,0x0000001d,
0x00000042,0x00000041,0x0004007c,0x00000006,0x00000043,0x00000042,0x00050087,0x00000006,
0x00000044,0x00000043,0x0000003e,0x0003003e,0x00000040,0x00000044,0x00050041,0x00000022,
0x00000046,0x0000002f,0x00000021,0x0004003d,0x0000001d,0x00000047,0x00000046,0x0004007c,
0x00000006,0x00000048,0x00000047,0x0005008b,0x00000006,0x00000049,0x00000048,0x00000026,
0x0003003e,0x00000045,0x00000049,0x00050041,0x00000022,0x0000004b,0x0000002f,0x00000021,
0x0004003d,0x0000001d,0x0000004c,0x0000004b,0x0004007c,0x00000006,0x0000004d,0x0000004c,
0x00050087,0x00000006,0x0000004e,0x0000004d,0x00000026,0x0003003e,0x0000004a,0x0000004e,
0x00050041,0x0000000d,0x00000051,0x0000000b,0x00000050,0x0004003d,0x00000006,0x00000052,
0x00000051,0x00050041,0x0000000d,0x00000053,0x0000000b,0x0000000c,0x0004003d,0x00000006,
0x00000054,0x00000053,0x00050084,0x00000006,0x00000055,0x00000052,0x00000054,0x0004003d,
0x00000006,0x00000056,0x00000010,0x00050084,0x00000006,0x00000057,0x00000055,0x00000056,
0x0004003d,0x00000006,0x00000058,0x00000010,0x0004003d,0x00000006,0x00000059,0x0000001c,
0x00050084,0x00000006,0x0000005a,0x00000058,0x00000059,0x00050080,0x00000006,0x0000005b,
0x00000057,0x0000005a,0x0004003d,0x00000006,0x0000005c,0x00000040,0x0004003d,0x00000006,
0x0000005d,0x00000010,0x00050084,0x00000006,0x0000005e,0x0000005c,0x0000005d,0x00050080,
0x00000006,0x0000005f,0x0000005b,0x0000005e,0x0004003d,0x00000006,0x00000060,0x0000003a,
0x00050080,0x00000006,0x00000061,0x0000005f,0x00000060,0x0003003e,0x0000004f,0x00000061,
0x00050041,0x0000000d,0x00000064,0x0000000b,0x00000063,0x0004003d,0x00000006,0x00000065,
0x00000064,0x00050041,0x0000000d,0x00000067,0x0000000b,0x00000066,0x0004003d,0x00000006,
0x00000068,0x00000067,0x00050084,0x00000006,0x00000069,0x00000065,0x00000068,0x00050041,
0x0000000d,0x0000006a,0x0000000b,0x00000050,0x0004003d,0x00000006,0x0000006b,0x0000006a,
0x00050080,0x00000006,0x0000006c,0x00000069,0x0000006b,0x00050041,0x0000000d,0x0000006e,
0x0000000b,0x0000006d,0x0004003d,0x00000006,0x0000006f,0x0000006e,0x00050084,0x00000006,
0x00000070,0x0000006c,0x0000006f,0x00050041,0x0000000d,0x00000072,0x0000000b,0x00000071,
0x0004003d,0x00000006,0x00000073,0x00000072,0x00050084,0x00000006,0x00000074,0x00000070,
0x00000073,0x00050041,0x0000000d,0x00000076,0x0000000b,0x00000075,0x0004003d,0x00000006,
0x00000077,0x00000076,0x00050084,0x00000006,0x00000078,0x00000074,0x00000077,0x0003003e,
0x00000062,0x00000078,0x00050041,0x0000000d,0x0000007a,0x0000000b,0x00000063,0x0004003d,
0x00000006,0x0000007b,0x0000007a,0x00050041,0x0000000d,0x0000007c,0x0000000b,0x00000066,
0x0004003d,0x00000006,0x0000007d,0x0000007c,0x00050084,0x00000006,0x0000007e,0x0000007b,
0x0000007d,0x00050041,0x0000000d,0x0000007f,0x0000000b,0x00000050,0x0004003d,0x00000006,
0x00000080,0x0000007f,0x00050080,0x00000006,0x00000081,0x0000007e,0x00000080,0x00050041,
0x0000000d,0x00000082,0x0000000b,0x00000015,0x0004003d,0x00000006,0x00000083,0x00000082,
0x00050084,0x00000006,0x00000084,0x00000081,0x00000083,0x00050041,0x0000000d,0x00000085,
0x0000000b,0x00000018,0x0004003d,0x00000006,0x00000086,0x00000085,0x00050084,0x00000006,
0x00000087,0x00000084,0x00000086,0x00050041,0x0000000d,0x00000088,0x0000000b,0x0000000c,
0x0004003d,0x00000006,0x00000089,0x00000088,0x00050084,0x00000006,0x0000008a,0x00000087,
0x00000089,0x0003003e,0x00000079,0x0000008a,0x00050041,0x0000000d,0x0000008c,0x0000000b,
0x00000050,0x0004003d,0x00000006,0x0000008d,0x0000008c,0x00050041,0x0000000d,0x0000008e,
0x0000000b,0x0000000c,0x0004003d,0x00000006,0x0000008f,0x0000008e,0x00050084,0x00000006,
0x00000090,0x0000008d,0x0000008f,0x0004003d,0x00000006,0x00000091,0x0000001c,0x00050080,
0x00000006,0x00000092,0x00000090,0x00000091,0x0004003d,0x00000006,0x00000093,0x0000002e,
0x00050084,0x00000006,0x00000095,0x00000093,0x00000094,0x00050080,0x00000006,0x00000096,
0x00000092,0x00000095,0x0003003e,0x0000008b,0x00000096,0x0003003e,0x00000097,0x0000006d,
0x000200f9,0x00000098,0x000200f8,0x00000098,0x000400f6,0x0000009a,0x0000009b,0x00000000,
0x000200f9,0x0000009c,0x000200f8,0x0000009c,0x0004003d,0x00000006,0x0000009d,0x00000097,
0x000500b1,0x0000009e,0x0000009f,0x0000009d,0x00000094,0x000400fa,0x0000009f,0x00000099,
0x0000009a,0x000200f8,0x00000099,0x0004003d,0x00000006,0x000000a6,0x00000097,0x0004003d,
0x00000006,0x000000ab,0x0000008b,0x0004003d,0x00000006,0x000000ac,0x00000097,0x00050080,
0x00000006,0x000000ad,0x000000ab,0x000000ac,0x00060041,0x000000ae,0x000000af,0x000000aa,
0x0000006d,0x000000ad,0x0004003d,0x000000a0,0x000000b0,0x000000af,0x00070050,0x000000a1,
0x000000b1,0x000000b0,0x000000b0,0x000000b0,0x000000b0,0x00050041,0x000000b2,0x000000b3,
0x000000a5,0x000000a6,0x0003003e,0x000000b3,0x000000b1,0x000200f9,0x0000009b,0x000200f8,
0x0000009b,0x0004003d,0x00000006,0x000000b4,0x00000097,0x00050080,0x00000006,0x000000b5,
0x000000b4,0x00000071,0x0003003e,0x00000097,0x000000b5,0x000200f9,0x00000098,0x000200f8,
0x0000009a,0x0004003d,0x00000006,0x000000b7,0x00000010,0x00050087,0x00000006,0x000000b8,
0x000000b7,0x0000003e,0x0003003e,0x000000b6,0x000000b8,0x0004003d,0x00000006,0x000000ba,
0x00000010,0x0004003d,0x00000006,0x000000bb,0x000000b6,0x00050084,0x00000006,0x000000bc,
0x000000bb,0x0000003e,0x00050082,0x00000006,0x000000bd,0x000000ba,0x000000bc,0x0003003e,
0x000000b9,0x000000bd,0x0003003e,0x000000be,0x0000006d,0x000200f9,0x000000bf,0x000200f8,
0x000000bf,0x000400f6,0x000000c1,0x000000c2,0x00000000,0x000200f9,0x000000c3,0x000200f8,
0x000000c3,0x0004003d,0x00000006,0x000000c4,0x000000be,0x0004003d,0x00000006,0x000000c5,
0x000000b6,0x000500b1,0x0000009e,0x000000c6,0x000000c4,0x000000c5,0x000400fa,0x000000c6,
0x000000c0,0x000000c1,0x000200f8,0x000000c0,0x0004003d,0x00000006,0x000000c8,0x000000be,
0x00050084,0x00000006,0x000000c9,0x000000c8,0x0000003e,0x0003003e,0x000000c7,0x000000c9,
0x0003003e,0x000000ca,0x0000006d,0x000200f9,0x000000cb,0x000200f8,0x000000cb,0x000400f6,
0x000000cd,0x000000ce,0x00000000,0x000200f9,0x000000cf,0x000200f8,0x000000cf,0x0004003d,
0x00000006,0x000000d0,0x000000ca,0x000500b1,0x0000009e,0x000000d2,0x000000d0,0x000000d1,
0x000400fa,0x000000d2,0x000000cc,0x000000cd,0x000200f8,0x000000cc,0x0004003d,0x00000006,
0x000000d9,0x0000003a,0x0004003d,0x00000006,0x000000da,0x000000ca,0x00050084,0x00000006,
0x000000db,0x000000da,0x000000d1,0x0004003d,0x00000006,0x000000dc,0x00000040,0x00050080,
0x00000006,0x000000dd,0x000000db,0x000000dc,0x0004003d,0x00000006,0x000000e2,0x0000004f,
0x0004003d,0x00000006,0x000000e3,0x000000ca,0x00050084,0x00000006,0x000000e4,0x000000e3,
0x000000d1,0x0004003d,0x00000006,0x000000e5,0x00000010,0x00050084,0x00000006,0x000000e6,
0x000000e4,0x000000e5,0x00050080,0x00000006,0x000000e7,0x000000e2,0x000000e6,0x0004003d,
0x00000006,0x000000e8,0x000000c7,0x00050080,0x00000006,0x000000e9,0x000000e7,0x000000e8,
0x00060041,0x000000ae,0x000000ea,0x000000e1,0x0000006d,0x000000e9,0x0004003d,0x000000a0,
0x000000eb,0x000000ea,0x00060041,0x000000ec,0x000000ed,0x000000d8,0x000000d9,0x000000dd,
0x0003003e,0x000000ed,0x000000eb,0x000200f9,0x000000ce,0x000200f8,0x000000ce,0x0004003d,
0x00000006,0x000000ee,0x000000ca,0x00050080,0x00000006,0x000000ef,0x000000ee,0x00000071,
0x0003003e,0x000000ca,0x000000ef,0x000200f9,0x000000cb,0x000200f8,0x000000cd,0x0003003e,
0x000000f0,0x0000006d,0x000200f9,0x000000f1,0x000200f8,0x000000f1,0x000400f6,0x000000f3,
0x000000f4,0x00000000,0x000200f9,0x000000f5,0x000200f8,0x000000f5,0x0004003d,0x00000006,
0x000000f6,0x000000f0,0x000500b1,0x0000009e,0x000000f7,0x000000f6,0x000000d1,0x000400fa,
0x000000f7,0x000000f2,0x000000f3,0x000200f8,0x000000f2,0x0004003d,0x00000006,0x000000f9,
0x0000004a,0x0004003d,0x00000006,0x000000fa,0x000000f0,0x00050084,0x00000006,0x000000fb,
0x000000fa,0x00000094,0x00050080,0x00000006,0x000000fc,0x000000f9,0x000000fb,0x0004003d,
0x00000006,0x000000fd,0x000000c7,0x00050080,0x00000006,0x000000fe,0x000000fc,0x000000fd,
0x0003003e,0x000000f8,0x000000fe,0x00050041,0x0000000d,0x00000100,0x0000000b,0x000000d1,
0x0004003d,0x00000006,0x00000101,0x00000100,0x00050041,0x0000000d,0x00000103,0x0000000b,
0x00000102,0x0004003d,0x00000006,0x00000104,0x00000103,0x00050084,0x00000006,0x00000105,
0x00000101,0x00000104,0x0003003e,0x000000ff,0x00000105,0x0004003d,0x00000006,0x00000107,
0x000000f8,0x0004003d,0x00000006,0x00000108,0x000000ff,0x00050087,0x00000006,0x00000109,
0x00000107,0x00000108,0x0003003e,0x00000106,0x00000109,0x0004003d,0x00000006,0x0000010b,
0x000000f8,0x0004003d,0x00000006,0x0000010c,0x00000106,0x0004003d,0x00000006,0x0000010d,
0x000000ff,0x00050084,0x00000006,0x0000010e,0x0000010c,0x0000010d,0x00050082,0x00000006,
0x0000010f,0x0000010b,0x0000010e,0x0003003e,0x0000010a,0x0000010f,0x0004003d,0x00000006,
0x00000111,0x0000010a,0x00050041,0x0000000d,0x00000112,0x0000000b,0x00000102,0x0004003d,
0x00000006,0x00000113,0x00000112,0x00050087,0x00000006,0x00000114,0x00000111,0x00000113,
0x0003003e,0x00000110,0x00000114,0x0004003d,0x00000006,0x00000116,0x0000010a,0x0004003d,
0x00000006,0x00000117,0x00000110,0x00050041,0x0000000d,0x00000118,0x0000000b,0x00000102,
0x0004003d,0x00000006,0x00000119,0x00000118,0x00050084,0x00000006,0x0000011a,0x00000117,
0x00000119,0x00050082,0x00000006,0x0000011b,0x00000116,0x0000011a,0x0003003e,0x00000115,
0x0000011b,0x0004003d,0x00000006,0x0000011d,0x00000110,0x00050041,0x0000000d,0x0000011f,
0x0000000b,0x0000011e,0x0004003d,0x00000006,0x00000120,0x0000011f,0x00050084,0x00000006,
0x00000121,0x0000011d,0x00000120,0x0003003e,0x0000011c,0x00000121,0x0004003d,0x00000006,
0x00000123,0x00000115,0x00050041,0x0000000d,0x00000125,0x0000000b,0x00000124,0x0004003d,
0x00000006,0x00000126,0x00000125,0x00050084,0x00000006,0x00000127,0x00000123,0x00000126,
0x0003003e,0x00000122,0x00000127,0x0004003d,0x00000006,0x00000129,0x00000045,0x0004003d,
0x00000006,0x0000012a,0x00000028,0x00050080,0x00000006,0x0000012b,0x00000129,0x0000012a,
0x0003003e,0x00000128,0x0000012b,0x0004003d,0x00000006,0x0000012d,0x00000128,0x00050041,
0x0000000d,0x0000012e,0x0000000b,0x00000018,0x0004003d,0x00000006,0x0000012f,0x0000012e,
0x00050087,0x00000006,0x00000130,0x0000012d,0x0000012f,0x0003003e,0x0000012c,0x00000130,
0x0004003d,0x00000006,0x00000132,0x00000128,0x0004003d,0x00000006,0x00000133,0x0000012c,
0x00050041,0x0000000d,0x00000134,0x0000000b,0x00000018,0x0004003d,0x00000006,0x00000135,
0x00000134,0x00050084,0x00000006,0x00000136,0x00000133,0x00000135,0x00050082,0x00000006,
0x00000137,0x00000132,0x00000136,0x0003003e,0x00000131,0x00000137,0x0004003d,0x00000006,
0x00000139,0x0000012c,0x00050041,0x0000000d,0x0000013a,0x0000000b,0x00000094,0x0004003d,
0x00000006,0x0000013b,0x0000013a,0x00050084,0x00000006,0x0000013c,0x00000139,0x0000013b,
0x0004003d,0x00000006,0x0000013d,0x0000011c,0x00050080,0x00000006,0x0000013e,0x0000013c,
0x0000013d,0x00050041,0x0000000d,0x00000140,0x0000000b,0x0000013f,0x0004003d,0x00000006,
0x00000141,0x00000140,0x00050082,0x00000006,0x00000142,0x0000013e,0x00000141,0x0003003e,
0x00000138,0x00000142,0x0004003d,0x00000006,0x00000144,0x00000131,0x00050041,0x0000000d,
0x00000146,0x0000000b,0x00000145,0x0004003d,0x00000006,0x00000147,0x00000146,0x00050084,
0x00000006,0x00000148,0x00000144,0x00000147,0x0004003d,0x00000006,0x00000149,0x00000122,
0x00050080,0x00000006,0x0000014a,0x00000148,0x00000149,0x00050041,0x0000000d,0x0000014c,
0x0000000b,0x0000014b,0x0004003d,0x00000006,0x0000014d,0x0000014c,0x00050082,0x00000006,
0x0000014e,0x0000014a,0x0000014d,0x0003003e,0x00000143,0x0000014e,0x0004003d,0x00000006,
0x0000014f,0x00000106,0x00050041,0x0000000d,0x00000150,0x0000000b,0x00000075,0x0004003d,
0x00000006,0x00000151,0x00000150,0x000500b1,0x0000009e,0x00000152,0x0000014f,0x00000151,
0x000300f7,0x00000154,0x00000000,0x000400fa,0x00000152,0x00000153,0x00000154,0x000200f8,
0x00000153,0x0004003d,0x00000006,0x00000155,0x00000138,0x0004007c,0x0000001d,0x00000156,
0x00000155,0x00050041,0x0000000d,0x00000157,0x0000000b,0x0000006d,0x0004003d,0x00000006,
0x00000158,0x00000157,0x0004007c,0x0000001d,0x00000159,0x00000158,0x000500b0,0x0000009e,
0x0000015a,0x00000156,0x00000159,0x000200f9,0x00000154,0x000200f8,0x00000154,0x000700f5,
0x0000009e,0x0000015b,0x00000152,0x000000f2,0x0000015a,0x00000153,0x000300f7,0x0000015d,
0x00000000,0x000400fa,0x0000015b,0x0000015c,0x0000015d,0x000200f8,0x0000015c,0x0004003d,
0x00000006,0x0000015e,0x00000143,0x0004007c,0x0000001d,0x0000015f,0x0000015e,0x00050041,
0x0000000d,0x00000160,0x0000000b,0x00000071,0x0004003d,0x00000006,0x00000161,0x00000160,
0x0004007c,0x0000001d,0x00000162,0x00000161,0x000500b0,0x0000009e,0x00000163,0x0000015f,
0x00000162,0x000200f9,0x0000015d,0x000200f8,0x0000015d,0x000700f5,0x0000009e,0x00000164,
0x0000015b,0x00000154,0x00000163,0x0000015c,0x000300f7,0x00000166,0x00000000,0x000400fa,
0x00000164,0x00000165,0x00000187,0x000200f8,0x00000165,0x0004003d,0x00000006,0x0000016b,
0x00000045,0x0004003d,0x00000006,0x0000016c,0x000000f0,0x00050084,0x00000006,0x0000016d,
0x0000016c,0x00000094,0x0004003d,0x00000006,0x0000016e,0x0000004a,0x00050080,0x00000006,
0x0000016f,0x0000016d,0x0000016e,0x0004003d,0x00000006,0x00000174,0x00000062,0x0004003d,
0x00000006,0x00000175,0x00000106,0x00050041,0x0000000d,0x00000176,0x0000000b,0x0000006d,
0x0004003d,0x00000006,0x00000177,0x00000176,0x00050084,0x00000006,0x00000178,0x00000175,
0x00000177,0x00050041,0x0000000d,0x00000179,0x0000000b,0x00000071,0x0004003d,0x00000006,
0x0000017a,0x00000179,0x00050084,0x00000006,0x0000017b,0x00000178,0x0000017a,0x00050080,
0x00000006,0x0000017c,0x00000174,0x0000017b,0x0004003d,0x00000006,0x0000017d,0x00000138,
0x00050041,0x0000000d,0x0000017e,0x0000000b,0x00000071,0x0004003d,0x00000006,0x0000017f,
0x0000017e,0x00050084,0x00000006,0x00000180,0x0000017d,0x0000017f,0x00050080,0x00000006,
0x00000181,0x0000017c,0x00000180,0x0004003d,0x00000006,0x00000182,0x00000143,0x00050080,
0x00000006,0x00000183,0x00000181,0x00000182,0x00060041,0x000000ae,0x00000184,0x00000173,
0x0000006d,0x00000183,0x0004003d,0x000000a0,0x00000185,0x00000184,0x00060041,0x000000ec,
0x00000186,0x0000016a,0x0000016b,0x0000016f,0x0003003e,0x00000186,0x00000185,0x000200f9,
0x00000166,0x000200f8,0x00000187,0x0004003d,0x00000006,0x00000188,0x00000045,0x0004003d,
0x00000006,0x00000189,0x000000f0,0x00050084,0x00000006,0x0000018a,0x00000189,0x00000094,
0x0004003d,0x00000006,0x0000018b,0x0000004a,0x00050080,0x00000006,0x0000018c,0x0000018a,
0x0000018b,0x00060041,0x000000ec,0x0000018e,0x0000016a,0x00000188,0x0000018c,0x0003003e,
0x0000018e,0x0000018d,0x000200f9,0x00000166,0x000200f8,0x00000166,0x000200f9,0x000000f4,
0x000200f8,0x000000f4,0x0004003d,0x00000006,0x0000018f,0x000000f0,0x00050080,0x00000006,
0x00000190,0x0000018f,0x00000071,0x0003003e,0x000000f0,0x00000190,0x000200f9,0x000000f1,
0x000200f8,0x000000f3,0x000400e0,0x00000191,0x00000191,0x00000192,0x0003003e,0x00000193,
0x0000006d,0x000200f9,0x00000194,0x000200f8,0x00000194,0x000400f6,0x00000196,0x00000197,
0x00000000,0x000200f9,0x00000198,0x000200f8,0x00000198,0x0004003d,0x00000006,0x00000199,
0x00000193,0x000500b1,0x0000009e,0x0000019a,0x00000199,0x0000003e,0x000400fa,0x0000019a,
0x00000195,0x00000196,0x000200f8,0x00000195,0x0003003e,0x0000019b,0x0000006d,0x000200f9,
0x0000019c,0x000200f8,0x0000019c,0x000400f6,0x0000019e,0x0000019f,0x00000000,0x000200f9,
0x000001a0,0x000200f8,0x000001a0,0x0004003d,0x00000006,0x000001a1,0x0000019b,0x000500b1,
0x0000009e,0x000001a2,0x000001a1,0x00000094,0x000400fa,0x000001a2,0x0000019d,0x0000019e,
0x000200f8,0x0000019d,0x0004003d,0x00000006,0x000001a6,0x0000019b,0x0004003d,0x00000006,
0x000001a7,0x00000193,0x0004003d,0x00000006,0x000001a8,0x0000002e,0x00050084,0x00000006,
0x000001a9,0x000001a8,0x00000094,0x0004003d,0x00000006,0x000001aa,0x0000019b,0x00050080,
0x00000006,0x000001ab,0x000001a9,0x000001aa,0x00060041,0x000000ec,0x000001ac,0x000000d8,
0x000001a7,0x000001ab,0x0004003d,0x000000a0,0x000001ad,0x000001ac,0x00050041,0x000001ae,
0x000001af,0x000001a5,0x000001a6,0x0003003e,0x000001af,0x000001ad,0x000200f9,0x0000019f,
0x000200f8,0x0000019f,0x0004003d,0x00000006,0x000001b0,0x0000019b,0x00050080,0x00000006,
0x000001b1,0x000001b0,0x00000071,0x0003003e,0x0000019b,0x000001b1,0x000200f9,0x0000019c,
0x000200f8,0x0000019e,0x0003003e,0x000001b2,0x0000006d,0x000200f9,0x000001b3,0x000200f8,
0x000001b3,0x000400f6,0x000001b5,0x000001b6,0x00000000,0x000200f9,0x000001b7,0x000200f8,
0x000001b7,0x0004003d,0x00000006,0x000001b8,0x000001b2,0x000500b1,0x0000009e,0x000001b9,
0x000001b8,0x00000094,0x000400fa,0x000001b9,0x000001b4,0x000001b5,0x000200f8,0x000001b4,
0x0004003d,0x00000006,0x000001bb,0x000001b2,0x0004003d,0x00000006,0x000001bc,0x00000035,
0x0004003d,0x00000006,0x000001bd,0x000001b2,0x00050084,0x00000006,0x000001be,0x00000033,
0x000001bd,0x00050080,0x00000006,0x000001bf,0x000001bc,0x000001be,0x0004003d,0x00000006,
0x000001c0,0x00000193,0x00060041,0x000000ec,0x000001c1,0x0000016a,0x000001bf,0x000001c0,
0x0004003d,0x000000a0,0x000001c2,0x000001c1,0x00050041,0x000001ae,0x000001c3,0x000001ba,
0x000001bb,0x0003003e,0x000001c3,0x000001c2,0x000200f9,0x000001b6,0x000200f8,0x000001b6,
0x0004003d,0x00000006,0x000001c4,0x000001b2,0x00050080,0x00000006,0x000001c5,0x000001c4,
0x00000071,0x0003003e,0x000001b2,0x000001c5,0x000200f9,0x000001b3,0x000200f8,0x000001b5,
0x0003003e,0x000001c6,0x0000006d,0x000200f9,0x000001c7,0x000200f8,0x000001c7,0x000400f6,
0x000001c9,0x000001ca,0x00000000,0x000200f9,0x000001cb,0x000200f8,0x000001cb,0x0004003d,
0x00000006,0x000001cc,0x000001c6,0x000500b1,0x0000009e,0x000001cd,0x000001cc,0x00000094,
0x000400fa,0x000001cd,0x000001c8,0x000001c9,0x000200f8,0x000001c8,0x0003003e,0x000001ce,
0x0000006d,0x000200f9,0x000001cf,0x000200f8,0x000001cf,0x000400f6,0x000001d1,0x000001d2,
0x00000000,0x000200f9,0x000001d3,0x000200f8,0x000001d3,0x0004003d,0x00000006,0x000001d4,
0x000001ce,0x000500b1,0x0000009e,0x000001d5,0x000001d4,0x00000094,0x000400fa,0x000001d5,
0x000001d0,0x000001d1,0x000200f8,0x000001d0,0x0004003d,0x00000006,0x000001d6,0x000001c6,
0x0004003d,0x00000006,0x000001d7,0x000001ce,0x0004003d,0x00000006,0x000001d8,0x000001c6,
0x00050041,0x000001ae,0x000001d9,0x000001a5,0x000001d8,0x0004003d,0x000000a0,0x000001da,
0x000001d9,0x0004003d,0x00000006,0x000001db,0x000001ce,0x00050041,0x000001ae,0x000001dc,
0x000001ba,0x000001db,0x0004003d,0x000000a0,0x000001dd,0x000001dc,0x00050085,0x000000a0,
0x000001de,0x000001da,0x000001dd,0x00060041,0x000001ae,0x000001df,0x000000a5,0x000001d6,
0x000001d7,0x0004003d,0x000000a0,0x000001e0,0x000001df,0x00050081,0x000000a0,0x000001e1,
0x000001e0,0x000001de,0x00060041,0x000001ae,0x000001e2,0x000000a5,0x000001d6,0x000001d7,
0x0003003e,0x000001e2,0x000001e1,0x000200f9,0x000001d2,0x000200f8,0x000001d2,0x0004003d,
0x00000006,0x000001e3,0x000001ce,0x00050080,0x00000006,0x000001e4,0x000001e3,0x00000071,
0x0003003e,0x000001ce,0x000001e4,0x000200f9,0x000001cf,0x000200f8,0x000001d1,0x000200f9,
0x000001ca,0x000200f8,0x000001ca,0x0004003d,0x00000006,0x000001e5,0x000001c6,0x00050080,
0x00000006,0x000001e6,0x000001e5,0x00000071,0x0003003e,0x000001c6,0x000001e6,0x000200f9,
0x000001c7,0x000200f8,0x000001c9,0x000200f9,0x00000197,0x000200f8,0x00000197,0x0004003d,
0x00000006,0x000001e7,0x00000193,0x00050080,0x00000006,0x000001e8,0x000001e7,0x00000071,
0x0003003e,0x00000193,0x000001e8,0x000200f9,0x00000194,0x000200f8,0x00000196,0x000400e0,
0x00000191,0x00000191,0x00000192,0x000200f9,0x000000c2,0x000200f8,0x000000c2,0x0004003d,
0x00000006,0x000001e9,0x000000be,0x00050080,0x00000006,0x000001ea,0x000001e9,0x00000071,
0x0003003e,0x000000be,0x000001ea,0x000200f9,0x000000bf,0x000200f8,0x000000c1,0x00050041,
0x0000000d,0x000001eb,0x0000000b,0x00000033,0x0004003d,0x00000006,0x000001ec,0x000001eb,
0x000500aa,0x0000009e,0x000001ed,0x000001ec,0x00000071,0x000300f7,0x000001ef,0x00000000,
0x000400fa,0x000001ed,0x000001ee,0x00000201,0x000200f8,0x000001ee,0x00050041,0x000000b2,
0x000001f0,0x000000a5,0x0000006d,0x0004003d,0x000000a1,0x000001f1,0x000001f0,0x0007000c,
0x000000a1,0x000001f3,0x00000001,0x00000028,0x000001f1,0x000001f2,0x00050041,0x000000b2,
0x000001f4,0x000000a5,0x0000006d,0x0003003e,0x000001f4,0x000001f3,0x00050041,0x000000b2,
0x000001f5,0x000000a5,0x00000071,0x0004003d,0x000000a1,0x000001f6,0x000001f5,0x0007000c,
0x000000a1,0x000001f7,0x00000001,0x00000028,0x000001f6,0x000001f2,0x00050041,0x000000b2,
0x000001f8,0x000000a5,0x00000071,0x0003003e,0x000001f8,0x000001f7,0x00050041,0x000000b2,
0x000001f9,0x000000a5,0x00000015,0x0004003d,0x000000a1,0x000001fa,0x000001f9,0x0007000c,
0x000000a1,0x000001fb,0x00000001,0x00000028,0x000001fa,0x000001f2,0x00050041,0x000000b2,
0x000001fc,0x000000a5,0x00000015,0x0003003e,0x000001fc,0x000001fb,0x00050041,0x000000b2,
0x000001fd,0x000000a5,0x00000018,0x0004003d,0x000000a1,0x000001fe,0x000001fd,0x0007000c,
0x000000a1,0x000001ff,0x00000001,0x00000028,0x000001fe,0x000001f2,0x00050041,0x000000b2,
0x00000200,0x000000a5,0x00000018,0x0003003e,0x00000200,0x000001ff,0x000200f9,0x000001ef,
0x000200f8,0x00000201,0x00050041,0x0000000d,0x00000202,0x0000000b,0x00000033,0x0004003d,
0x00000006,0x00000203,0x00000202,0x000500aa,0x0000009e,0x00000204,0x00000203,0x00000015,
0x000300f7,0x00000206,0x00000000,0x000400fa,0x00000204,0x00000205,0x00000206,0x000200f8,
0x00000205,0x00050041,0x000000b2,0x00000207,0x000000a5,0x0000006d,0x0004003d,0x000000a1,
0x00000208,0x00000207,0x0008000c,0x000000a1,0x0000020b,0x00000001,0x0000002b,0x00000208,
0x000001f2,0x0000020a,0x00050041,0x000000b2,0x0000020c,0x000000a5,0x0000006d,0x0003003e,
0x0000020c,0x0000020b,0x00050041,0x000000b2,0x0000020d,0x000000a5,0x00000071,0x0004003d,
0x000000a1,0x0000020e,0x0000020d,0x0008000c,0x000000a1,0x0000020f,0x00000001,0x0000002b,
0x0000020e,0x000001f2,0x0000020a,0x00050041,0x000000b2,0x00000210,0x000000a5,0x00000071,
0x0003003e,0x00000210,0x0000020f,0x00050041,0x000000b2,0x00000211,0x000000a5,0x00000015,
0x0004003d,0x000000a1,0x00000212,0x00000211,0x0008000c,0x000000a1,0x00000213,0x00000001,
0x0000002b,0x00000212,0x000001f2,0x0000020a,0x00050041,0x000000b2,0x00000214,0x000000a5,
0x00000015,0x0003003e,0x00000214,0x00000213,0x00050041,0x000000b2,0x00000215,0x000000a5,
0x00000018,0x0004003d,0x000000a1,0x00000216,0x00000215,0x0008000c,0x000000a1,0x00000217,
0x00000001,0x0000002b,0x00000216,0x000001f2,0x0000020a,0x00050041,0x000000b2,0x00000218,
0x000000a5,0x00000018,0x0003003e,0x00000218,0x00000217,0x000200f9,0x00000206,0x000200f8,
0x00000206,0x000200f9,0x000001ef,0x000200f8,0x000001ef,0x0003003e,0x00000219,0x0000006d,
0x000200f9,0x0000021a,0x000200f8,0x0000021a,0x000400f6,0x0000021c,0x0000021d,0x00000000,
0x000200f9,0x0000021e,0x000200f8,0x0000021e,0x0004003d,0x00000006,0x0000021f,0x00000219,
0x000500b1,0x0000009e,0x00000220,0x0000021f,0x00000094,0x000400fa,0x00000220,0x0000021b,
0x0000021c,0x000200f8,0x0000021b,0x0004003d,0x00000006,0x00000222,0x00000028,0x0004003d,
0x00000006,0x00000223,0x00000219,0x00050084,0x00000006,0x00000224,0x00000223,0x00000033,
0x00050080,0x00000006,0x00000225,0x00000222,0x00000224,0x0004003d,0x00000006,0x00000226,
0x00000035,0x00050080,0x00000006,0x00000227,0x00000225,0x00000226,0x0003003e,0x00000221,
0x00000227,0x0004003d,0x00000006,0x00000228,0x00000221,0x0004003d,0x00000006,0x00000229,
0x00000014,0x000500b1,0x0000009e,0x0000022a,0x00000228,0x00000229,0x000300f7,0x0000022c,
0x00000000,0x000400fa,0x0000022a,0x0000022b,0x0000022c,0x000200f8,0x0000022b,0x0003003e,
0x0000022d,0x0000006d,0x000200f9,0x0000022e,0x000200f8,0x0000022e,0x000400f6,0x00000230,
0x00000231,0x00000000,0x000200f9,0x00000232,0x000200f8,0x00000232,0x0004003d,0x00000006,
0x00000233,0x0000022d,0x000500b1,0x0000009e,0x00000234,0x00000233,0x00000094,0x000400fa,
0x00000234,0x0000022f,0x00000230,0x000200f8,0x0000022f,0x0004003d,0x00000006,0x00000236,
0x0000001c,0x0004003d,0x00000006,0x00000237,0x0000002e,0x00050084,0x00000006,0x00000238,
0x00000237,0x00000094,0x00050080,0x00000006,0x00000239,0x00000236,0x00000238,0x0004003d,
0x00000006,0x0000023a,0x0000022d,0x00050080,0x00000006,0x0000023b,0x00000239,0x0000023a,
0x0003003e,0x00000235,0x0000023b,0x0004003d,0x00000006,0x0000023c,0x00000235,0x0004003d,
0x00000006,0x0000023d,0x00000008,0x000500b1,0x0000009e,0x0000023e,0x0000023c,0x0000023d,
0x000300f7,0x00000240,0x00000000,0x000400fa,0x0000023e,0x0000023f,0x00000240,0x000200f8,
0x0000023f,0x0004003d,0x00000006,0x00000245,0x00000079,0x0004003d,0x00000006,0x00000246,
0x00000235,0x0004003d,0x00000006,0x00000247,0x00000014,0x00050084,0x00000006,0x00000248,
0x00000246,0x00000247,0x00050080,0x00000006,0x00000249,0x00000245,0x00000248,0x0004003d,
0x00000006,0x0000024a,0x00000221,0x00050080,0x00000006,0x0000024b,0x00000249,0x0000024a,
0x0004003d,0x00000006,0x0000024c,0x0000022d,0x0004003d,0x00000006,0x0000024d,0x00000219,
0x00060041,0x000001ae,0x0000024e,0x000000a5,0x0000024c,0x0000024d,0x0004003d,0x000000a0,
0x0000024f,0x0000024e,0x00060041,0x000000ae,0x00000250,0x00000244,0x0000006d,0x0000024b,
0x0003003e,0x00000250,0x0000024f,0x000200f9,0x00000240,0x000200f8,0x00000240,0x000200f9,
0x00000231,0x000200f8,0x00000231,0x0004003d,0x00000006,0x00000251,0x0000022d,0x00050080,
0x00000006,0x00000252,0x00000251,0x00000071,0x0003003e,0x0000022d,0x00000252,0x000200f9,
0x0000022e,0x000200f8,0x00000230,0x000200f9,0x0000022c,0x000200f8,0x0000022c,0x000200f9,
0x0000021d,0x000200f8,0x0000021d,0x0004003d,0x00000006,0x00000253,0x00000219,0x00050080,
0x00000006,0x00000254,0x00000253,0x00000071,0x0003003e,0x00000219,0x00000254,0x000200f9,
0x0000021a,0x000200f8,0x0000021c,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,252 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int conv_spv[1894] = {
0x07230203,0x00010000,0x00080001,0x00000123,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00007867,0x00080005,0x0000000c,
0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00030005,0x00000012,
0x00007967,0x00050005,0x00000017,0x68737570,0x636f6c42,0x0000006b,0x00050006,0x00000017,
0x00000000,0x685f6e69,0x00000000,0x00050006,0x00000017,0x00000001,0x775f6e69,0x00000000,
0x00050006,0x00000017,0x00000002,0x5f74756f,0x00000068,0x00050006,0x00000017,0x00000003,
0x5f74756f,0x00000077,0x00060006,0x00000017,0x00000004,0x69727473,0x685f6564,0x00000000,
0x00060006,0x00000017,0x00000005,0x69727473,0x775f6564,0x00000000,0x00050006,0x00000017,
0x00000006,0x5f646170,0x00000068,0x00050006,0x00000017,0x00000007,0x5f646170,0x00000077,
0x00060006,0x00000017,0x00000008,0x746c6966,0x685f7265,0x00000000,0x00060006,0x00000017,
0x00000009,0x746c6966,0x775f7265,0x00000000,0x00060006,0x00000017,0x0000000a,0x616c6964,
0x6e6f6974,0x0000685f,0x00060006,0x00000017,0x0000000b,0x616c6964,0x6e6f6974,0x0000775f,
0x00060006,0x00000017,0x0000000c,0x6e616863,0x736c656e,0x00000000,0x00050006,0x00000017,
0x0000000d,0x63746162,0x00000068,0x00060006,0x00000017,0x0000000e,0x5f736168,0x73616962,
0x00000000,0x00040006,0x00000017,0x0000000f,0x0000004d,0x00040006,0x00000017,0x00000010,
0x0000004b,0x00040006,0x00000017,0x00000011,0x0000004e,0x00090006,0x00000017,0x00000012,
0x69736162,0x68735f63,0x72656461,0x7461625f,0x695f6863,0x00007864,0x00090006,0x00000017,
0x00000013,0x69736162,0x68735f63,0x72656461,0x6f72675f,0x695f7075,0x00007864,0x00090006,
0x00000017,0x00000014,0x69736162,0x68735f63,0x72656461,0x6f72675f,0x735f7075,0x00657a69,
0x00030005,0x00000019,0x00000070,0x00030005,0x00000023,0x00007a67,0x00030005,0x00000039,
0x006d7573,0x00050005,0x0000003b,0x7074756f,0x795f7475,0x00000000,0x00050005,0x00000041,
0x7074756f,0x785f7475,0x00000000,0x00040005,0x00000046,0x5f67726f,0x00000079,0x00040005,
0x00000050,0x5f67726f,0x00000078,0x00050005,0x0000005a,0x67696577,0x6f5f7468,0x00006666,
0x00050005,0x00000060,0x75706e69,0x666f5f74,0x00000066,0x00030005,0x00000075,0x00000063,
0x00030005,0x0000007f,0x00000079,0x00030005,0x0000008a,0x00000078,0x00040005,0x000000c3,
0x75706e49,0x00003074,0x00060006,0x000000c3,0x00000000,0x67616d69,0x61645f65,0x00006174,
0x00030005,0x000000c5,0x00000000,0x00040005,0x000000d0,0x75706e49,0x00003374,0x00060006,
0x000000d0,0x00000000,0x67696577,0x645f7468,0x00617461,0x00030005,0x000000d2,0x00000000,
0x00040005,0x000000fc,0x7366666f,0x00007465,0x00040005,0x00000112,0x75706e49,0x00003174,
0x00060006,0x00000112,0x00000000,0x73616962,0x7461645f,0x00000061,0x00030005,0x00000114,
0x00000000,0x00040005,0x0000011b,0x7074754f,0x00007475,0x00090006,0x0000011b,0x00000000,
0x766e6f63,0x65766c6f,0x6d695f64,0x5f656761,0x61746164,0x00000000,0x00030005,0x0000011d,
0x00000000,0x00040047,0x0000000c,0x0000000b,0x0000001c,0x00050048,0x00000017,0x00000000,
0x00000023,0x00000000,0x00050048,0x00000017,0x00000001,0x00000023,0x00000004,0x00050048,
0x00000017,0x00000002,0x00000023,0x00000008,0x00050048,0x00000017,0x00000003,0x00000023,
0x0000000c,0x00050048,0x00000017,0x00000004,0x00000023,0x00000010,0x00050048,0x00000017,
0x00000005,0x00000023,0x00000014,0x00050048,0x00000017,0x00000006,0x00000023,0x00000018,
0x00050048,0x00000017,0x00000007,0x00000023,0x0000001c,0x00050048,0x00000017,0x00000008,
0x00000023,0x00000020,0x00050048,0x00000017,0x00000009,0x00000023,0x00000024,0x00050048,
0x00000017,0x0000000a,0x00000023,0x00000028,0x00050048,0x00000017,0x0000000b,0x00000023,
0x0000002c,0x00050048,0x00000017,0x0000000c,0x00000023,0x00000030,0x00050048,0x00000017,
0x0000000d,0x00000023,0x00000034,0x00050048,0x00000017,0x0000000e,0x00000023,0x00000038,
0x00050048,0x00000017,0x0000000f,0x00000023,0x0000003c,0x00050048,0x00000017,0x00000010,
0x00000023,0x00000040,0x00050048,0x00000017,0x00000011,0x00000023,0x00000044,0x00050048,
0x00000017,0x00000012,0x00000023,0x00000048,0x00050048,0x00000017,0x00000013,0x00000023,
0x0000004c,0x00050048,0x00000017,0x00000014,0x00000023,0x00000050,0x00030047,0x00000017,
0x00000002,0x00040047,0x000000c2,0x00000006,0x00000004,0x00040048,0x000000c3,0x00000000,
0x00000018,0x00050048,0x000000c3,0x00000000,0x00000023,0x00000000,0x00030047,0x000000c3,
0x00000003,0x00040047,0x000000c5,0x00000022,0x00000000,0x00040047,0x000000c5,0x00000021,
0x00000000,0x00040047,0x000000cf,0x00000006,0x00000004,0x00040048,0x000000d0,0x00000000,
0x00000018,0x00050048,0x000000d0,0x00000000,0x00000023,0x00000000,0x00030047,0x000000d0,
0x00000003,0x00040047,0x000000d2,0x00000022,0x00000000,0x00040047,0x000000d2,0x00000021,
0x00000002,0x00040047,0x00000111,0x00000006,0x00000004,0x00040048,0x00000112,0x00000000,
0x00000018,0x00050048,0x00000112,0x00000000,0x00000023,0x00000000,0x00030047,0x00000112,
0x00000003,0x00040047,0x00000114,0x00000022,0x00000000,0x00040047,0x00000114,0x00000021,
0x00000001,0x00040047,0x0000011a,0x00000006,0x00000004,0x00040048,0x0000011b,0x00000000,
0x00000019,0x00050048,0x0000011b,0x00000000,0x00000023,0x00000000,0x00030047,0x0000011b,
0x00000003,0x00040047,0x0000011d,0x00000022,0x00000000,0x00040047,0x0000011d,0x00000021,
0x00000003,0x00040047,0x00000122,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,
0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,
0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,0x00000000,0x00040017,0x0000000a,
0x00000009,0x00000003,0x00040020,0x0000000b,0x00000001,0x0000000a,0x0004003b,0x0000000b,
0x0000000c,0x00000001,0x0004002b,0x00000009,0x0000000d,0x00000000,0x00040020,0x0000000e,
0x00000001,0x00000009,0x0004002b,0x00000009,0x00000013,0x00000001,0x0017001e,0x00000017,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00040020,0x00000018,0x00000009,
0x00000017,0x0004003b,0x00000018,0x00000019,0x00000009,0x0004002b,0x00000006,0x0000001a,
0x00000013,0x00040020,0x0000001b,0x00000009,0x00000006,0x0004002b,0x00000006,0x0000001e,
0x00000014,0x0004002b,0x00000006,0x00000024,0x00000012,0x00020014,0x00000027,0x0004002b,
0x00000006,0x00000029,0x0000000f,0x0004002b,0x00000006,0x00000030,0x00000011,0x00030016,
0x00000037,0x00000020,0x00040020,0x00000038,0x00000007,0x00000037,0x0004002b,0x00000037,
0x0000003a,0x00000000,0x0004002b,0x00000006,0x0000003d,0x00000003,0x0004002b,0x00000006,
0x00000048,0x00000004,0x0004002b,0x00000006,0x0000004c,0x00000006,0x0004002b,0x00000006,
0x00000052,0x00000005,0x0004002b,0x00000006,0x00000056,0x00000007,0x0004002b,0x00000006,
0x0000005c,0x00000010,0x0004002b,0x00000006,0x00000062,0x00000000,0x0004002b,0x00000006,
0x00000066,0x00000001,0x0004002b,0x00000006,0x0000006a,0x0000000c,0x0004002b,0x00000006,
0x00000086,0x00000008,0x0004002b,0x00000006,0x00000091,0x00000009,0x0004002b,0x00000006,
0x00000097,0x0000000a,0x0004002b,0x00000006,0x000000ad,0x0000000b,0x0003001d,0x000000c2,
0x00000037,0x0003001e,0x000000c3,0x000000c2,0x00040020,0x000000c4,0x00000002,0x000000c3,
0x0004003b,0x000000c4,0x000000c5,0x00000002,0x00040020,0x000000cc,0x00000002,0x00000037,
0x0003001d,0x000000cf,0x00000037,0x0003001e,0x000000d0,0x000000cf,0x00040020,0x000000d1,
0x00000002,0x000000d0,0x0004003b,0x000000d1,0x000000d2,0x00000002,0x0004002b,0x00000006,
0x0000010b,0x0000000e,0x0003001d,0x00000111,0x00000037,0x0003001e,0x00000112,0x00000111,
0x00040020,0x00000113,0x00000002,0x00000112,0x0004003b,0x00000113,0x00000114,0x00000002,
0x0003001d,0x0000011a,0x00000037,0x0003001e,0x0000011b,0x0000011a,0x00040020,0x0000011c,
0x00000002,0x0000011b,0x0004003b,0x0000011c,0x0000011d,0x00000002,0x0004002b,0x00000009,
0x00000121,0x00000100,0x0006002c,0x0000000a,0x00000122,0x00000121,0x00000013,0x00000013,
0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,
0x00000007,0x00000008,0x00000007,0x0004003b,0x00000007,0x00000012,0x00000007,0x0004003b,
0x00000007,0x00000023,0x00000007,0x0004003b,0x00000038,0x00000039,0x00000007,0x0004003b,
0x00000007,0x0000003b,0x00000007,0x0004003b,0x00000007,0x00000041,0x00000007,0x0004003b,
0x00000007,0x00000046,0x00000007,0x0004003b,0x00000007,0x00000050,0x00000007,0x0004003b,
0x00000007,0x0000005a,0x00000007,0x0004003b,0x00000007,0x00000060,0x00000007,0x0004003b,
0x00000007,0x00000075,0x00000007,0x0004003b,0x00000007,0x0000007f,0x00000007,0x0004003b,
0x00000007,0x0000008a,0x00000007,0x0004003b,0x00000007,0x000000fc,0x00000007,0x00050041,
0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,0x0000000f,
0x0004007c,0x00000006,0x00000011,0x00000010,0x0003003e,0x00000008,0x00000011,0x00050041,
0x0000000e,0x00000014,0x0000000c,0x00000013,0x0004003d,0x00000009,0x00000015,0x00000014,
0x0004007c,0x00000006,0x00000016,0x00000015,0x00050041,0x0000001b,0x0000001c,0x00000019,
0x0000001a,0x0004003d,0x00000006,0x0000001d,0x0000001c,0x00050041,0x0000001b,0x0000001f,
0x00000019,0x0000001e,0x0004003d,0x00000006,0x00000020,0x0000001f,0x00050084,0x00000006,
0x00000021,0x0000001d,0x00000020,0x00050080,0x00000006,0x00000022,0x00000016,0x00000021,
0x0003003e,0x00000012,0x00000022,0x00050041,0x0000001b,0x00000025,0x00000019,0x00000024,
0x0004003d,0x00000006,0x00000026,0x00000025,0x0003003e,0x00000023,0x00000026,0x0004003d,
0x00000006,0x00000028,0x00000008,0x00050041,0x0000001b,0x0000002a,0x00000019,0x00000029,
0x0004003d,0x00000006,0x0000002b,0x0000002a,0x000500b1,0x00000027,0x0000002c,0x00000028,
0x0000002b,0x000300f7,0x0000002e,0x00000000,0x000400fa,0x0000002c,0x0000002d,0x0000002e,
0x000200f8,0x0000002d,0x0004003d,0x00000006,0x0000002f,0x00000012,0x00050041,0x0000001b,
0x00000031,0x00000019,0x00000030,0x0004003d,0x00000006,0x00000032,0x00000031,0x000500b1,
0x00000027,0x00000033,0x0000002f,0x00000032,0x000200f9,0x0000002e,0x000200f8,0x0000002e,
0x000700f5,0x00000027,0x00000034,0x0000002c,0x00000005,0x00000033,0x0000002d,0x000300f7,
0x00000036,0x00000000,0x000400fa,0x00000034,0x00000035,0x00000036,0x000200f8,0x00000035,
0x0003003e,0x00000039,0x0000003a,0x0004003d,0x00000006,0x0000003c,0x00000008,0x00050041,
0x0000001b,0x0000003e,0x00000019,0x0000003d,0x0004003d,0x00000006,0x0000003f,0x0000003e,
0x00050087,0x00000006,0x00000040,0x0000003c,0x0000003f,0x0003003e,0x0000003b,0x00000040,
0x0004003d,0x00000006,0x00000042,0x00000008,0x00050041,0x0000001b,0x00000043,0x00000019,
0x0000003d,0x0004003d,0x00000006,0x00000044,0x00000043,0x0005008b,0x00000006,0x00000045,
0x00000042,0x00000044,0x0003003e,0x00000041,0x00000045,0x0004003d,0x00000006,0x00000047,
0x0000003b,0x00050041,0x0000001b,0x00000049,0x00000019,0x00000048,0x0004003d,0x00000006,
0x0000004a,0x00000049,0x00050084,0x00000006,0x0000004b,0x00000047,0x0000004a,0x00050041,
0x0000001b,0x0000004d,0x00000019,0x0000004c,0x0004003d,0x00000006,0x0000004e,0x0000004d,
0x00050082,0x00000006,0x0000004f,0x0000004b,0x0000004e,0x0003003e,0x00000046,0x0000004f,
0x0004003d,0x00000006,0x00000051,0x00000041,0x00050041,0x0000001b,0x00000053,0x00000019,
0x00000052,0x0004003d,0x00000006,0x00000054,0x00000053,0x00050084,0x00000006,0x00000055,
0x00000051,0x00000054,0x00050041,0x0000001b,0x00000057,0x00000019,0x00000056,0x0004003d,
0x00000006,0x00000058,0x00000057,0x00050082,0x00000006,0x00000059,0x00000055,0x00000058,
0x0003003e,0x00000050,0x00000059,0x0004003d,0x00000006,0x0000005b,0x00000012,0x00050041,
0x0000001b,0x0000005d,0x00000019,0x0000005c,0x0004003d,0x00000006,0x0000005e,0x0000005d,
0x00050084,0x00000006,0x0000005f,0x0000005b,0x0000005e,0x0003003e,0x0000005a,0x0000005f,
0x0004003d,0x00000006,0x00000061,0x00000023,0x00050041,0x0000001b,0x00000063,0x00000019,
0x00000062,0x0004003d,0x00000006,0x00000064,0x00000063,0x00050084,0x00000006,0x00000065,
0x00000061,0x00000064,0x00050041,0x0000001b,0x00000067,0x00000019,0x00000066,0x0004003d,
0x00000006,0x00000068,0x00000067,0x00050084,0x00000006,0x00000069,0x00000065,0x00000068,
0x00050041,0x0000001b,0x0000006b,0x00000019,0x0000006a,0x0004003d,0x00000006,0x0000006c,
0x0000006b,0x00050084,0x00000006,0x0000006d,0x00000069,0x0000006c,0x0004003d,0x00000006,
0x0000006e,0x00000046,0x00050041,0x0000001b,0x0000006f,0x00000019,0x00000066,0x0004003d,
0x00000006,0x00000070,0x0000006f,0x00050084,0x00000006,0x00000071,0x0000006e,0x00000070,
0x0004003d,0x00000006,0x00000072,0x00000050,0x00050080,0x00000006,0x00000073,0x00000071,
0x00000072,0x00050080,0x00000006,0x00000074,0x0000006d,0x00000073,0x0003003e,0x00000060,
0x00000074,0x0003003e,0x00000075,0x00000062,0x000200f9,0x00000076,0x000200f8,0x00000076,
0x000400f6,0x00000078,0x00000079,0x00000000,0x000200f9,0x0000007a,0x000200f8,0x0000007a,
0x0004003d,0x00000006,0x0000007b,0x00000075,0x00050041,0x0000001b,0x0000007c,0x00000019,
0x0000006a,0x0004003d,0x00000006,0x0000007d,0x0000007c,0x000500b1,0x00000027,0x0000007e,
0x0000007b,0x0000007d,0x000400fa,0x0000007e,0x00000077,0x00000078,0x000200f8,0x00000077,
0x0003003e,0x0000007f,0x00000062,0x000200f9,0x00000080,0x000200f8,0x00000080,0x000400f6,
0x00000082,0x00000083,0x00000000,0x000200f9,0x00000084,0x000200f8,0x00000084,0x0004003d,
0x00000006,0x00000085,0x0000007f,0x00050041,0x0000001b,0x00000087,0x00000019,0x00000086,
0x0004003d,0x00000006,0x00000088,0x00000087,0x000500b1,0x00000027,0x00000089,0x00000085,
0x00000088,0x000400fa,0x00000089,0x00000081,0x00000082,0x000200f8,0x00000081,0x0003003e,
0x0000008a,0x00000062,0x000200f9,0x0000008b,0x000200f8,0x0000008b,0x000400f6,0x0000008d,
0x0000008e,0x00000000,0x000200f9,0x0000008f,0x000200f8,0x0000008f,0x0004003d,0x00000006,
0x00000090,0x0000008a,0x00050041,0x0000001b,0x00000092,0x00000019,0x00000091,0x0004003d,
0x00000006,0x00000093,0x00000092,0x000500b1,0x00000027,0x00000094,0x00000090,0x00000093,
0x000400fa,0x00000094,0x0000008c,0x0000008d,0x000200f8,0x0000008c,0x0004003d,0x00000006,
0x00000095,0x00000046,0x0004003d,0x00000006,0x00000096,0x0000007f,0x00050041,0x0000001b,
0x00000098,0x00000019,0x00000097,0x0004003d,0x00000006,0x00000099,0x00000098,0x00050084,
0x00000006,0x0000009a,0x00000096,0x00000099,0x00050080,0x00000006,0x0000009b,0x00000095,
0x0000009a,0x000500af,0x00000027,0x0000009c,0x0000009b,0x00000062,0x000300f7,0x0000009e,
0x00000000,0x000400fa,0x0000009c,0x0000009d,0x0000009e,0x000200f8,0x0000009d,0x0004003d,
0x00000006,0x0000009f,0x00000046,0x0004003d,0x00000006,0x000000a0,0x0000007f,0x00050041,
0x0000001b,0x000000a1,0x00000019,0x00000097,0x0004003d,0x00000006,0x000000a2,0x000000a1,
0x00050084,0x00000006,0x000000a3,0x000000a0,0x000000a2,0x00050080,0x00000006,0x000000a4,
0x0000009f,0x000000a3,0x00050041,0x0000001b,0x000000a5,0x00000019,0x00000062,0x0004003d,
0x00000006,0x000000a6,0x000000a5,0x000500b1,0x00000027,0x000000a7,0x000000a4,0x000000a6,
0x000200f9,0x0000009e,0x000200f8,0x0000009e,0x000700f5,0x00000027,0x000000a8,0x0000009c,
0x0000008c,0x000000a7,0x0000009d,0x000300f7,0x000000aa,0x00000000,0x000400fa,0x000000a8,
0x000000a9,0x000000aa,0x000200f8,0x000000a9,0x0004003d,0x00000006,0x000000ab,0x00000050,
0x0004003d,0x00000006,0x000000ac,0x0000008a,0x00050041,0x0000001b,0x000000ae,0x00000019,
0x000000ad,0x0004003d,0x00000006,0x000000af,0x000000ae,0x00050084,0x00000006,0x000000b0,
0x000000ac,0x000000af,0x00050080,0x00000006,0x000000b1,0x000000ab,0x000000b0,0x000500af,
0x00000027,0x000000b2,0x000000b1,0x00000062,0x000200f9,0x000000aa,0x000200f8,0x000000aa,
0x000700f5,0x00000027,0x000000b3,0x000000a8,0x0000009e,0x000000b2,0x000000a9,0x000300f7,
0x000000b5,0x00000000,0x000400fa,0x000000b3,0x000000b4,0x000000b5,0x000200f8,0x000000b4,
0x0004003d,0x00000006,0x000000b6,0x00000050,0x0004003d,0x00000006,0x000000b7,0x0000008a,
0x00050041,0x0000001b,0x000000b8,0x00000019,0x000000ad,0x0004003d,0x00000006,0x000000b9,
0x000000b8,0x00050084,0x00000006,0x000000ba,0x000000b7,0x000000b9,0x00050080,0x00000006,
0x000000bb,0x000000b6,0x000000ba,0x00050041,0x0000001b,0x000000bc,0x00000019,0x00000066,
0x0004003d,0x00000006,0x000000bd,0x000000bc,0x000500b1,0x00000027,0x000000be,0x000000bb,
0x000000bd,0x000200f9,0x000000b5,0x000200f8,0x000000b5,0x000700f5,0x00000027,0x000000bf,
0x000000b3,0x000000aa,0x000000be,0x000000b4,0x000300f7,0x000000c1,0x00000000,0x000400fa,
0x000000bf,0x000000c0,0x000000c1,0x000200f8,0x000000c0,0x0004003d,0x00000006,0x000000c6,
0x00000060,0x0004003d,0x00000006,0x000000c7,0x0000008a,0x00050041,0x0000001b,0x000000c8,
0x00000019,0x000000ad,0x0004003d,0x00000006,0x000000c9,0x000000c8,0x00050084,0x00000006,
0x000000ca,0x000000c7,0x000000c9,0x00050080,0x00000006,0x000000cb,0x000000c6,0x000000ca,
0x00060041,0x000000cc,0x000000cd,0x000000c5,0x00000062,0x000000cb,0x0004003d,0x00000037,
0x000000ce,0x000000cd,0x0004003d,0x00000006,0x000000d3,0x0000005a,0x0004003d,0x00000006,
0x000000d4,0x0000008a,0x00050080,0x00000006,0x000000d5,0x000000d3,0x000000d4,0x00060041,
0x000000cc,0x000000d6,0x000000d2,0x00000062,0x000000d5,0x0004003d,0x00000037,0x000000d7,
0x000000d6,0x00050085,0x00000037,0x000000d8,0x000000ce,0x000000d7,0x0004003d,0x00000037,
0x000000d9,0x00000039,0x00050081,0x00000037,0x000000da,0x000000d9,0x000000d8,0x0003003e,
0x00000039,0x000000da,0x000200f9,0x000000c1,0x000200f8,0x000000c1,0x000200f9,0x0000008e,
0x000200f8,0x0000008e,0x0004003d,0x00000006,0x000000db,0x0000008a,0x00050080,0x00000006,
0x000000dc,0x000000db,0x00000066,0x0003003e,0x0000008a,0x000000dc,0x000200f9,0x0000008b,
0x000200f8,0x0000008d,0x00050041,0x0000001b,0x000000dd,0x00000019,0x00000066,0x0004003d,
0x00000006,0x000000de,0x000000dd,0x00050041,0x0000001b,0x000000df,0x00000019,0x00000097,
0x0004003d,0x00000006,0x000000e0,0x000000df,0x00050084,0x00000006,0x000000e1,0x000000de,
0x000000e0,0x0004003d,0x00000006,0x000000e2,0x00000060,0x00050080,0x00000006,0x000000e3,
0x000000e2,0x000000e1,0x0003003e,0x00000060,0x000000e3,0x00050041,0x0000001b,0x000000e4,
0x00000019,0x00000091,0x0004003d,0x00000006,0x000000e5,0x000000e4,0x0004003d,0x00000006,
0x000000e6,0x0000005a,0x00050080,0x00000006,0x000000e7,0x000000e6,0x000000e5,0x0003003e,
0x0000005a,0x000000e7,0x000200f9,0x00000083,0x000200f8,0x00000083,0x0004003d,0x00000006,
0x000000e8,0x0000007f,0x00050080,0x00000006,0x000000e9,0x000000e8,0x00000066,0x0003003e,
0x0000007f,0x000000e9,0x000200f9,0x00000080,0x000200f8,0x00000082,0x00050041,0x0000001b,
0x000000ea,0x00000019,0x00000062,0x0004003d,0x00000006,0x000000eb,0x000000ea,0x00050041,
0x0000001b,0x000000ec,0x00000019,0x00000066,0x0004003d,0x00000006,0x000000ed,0x000000ec,
0x00050084,0x00000006,0x000000ee,0x000000eb,0x000000ed,0x00050041,0x0000001b,0x000000ef,
0x00000019,0x00000066,0x0004003d,0x00000006,0x000000f0,0x000000ef,0x00050041,0x0000001b,
0x000000f1,0x00000019,0x00000086,0x0004003d,0x00000006,0x000000f2,0x000000f1,0x00050084,
0x00000006,0x000000f3,0x000000f0,0x000000f2,0x00050041,0x0000001b,0x000000f4,0x00000019,
0x00000097,0x0004003d,0x00000006,0x000000f5,0x000000f4,0x00050084,0x00000006,0x000000f6,
0x000000f3,0x000000f5,0x00050082,0x00000006,0x000000f7,0x000000ee,0x000000f6,0x0004003d,
0x00000006,0x000000f8,0x00000060,0x00050080,0x00000006,0x000000f9,0x000000f8,0x000000f7,
0x0003003e,0x00000060,0x000000f9,0x000200f9,0x00000079,0x000200f8,0x00000079,0x0004003d,
0x00000006,0x000000fa,0x00000075,0x00050080,0x00000006,0x000000fb,0x000000fa,0x00000066,
0x0003003e,0x00000075,0x000000fb,0x000200f9,0x00000076,0x000200f8,0x00000078,0x0004003d,
0x00000006,0x000000fd,0x00000023,0x00050041,0x0000001b,0x000000fe,0x00000019,0x00000029,
0x0004003d,0x00000006,0x000000ff,0x000000fe,0x00050084,0x00000006,0x00000100,0x000000fd,
0x000000ff,0x00050041,0x0000001b,0x00000101,0x00000019,0x00000030,0x0004003d,0x00000006,
0x00000102,0x00000101,0x00050084,0x00000006,0x00000103,0x00000100,0x00000102,0x0004003d,
0x00000006,0x00000104,0x00000008,0x00050080,0x00000006,0x00000105,0x00000103,0x00000104,
0x0004003d,0x00000006,0x00000106,0x00000012,0x00050041,0x0000001b,0x00000107,0x00000019,
0x00000029,0x0004003d,0x00000006,0x00000108,0x00000107,0x00050084,0x00000006,0x00000109,
0x00000106,0x00000108,0x00050080,0x00000006,0x0000010a,0x00000105,0x00000109,0x0003003e,
0x000000fc,0x0000010a,0x00050041,0x0000001b,0x0000010c,0x00000019,0x0000010b,0x0004003d,
0x00000006,0x0000010d,0x0000010c,0x000500aa,0x00000027,0x0000010e,0x0000010d,0x00000066,
0x000300f7,0x00000110,0x00000000,0x000400fa,0x0000010e,0x0000010f,0x00000110,0x000200f8,
0x0000010f,0x0004003d,0x00000006,0x00000115,0x00000012,0x00060041,0x000000cc,0x00000116,
0x00000114,0x00000062,0x00000115,0x0004003d,0x00000037,0x00000117,0x00000116,0x0004003d,
0x00000037,0x00000118,0x00000039,0x00050081,0x00000037,0x00000119,0x00000118,0x00000117,
0x0003003e,0x00000039,0x00000119,0x000200f9,0x00000110,0x000200f8,0x00000110,0x0004003d,
0x00000006,0x0000011e,0x000000fc,0x0004003d,0x00000037,0x0000011f,0x00000039,0x00060041,
0x000000cc,0x00000120,0x0000011d,0x00000062,0x0000011e,0x0003003e,0x00000120,0x0000011f,
0x000200f9,0x00000036,0x000200f8,0x00000036,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,77 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(push_constant) uniform pushBlock {
int in_h;
int in_w;
int out_h;
int out_w;
int stride_h;
int stride_w;
int pad_h;
int pad_w;
int filter_h;
int filter_w;
int dilation_h;
int dilation_w;
int channels;
int batch;
int has_bias;
int M;
int K;
int N;
int basic_shader_batch_idx;
int basic_shader_partition_idx;
int basic_shader_partition_size;
} p;
layout(binding = 0) readonly buffer Input0{
float in_buffer[];
};
layout(binding = 1) readonly buffer Input1 {
float bias_data[];
};
layout(binding = 2) readonly buffer Input3{
float weight_data[];
};
layout(binding = 3) writeonly buffer Output{
float out_buffer[];
};
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
/*
Each work item compute one output cell
*/
void main()
{
int gx = int(gl_GlobalInvocationID.x);
int gy = int(gl_GlobalInvocationID.y);
int gz = int(gl_GlobalInvocationID.z);
if(gx < p.out_w && gy < p.out_h && gz < p.channels)
{
float sum = 0.0f;
int org_y = gy * p.stride_h - p.pad_h;
int org_x = gx * p.stride_w - p.pad_w;
int weight_off = gz * p.filter_h * p.filter_w;
int input_off = (p.basic_shader_batch_idx * p.channels + gz) * p.in_h * p.in_w + org_y * p.in_w + org_x;
for(int y = 0; y < p.filter_h; y++)
{
for(int x = 0; x < p.filter_w; x++)
{
if(org_y + y * p.dilation_h >= 0 && org_y + y * p.dilation_h < p.in_h && org_x + x * p.dilation_w >= 0 && org_x + x * p.dilation_w < p.in_w)
{
sum += in_buffer[input_off + x * p.dilation_w] * weight_data[weight_off + x];
}
}
weight_off += p.filter_w;
input_off += p.in_w * p.dilation_h;
}
int offset = (p.basic_shader_batch_idx * p.channels + gz) * p.out_h * p.out_w + gy * p.out_w + gx;
if (p.has_bias == 1)
out_buffer[offset] = sum + bias_data[gz];
else
out_buffer[offset] = sum;
}
}

View File

@ -1,235 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int dw_conv_spv[1760] = {
0x07230203,0x00010000,0x00080001,0x0000010b,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00007867,0x00080005,0x0000000c,
0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00030005,0x00000012,
0x00007967,0x00030005,0x00000017,0x00007a67,0x00050005,0x0000001e,0x68737570,0x636f6c42,
0x0000006b,0x00050006,0x0000001e,0x00000000,0x685f6e69,0x00000000,0x00050006,0x0000001e,
0x00000001,0x775f6e69,0x00000000,0x00050006,0x0000001e,0x00000002,0x5f74756f,0x00000068,
0x00050006,0x0000001e,0x00000003,0x5f74756f,0x00000077,0x00060006,0x0000001e,0x00000004,
0x69727473,0x685f6564,0x00000000,0x00060006,0x0000001e,0x00000005,0x69727473,0x775f6564,
0x00000000,0x00050006,0x0000001e,0x00000006,0x5f646170,0x00000068,0x00050006,0x0000001e,
0x00000007,0x5f646170,0x00000077,0x00060006,0x0000001e,0x00000008,0x746c6966,0x685f7265,
0x00000000,0x00060006,0x0000001e,0x00000009,0x746c6966,0x775f7265,0x00000000,0x00060006,
0x0000001e,0x0000000a,0x616c6964,0x6e6f6974,0x0000685f,0x00060006,0x0000001e,0x0000000b,
0x616c6964,0x6e6f6974,0x0000775f,0x00060006,0x0000001e,0x0000000c,0x6e616863,0x736c656e,
0x00000000,0x00050006,0x0000001e,0x0000000d,0x63746162,0x00000068,0x00060006,0x0000001e,
0x0000000e,0x5f736168,0x73616962,0x00000000,0x00040006,0x0000001e,0x0000000f,0x0000004d,
0x00040006,0x0000001e,0x00000010,0x0000004b,0x00040006,0x0000001e,0x00000011,0x0000004e,
0x00090006,0x0000001e,0x00000012,0x69736162,0x68735f63,0x72656461,0x7461625f,0x695f6863,
0x00007864,0x00090006,0x0000001e,0x00000013,0x69736162,0x68735f63,0x72656461,0x6f72675f,
0x695f7075,0x00007864,0x00090006,0x0000001e,0x00000014,0x69736162,0x68735f63,0x72656461,
0x6f72675f,0x735f7075,0x00657a69,0x00030005,0x00000020,0x00000070,0x00030005,0x0000003a,
0x006d7573,0x00040005,0x0000003c,0x5f67726f,0x00000079,0x00040005,0x00000046,0x5f67726f,
0x00000078,0x00050005,0x00000050,0x67696577,0x6f5f7468,0x00006666,0x00050005,0x0000005a,
0x75706e69,0x666f5f74,0x00000066,0x00030005,0x00000072,0x00000079,0x00030005,0x0000007c,
0x00000078,0x00040005,0x000000b4,0x75706e49,0x00003074,0x00060006,0x000000b4,0x00000000,
0x625f6e69,0x65666675,0x00000072,0x00030005,0x000000b6,0x00000000,0x00040005,0x000000c1,
0x75706e49,0x00003374,0x00060006,0x000000c1,0x00000000,0x67696577,0x645f7468,0x00617461,
0x00030005,0x000000c3,0x00000000,0x00040005,0x000000db,0x7366666f,0x00007465,0x00040005,
0x000000f7,0x7074754f,0x00007475,0x00060006,0x000000f7,0x00000000,0x5f74756f,0x66667562,
0x00007265,0x00030005,0x000000f9,0x00000000,0x00040005,0x000000fd,0x75706e49,0x00003174,
0x00060006,0x000000fd,0x00000000,0x73616962,0x7461645f,0x00000061,0x00030005,0x000000ff,
0x00000000,0x00040047,0x0000000c,0x0000000b,0x0000001c,0x00050048,0x0000001e,0x00000000,
0x00000023,0x00000000,0x00050048,0x0000001e,0x00000001,0x00000023,0x00000004,0x00050048,
0x0000001e,0x00000002,0x00000023,0x00000008,0x00050048,0x0000001e,0x00000003,0x00000023,
0x0000000c,0x00050048,0x0000001e,0x00000004,0x00000023,0x00000010,0x00050048,0x0000001e,
0x00000005,0x00000023,0x00000014,0x00050048,0x0000001e,0x00000006,0x00000023,0x00000018,
0x00050048,0x0000001e,0x00000007,0x00000023,0x0000001c,0x00050048,0x0000001e,0x00000008,
0x00000023,0x00000020,0x00050048,0x0000001e,0x00000009,0x00000023,0x00000024,0x00050048,
0x0000001e,0x0000000a,0x00000023,0x00000028,0x00050048,0x0000001e,0x0000000b,0x00000023,
0x0000002c,0x00050048,0x0000001e,0x0000000c,0x00000023,0x00000030,0x00050048,0x0000001e,
0x0000000d,0x00000023,0x00000034,0x00050048,0x0000001e,0x0000000e,0x00000023,0x00000038,
0x00050048,0x0000001e,0x0000000f,0x00000023,0x0000003c,0x00050048,0x0000001e,0x00000010,
0x00000023,0x00000040,0x00050048,0x0000001e,0x00000011,0x00000023,0x00000044,0x00050048,
0x0000001e,0x00000012,0x00000023,0x00000048,0x00050048,0x0000001e,0x00000013,0x00000023,
0x0000004c,0x00050048,0x0000001e,0x00000014,0x00000023,0x00000050,0x00030047,0x0000001e,
0x00000002,0x00040047,0x000000b3,0x00000006,0x00000004,0x00040048,0x000000b4,0x00000000,
0x00000018,0x00050048,0x000000b4,0x00000000,0x00000023,0x00000000,0x00030047,0x000000b4,
0x00000003,0x00040047,0x000000b6,0x00000022,0x00000000,0x00040047,0x000000b6,0x00000021,
0x00000000,0x00040047,0x000000c0,0x00000006,0x00000004,0x00040048,0x000000c1,0x00000000,
0x00000018,0x00050048,0x000000c1,0x00000000,0x00000023,0x00000000,0x00030047,0x000000c1,
0x00000003,0x00040047,0x000000c3,0x00000022,0x00000000,0x00040047,0x000000c3,0x00000021,
0x00000002,0x00040047,0x000000f6,0x00000006,0x00000004,0x00040048,0x000000f7,0x00000000,
0x00000019,0x00050048,0x000000f7,0x00000000,0x00000023,0x00000000,0x00030047,0x000000f7,
0x00000003,0x00040047,0x000000f9,0x00000022,0x00000000,0x00040047,0x000000f9,0x00000021,
0x00000003,0x00040047,0x000000fc,0x00000006,0x00000004,0x00040048,0x000000fd,0x00000000,
0x00000018,0x00050048,0x000000fd,0x00000000,0x00000023,0x00000000,0x00030047,0x000000fd,
0x00000003,0x00040047,0x000000ff,0x00000022,0x00000000,0x00040047,0x000000ff,0x00000021,
0x00000001,0x00040047,0x0000010a,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,
0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,
0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,0x00000000,0x00040017,0x0000000a,
0x00000009,0x00000003,0x00040020,0x0000000b,0x00000001,0x0000000a,0x0004003b,0x0000000b,
0x0000000c,0x00000001,0x0004002b,0x00000009,0x0000000d,0x00000000,0x00040020,0x0000000e,
0x00000001,0x00000009,0x0004002b,0x00000009,0x00000013,0x00000001,0x0004002b,0x00000009,
0x00000018,0x00000002,0x00020014,0x0000001c,0x0017001e,0x0000001e,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00040020,0x0000001f,0x00000009,0x0000001e,0x0004003b,
0x0000001f,0x00000020,0x00000009,0x0004002b,0x00000006,0x00000021,0x00000003,0x00040020,
0x00000022,0x00000009,0x00000006,0x0004002b,0x00000006,0x00000029,0x00000002,0x0004002b,
0x00000006,0x00000031,0x0000000c,0x00030016,0x00000038,0x00000020,0x00040020,0x00000039,
0x00000007,0x00000038,0x0004002b,0x00000038,0x0000003b,0x00000000,0x0004002b,0x00000006,
0x0000003e,0x00000004,0x0004002b,0x00000006,0x00000042,0x00000006,0x0004002b,0x00000006,
0x00000048,0x00000005,0x0004002b,0x00000006,0x0000004c,0x00000007,0x0004002b,0x00000006,
0x00000052,0x00000008,0x0004002b,0x00000006,0x00000056,0x00000009,0x0004002b,0x00000006,
0x0000005b,0x00000012,0x0004002b,0x00000006,0x00000063,0x00000000,0x0004002b,0x00000006,
0x00000067,0x00000001,0x0004002b,0x00000006,0x00000088,0x0000000a,0x0004002b,0x00000006,
0x0000009e,0x0000000b,0x0003001d,0x000000b3,0x00000038,0x0003001e,0x000000b4,0x000000b3,
0x00040020,0x000000b5,0x00000002,0x000000b4,0x0004003b,0x000000b5,0x000000b6,0x00000002,
0x00040020,0x000000bd,0x00000002,0x00000038,0x0003001d,0x000000c0,0x00000038,0x0003001e,
0x000000c1,0x000000c0,0x00040020,0x000000c2,0x00000002,0x000000c1,0x0004003b,0x000000c2,
0x000000c3,0x00000002,0x0004002b,0x00000006,0x000000f0,0x0000000e,0x0003001d,0x000000f6,
0x00000038,0x0003001e,0x000000f7,0x000000f6,0x00040020,0x000000f8,0x00000002,0x000000f7,
0x0004003b,0x000000f8,0x000000f9,0x00000002,0x0003001d,0x000000fc,0x00000038,0x0003001e,
0x000000fd,0x000000fc,0x00040020,0x000000fe,0x00000002,0x000000fd,0x0004003b,0x000000fe,
0x000000ff,0x00000002,0x0004002b,0x00000009,0x00000109,0x00000100,0x0006002c,0x0000000a,
0x0000010a,0x00000109,0x00000013,0x00000013,0x00050036,0x00000002,0x00000004,0x00000000,
0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,0x0004003b,
0x00000007,0x00000012,0x00000007,0x0004003b,0x00000007,0x00000017,0x00000007,0x0004003b,
0x00000039,0x0000003a,0x00000007,0x0004003b,0x00000007,0x0000003c,0x00000007,0x0004003b,
0x00000007,0x00000046,0x00000007,0x0004003b,0x00000007,0x00000050,0x00000007,0x0004003b,
0x00000007,0x0000005a,0x00000007,0x0004003b,0x00000007,0x00000072,0x00000007,0x0004003b,
0x00000007,0x0000007c,0x00000007,0x0004003b,0x00000007,0x000000db,0x00000007,0x00050041,
0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,0x0000000f,
0x0004007c,0x00000006,0x00000011,0x00000010,0x0003003e,0x00000008,0x00000011,0x00050041,
0x0000000e,0x00000014,0x0000000c,0x00000013,0x0004003d,0x00000009,0x00000015,0x00000014,
0x0004007c,0x00000006,0x00000016,0x00000015,0x0003003e,0x00000012,0x00000016,0x00050041,
0x0000000e,0x00000019,0x0000000c,0x00000018,0x0004003d,0x00000009,0x0000001a,0x00000019,
0x0004007c,0x00000006,0x0000001b,0x0000001a,0x0003003e,0x00000017,0x0000001b,0x0004003d,
0x00000006,0x0000001d,0x00000008,0x00050041,0x00000022,0x00000023,0x00000020,0x00000021,
0x0004003d,0x00000006,0x00000024,0x00000023,0x000500b1,0x0000001c,0x00000025,0x0000001d,
0x00000024,0x000300f7,0x00000027,0x00000000,0x000400fa,0x00000025,0x00000026,0x00000027,
0x000200f8,0x00000026,0x0004003d,0x00000006,0x00000028,0x00000012,0x00050041,0x00000022,
0x0000002a,0x00000020,0x00000029,0x0004003d,0x00000006,0x0000002b,0x0000002a,0x000500b1,
0x0000001c,0x0000002c,0x00000028,0x0000002b,0x000200f9,0x00000027,0x000200f8,0x00000027,
0x000700f5,0x0000001c,0x0000002d,0x00000025,0x00000005,0x0000002c,0x00000026,0x000300f7,
0x0000002f,0x00000000,0x000400fa,0x0000002d,0x0000002e,0x0000002f,0x000200f8,0x0000002e,
0x0004003d,0x00000006,0x00000030,0x00000017,0x00050041,0x00000022,0x00000032,0x00000020,
0x00000031,0x0004003d,0x00000006,0x00000033,0x00000032,0x000500b1,0x0000001c,0x00000034,
0x00000030,0x00000033,0x000200f9,0x0000002f,0x000200f8,0x0000002f,0x000700f5,0x0000001c,
0x00000035,0x0000002d,0x00000027,0x00000034,0x0000002e,0x000300f7,0x00000037,0x00000000,
0x000400fa,0x00000035,0x00000036,0x00000037,0x000200f8,0x00000036,0x0003003e,0x0000003a,
0x0000003b,0x0004003d,0x00000006,0x0000003d,0x00000012,0x00050041,0x00000022,0x0000003f,
0x00000020,0x0000003e,0x0004003d,0x00000006,0x00000040,0x0000003f,0x00050084,0x00000006,
0x00000041,0x0000003d,0x00000040,0x00050041,0x00000022,0x00000043,0x00000020,0x00000042,
0x0004003d,0x00000006,0x00000044,0x00000043,0x00050082,0x00000006,0x00000045,0x00000041,
0x00000044,0x0003003e,0x0000003c,0x00000045,0x0004003d,0x00000006,0x00000047,0x00000008,
0x00050041,0x00000022,0x00000049,0x00000020,0x00000048,0x0004003d,0x00000006,0x0000004a,
0x00000049,0x00050084,0x00000006,0x0000004b,0x00000047,0x0000004a,0x00050041,0x00000022,
0x0000004d,0x00000020,0x0000004c,0x0004003d,0x00000006,0x0000004e,0x0000004d,0x00050082,
0x00000006,0x0000004f,0x0000004b,0x0000004e,0x0003003e,0x00000046,0x0000004f,0x0004003d,
0x00000006,0x00000051,0x00000017,0x00050041,0x00000022,0x00000053,0x00000020,0x00000052,
0x0004003d,0x00000006,0x00000054,0x00000053,0x00050084,0x00000006,0x00000055,0x00000051,
0x00000054,0x00050041,0x00000022,0x00000057,0x00000020,0x00000056,0x0004003d,0x00000006,
0x00000058,0x00000057,0x00050084,0x00000006,0x00000059,0x00000055,0x00000058,0x0003003e,
0x00000050,0x00000059,0x00050041,0x00000022,0x0000005c,0x00000020,0x0000005b,0x0004003d,
0x00000006,0x0000005d,0x0000005c,0x00050041,0x00000022,0x0000005e,0x00000020,0x00000031,
0x0004003d,0x00000006,0x0000005f,0x0000005e,0x00050084,0x00000006,0x00000060,0x0000005d,
0x0000005f,0x0004003d,0x00000006,0x00000061,0x00000017,0x00050080,0x00000006,0x00000062,
0x00000060,0x00000061,0x00050041,0x00000022,0x00000064,0x00000020,0x00000063,0x0004003d,
0x00000006,0x00000065,0x00000064,0x00050084,0x00000006,0x00000066,0x00000062,0x00000065,
0x00050041,0x00000022,0x00000068,0x00000020,0x00000067,0x0004003d,0x00000006,0x00000069,
0x00000068,0x00050084,0x00000006,0x0000006a,0x00000066,0x00000069,0x0004003d,0x00000006,
0x0000006b,0x0000003c,0x00050041,0x00000022,0x0000006c,0x00000020,0x00000067,0x0004003d,
0x00000006,0x0000006d,0x0000006c,0x00050084,0x00000006,0x0000006e,0x0000006b,0x0000006d,
0x00050080,0x00000006,0x0000006f,0x0000006a,0x0000006e,0x0004003d,0x00000006,0x00000070,
0x00000046,0x00050080,0x00000006,0x00000071,0x0000006f,0x00000070,0x0003003e,0x0000005a,
0x00000071,0x0003003e,0x00000072,0x00000063,0x000200f9,0x00000073,0x000200f8,0x00000073,
0x000400f6,0x00000075,0x00000076,0x00000000,0x000200f9,0x00000077,0x000200f8,0x00000077,
0x0004003d,0x00000006,0x00000078,0x00000072,0x00050041,0x00000022,0x00000079,0x00000020,
0x00000052,0x0004003d,0x00000006,0x0000007a,0x00000079,0x000500b1,0x0000001c,0x0000007b,
0x00000078,0x0000007a,0x000400fa,0x0000007b,0x00000074,0x00000075,0x000200f8,0x00000074,
0x0003003e,0x0000007c,0x00000063,0x000200f9,0x0000007d,0x000200f8,0x0000007d,0x000400f6,
0x0000007f,0x00000080,0x00000000,0x000200f9,0x00000081,0x000200f8,0x00000081,0x0004003d,
0x00000006,0x00000082,0x0000007c,0x00050041,0x00000022,0x00000083,0x00000020,0x00000056,
0x0004003d,0x00000006,0x00000084,0x00000083,0x000500b1,0x0000001c,0x00000085,0x00000082,
0x00000084,0x000400fa,0x00000085,0x0000007e,0x0000007f,0x000200f8,0x0000007e,0x0004003d,
0x00000006,0x00000086,0x0000003c,0x0004003d,0x00000006,0x00000087,0x00000072,0x00050041,
0x00000022,0x00000089,0x00000020,0x00000088,0x0004003d,0x00000006,0x0000008a,0x00000089,
0x00050084,0x00000006,0x0000008b,0x00000087,0x0000008a,0x00050080,0x00000006,0x0000008c,
0x00000086,0x0000008b,0x000500af,0x0000001c,0x0000008d,0x0000008c,0x00000063,0x000300f7,
0x0000008f,0x00000000,0x000400fa,0x0000008d,0x0000008e,0x0000008f,0x000200f8,0x0000008e,
0x0004003d,0x00000006,0x00000090,0x0000003c,0x0004003d,0x00000006,0x00000091,0x00000072,
0x00050041,0x00000022,0x00000092,0x00000020,0x00000088,0x0004003d,0x00000006,0x00000093,
0x00000092,0x00050084,0x00000006,0x00000094,0x00000091,0x00000093,0x00050080,0x00000006,
0x00000095,0x00000090,0x00000094,0x00050041,0x00000022,0x00000096,0x00000020,0x00000063,
0x0004003d,0x00000006,0x00000097,0x00000096,0x000500b1,0x0000001c,0x00000098,0x00000095,
0x00000097,0x000200f9,0x0000008f,0x000200f8,0x0000008f,0x000700f5,0x0000001c,0x00000099,
0x0000008d,0x0000007e,0x00000098,0x0000008e,0x000300f7,0x0000009b,0x00000000,0x000400fa,
0x00000099,0x0000009a,0x0000009b,0x000200f8,0x0000009a,0x0004003d,0x00000006,0x0000009c,
0x00000046,0x0004003d,0x00000006,0x0000009d,0x0000007c,0x00050041,0x00000022,0x0000009f,
0x00000020,0x0000009e,0x0004003d,0x00000006,0x000000a0,0x0000009f,0x00050084,0x00000006,
0x000000a1,0x0000009d,0x000000a0,0x00050080,0x00000006,0x000000a2,0x0000009c,0x000000a1,
0x000500af,0x0000001c,0x000000a3,0x000000a2,0x00000063,0x000200f9,0x0000009b,0x000200f8,
0x0000009b,0x000700f5,0x0000001c,0x000000a4,0x00000099,0x0000008f,0x000000a3,0x0000009a,
0x000300f7,0x000000a6,0x00000000,0x000400fa,0x000000a4,0x000000a5,0x000000a6,0x000200f8,
0x000000a5,0x0004003d,0x00000006,0x000000a7,0x00000046,0x0004003d,0x00000006,0x000000a8,
0x0000007c,0x00050041,0x00000022,0x000000a9,0x00000020,0x0000009e,0x0004003d,0x00000006,
0x000000aa,0x000000a9,0x00050084,0x00000006,0x000000ab,0x000000a8,0x000000aa,0x00050080,
0x00000006,0x000000ac,0x000000a7,0x000000ab,0x00050041,0x00000022,0x000000ad,0x00000020,
0x00000067,0x0004003d,0x00000006,0x000000ae,0x000000ad,0x000500b1,0x0000001c,0x000000af,
0x000000ac,0x000000ae,0x000200f9,0x000000a6,0x000200f8,0x000000a6,0x000700f5,0x0000001c,
0x000000b0,0x000000a4,0x0000009b,0x000000af,0x000000a5,0x000300f7,0x000000b2,0x00000000,
0x000400fa,0x000000b0,0x000000b1,0x000000b2,0x000200f8,0x000000b1,0x0004003d,0x00000006,
0x000000b7,0x0000005a,0x0004003d,0x00000006,0x000000b8,0x0000007c,0x00050041,0x00000022,
0x000000b9,0x00000020,0x0000009e,0x0004003d,0x00000006,0x000000ba,0x000000b9,0x00050084,
0x00000006,0x000000bb,0x000000b8,0x000000ba,0x00050080,0x00000006,0x000000bc,0x000000b7,
0x000000bb,0x00060041,0x000000bd,0x000000be,0x000000b6,0x00000063,0x000000bc,0x0004003d,
0x00000038,0x000000bf,0x000000be,0x0004003d,0x00000006,0x000000c4,0x00000050,0x0004003d,
0x00000006,0x000000c5,0x0000007c,0x00050080,0x00000006,0x000000c6,0x000000c4,0x000000c5,
0x00060041,0x000000bd,0x000000c7,0x000000c3,0x00000063,0x000000c6,0x0004003d,0x00000038,
0x000000c8,0x000000c7,0x00050085,0x00000038,0x000000c9,0x000000bf,0x000000c8,0x0004003d,
0x00000038,0x000000ca,0x0000003a,0x00050081,0x00000038,0x000000cb,0x000000ca,0x000000c9,
0x0003003e,0x0000003a,0x000000cb,0x000200f9,0x000000b2,0x000200f8,0x000000b2,0x000200f9,
0x00000080,0x000200f8,0x00000080,0x0004003d,0x00000006,0x000000cc,0x0000007c,0x00050080,
0x00000006,0x000000cd,0x000000cc,0x00000067,0x0003003e,0x0000007c,0x000000cd,0x000200f9,
0x0000007d,0x000200f8,0x0000007f,0x00050041,0x00000022,0x000000ce,0x00000020,0x00000056,
0x0004003d,0x00000006,0x000000cf,0x000000ce,0x0004003d,0x00000006,0x000000d0,0x00000050,
0x00050080,0x00000006,0x000000d1,0x000000d0,0x000000cf,0x0003003e,0x00000050,0x000000d1,
0x00050041,0x00000022,0x000000d2,0x00000020,0x00000067,0x0004003d,0x00000006,0x000000d3,
0x000000d2,0x00050041,0x00000022,0x000000d4,0x00000020,0x00000088,0x0004003d,0x00000006,
0x000000d5,0x000000d4,0x00050084,0x00000006,0x000000d6,0x000000d3,0x000000d5,0x0004003d,
0x00000006,0x000000d7,0x0000005a,0x00050080,0x00000006,0x000000d8,0x000000d7,0x000000d6,
0x0003003e,0x0000005a,0x000000d8,0x000200f9,0x00000076,0x000200f8,0x00000076,0x0004003d,
0x00000006,0x000000d9,0x00000072,0x00050080,0x00000006,0x000000da,0x000000d9,0x00000067,
0x0003003e,0x00000072,0x000000da,0x000200f9,0x00000073,0x000200f8,0x00000075,0x00050041,
0x00000022,0x000000dc,0x00000020,0x0000005b,0x0004003d,0x00000006,0x000000dd,0x000000dc,
0x00050041,0x00000022,0x000000de,0x00000020,0x00000031,0x0004003d,0x00000006,0x000000df,
0x000000de,0x00050084,0x00000006,0x000000e0,0x000000dd,0x000000df,0x0004003d,0x00000006,
0x000000e1,0x00000017,0x00050080,0x00000006,0x000000e2,0x000000e0,0x000000e1,0x00050041,
0x00000022,0x000000e3,0x00000020,0x00000029,0x0004003d,0x00000006,0x000000e4,0x000000e3,
0x00050084,0x00000006,0x000000e5,0x000000e2,0x000000e4,0x00050041,0x00000022,0x000000e6,
0x00000020,0x00000021,0x0004003d,0x00000006,0x000000e7,0x000000e6,0x00050084,0x00000006,
0x000000e8,0x000000e5,0x000000e7,0x0004003d,0x00000006,0x000000e9,0x00000012,0x00050041,
0x00000022,0x000000ea,0x00000020,0x00000021,0x0004003d,0x00000006,0x000000eb,0x000000ea,
0x00050084,0x00000006,0x000000ec,0x000000e9,0x000000eb,0x00050080,0x00000006,0x000000ed,
0x000000e8,0x000000ec,0x0004003d,0x00000006,0x000000ee,0x00000008,0x00050080,0x00000006,
0x000000ef,0x000000ed,0x000000ee,0x0003003e,0x000000db,0x000000ef,0x00050041,0x00000022,
0x000000f1,0x00000020,0x000000f0,0x0004003d,0x00000006,0x000000f2,0x000000f1,0x000500aa,
0x0000001c,0x000000f3,0x000000f2,0x00000067,0x000300f7,0x000000f5,0x00000000,0x000400fa,
0x000000f3,0x000000f4,0x00000105,0x000200f8,0x000000f4,0x0004003d,0x00000006,0x000000fa,
0x000000db,0x0004003d,0x00000038,0x000000fb,0x0000003a,0x0004003d,0x00000006,0x00000100,
0x00000017,0x00060041,0x000000bd,0x00000101,0x000000ff,0x00000063,0x00000100,0x0004003d,
0x00000038,0x00000102,0x00000101,0x00050081,0x00000038,0x00000103,0x000000fb,0x00000102,
0x00060041,0x000000bd,0x00000104,0x000000f9,0x00000063,0x000000fa,0x0003003e,0x00000104,
0x00000103,0x000200f9,0x000000f5,0x000200f8,0x00000105,0x0004003d,0x00000006,0x00000106,
0x000000db,0x0004003d,0x00000038,0x00000107,0x0000003a,0x00060041,0x000000bd,0x00000108,
0x000000f9,0x00000063,0x00000106,0x0003003e,0x00000108,0x00000107,0x000200f9,0x000000f5,
0x000200f8,0x000000f5,0x000200f9,0x00000037,0x000200f8,0x00000037,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -0,0 +1,168 @@
#version 450
#define KSTRIP_LEN 32
#define BLOCK_SIZE 64
#define WARP 32
#define INNER_THREAD 16 // inner thread
#define ALL_THREAD 256
#define A_INSTRIP 8
#define A_STRIP 8 // (BLOCK_SIZE/A_INSTRIP)
#define B_INSTRIP 4 // (ALL_THREAD/BLOCK_SIZE)
#define B_STRIP 8 // (KSTRIP_LEN/B_INSTRIP)
#define MNSTRIP (BLOCK_SIZE/INNER_THREAD)
#define KSTRIP (KSTRIP_LEN/INNER_THREAD)
#define PER_THREAD (BLOCK_SIZE/INNER_THREAD)
// Experiment Row major VS column major.
layout(binding = 0) readonly buffer Input0{
float image_data[];
};
layout(binding = 1) readonly buffer Input1 {
float weight_data[];
};
layout(binding = 2) writeonly buffer Output{
float outMat_data[];
};
layout(binding = 3) uniform pushBlock {
int M;
int K;
int N;
int KStrip;
int KStripRemain;
} p;
shared float ashare[KSTRIP_LEN][BLOCK_SIZE]; // 2 KB
shared float bshare[BLOCK_SIZE][KSTRIP_LEN]; // 2 KB
layout(local_size_x = ALL_THREAD, local_size_y = 1, local_size_z = 1) in;
void main()
{
int mIndex = int(gl_WorkGroupID.x) * BLOCK_SIZE;
int nIndex = int(gl_WorkGroupID.y) * BLOCK_SIZE;
int local_x = int(gl_LocalInvocationID.x) % 16; // 0~7
int local_y = int(gl_LocalInvocationID.x) / 16; // 0~31
int a_local_x = int(gl_LocalInvocationID.x) % KSTRIP_LEN; // 256 / 32 = 8
int a_local_y = int(gl_LocalInvocationID.x) / KSTRIP_LEN;
int b_local_x = int(gl_LocalInvocationID.x) % BLOCK_SIZE; // 256 / 64 = 4
int b_local_y = int(gl_LocalInvocationID.x) / BLOCK_SIZE;
int aoffset = p.K * mIndex + a_local_y * p.K + a_local_x;
int boffset = nIndex + b_local_x + b_local_y * p.N;
float sum[PER_THREAD * PER_THREAD];
for (int n = 0; n < PER_THREAD * PER_THREAD; n++)
{
sum[n] = 0.f;
}
float regA[4];
float regB[4];
for (int i = 0; i < p.KStrip; i++)
{
// load A to shared memory A, transpose A
for (int s = 0; s < A_STRIP; s++)
{
ashare[a_local_x][s * A_INSTRIP + a_local_y] = image_data[aoffset + s * A_INSTRIP * p.K + i * KSTRIP_LEN];
}
// load B to shared memory B, transpose B
for (int s = 0; s < B_STRIP; s++)
{
bshare[b_local_x][s * B_INSTRIP + b_local_y] = weight_data[boffset + s * B_INSTRIP * p.N + i * KSTRIP_LEN * p.N];
}
barrier();
for (int j = 0; j < KSTRIP_LEN; j++)
{
// Load shared memory to register.
for (int m = 0; m < 4; m++)
{
regA[m] = ashare[j][local_x*4 + m];
}
for (int m = 0; m < 4; m++)
{
regB[m] = bshare[local_y + 16 * m][j];
}
for (int m = 0; m < 4; m++)
{
for (int n = 0; n < 4; n++)
{
sum[m*4 + n] += regA[m] * regB[n];
}
}
}
barrier();
}
if (p.KStripRemain > 0)
{
int aoffset2 = aoffset + p.KStrip * KSTRIP_LEN;
int boffset2 = boffset + p.KStrip * KSTRIP_LEN * p.N;
// load A to shared memory A, transpose A
for (int s = 0; s < A_STRIP; s++)
{
ashare[a_local_x][s * A_INSTRIP + a_local_y] = image_data[aoffset2 + s * A_INSTRIP * p.K];
}
// load B to shared memory B, transpose B
for (int s = 0; s < B_STRIP; s++)
{
bshare[b_local_x][s * B_INSTRIP + b_local_y] = weight_data[boffset2 + s * B_INSTRIP * p.N];
}
barrier();
for (int j = 0; j < p.KStripRemain; j++)
{
// Load shared memory to register.
for (int m = 0; m < 4; m++)
{
regA[m] = ashare[j][local_x*4 + m];
}
for (int m = 0; m < 4; m++)
{
regB[m] = bshare[local_y + 16 * m][j];
}
for (int m = 0; m < 4; m++)
{
for (int n = 0; n < 4; n++)
{
sum[m*4 + n] += regA[m] * regB[n];
}
}
}
}
for (int n = 0; n < PER_THREAD; n++)
{
int nIndex2 = nIndex + n * INNER_THREAD + local_y;
if (nIndex2 < p.N)
{
for (int m = 0; m < PER_THREAD; m++)
{
int mIndex2 = mIndex + local_x * PER_THREAD + m;
if (mIndex2 < p.M)
{
outMat_data[mIndex2 * p.N + nIndex2] = sum[m* PER_THREAD + n];
}
}
}
}
}

View File

@ -0,0 +1,375 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int gemm_spv[2902] = {
0x07230203,0x00010000,0x0008000b,0x000001ff,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x0000001b,0x00060010,
0x00000004,0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00040005,0x00000008,0x646e496d,0x00007865,
0x00060005,0x0000000c,0x575f6c67,0x476b726f,0x70756f72,0x00004449,0x00040005,0x00000014,
0x646e496e,0x00007865,0x00040005,0x0000001a,0x61636f6c,0x00785f6c,0x00080005,0x0000001b,
0x4c5f6c67,0x6c61636f,0x6f766e49,0x69746163,0x44496e6f,0x00000000,0x00040005,0x00000021,
0x61636f6c,0x00795f6c,0x00050005,0x00000026,0x6f6c5f61,0x5f6c6163,0x00000078,0x00050005,
0x0000002c,0x6f6c5f61,0x5f6c6163,0x00000079,0x00050005,0x00000031,0x6f6c5f62,0x5f6c6163,
0x00000078,0x00050005,0x00000036,0x6f6c5f62,0x5f6c6163,0x00000079,0x00040005,0x0000003b,
0x66666f61,0x00746573,0x00050005,0x0000003c,0x68737570,0x636f6c42,0x0000006b,0x00040006,
0x0000003c,0x00000000,0x0000004d,0x00040006,0x0000003c,0x00000001,0x0000004b,0x00040006,
0x0000003c,0x00000002,0x0000004e,0x00050006,0x0000003c,0x00000003,0x7274534b,0x00007069,
0x00070006,0x0000003c,0x00000004,0x7274534b,0x65527069,0x6e69616d,0x00000000,0x00030005,
0x0000003e,0x00000070,0x00040005,0x0000004c,0x66666f62,0x00746573,0x00030005,0x00000056,
0x0000006e,0x00030005,0x00000064,0x006d7573,0x00030005,0x0000006b,0x00000069,0x00030005,
0x00000076,0x00000073,0x00040005,0x00000084,0x61687361,0x00006572,0x00040005,0x0000008b,
0x75706e49,0x00003074,0x00060006,0x0000008b,0x00000000,0x67616d69,0x61645f65,0x00006174,
0x00030005,0x0000008d,0x00000000,0x00030005,0x0000009f,0x00000073,0x00040005,0x000000aa,
0x61687362,0x00006572,0x00040005,0x000000b2,0x75706e49,0x00003174,0x00060006,0x000000b2,
0x00000000,0x67696577,0x645f7468,0x00617461,0x00030005,0x000000b4,0x00000000,0x00030005,
0x000000c9,0x0000006a,0x00030005,0x000000d1,0x0000006d,0x00040005,0x000000dc,0x41676572,
0x00000000,0x00030005,0x000000e8,0x0000006d,0x00040005,0x000000f0,0x42676572,0x00000000,
0x00030005,0x000000fc,0x0000006d,0x00030005,0x00000104,0x0000006e,0x00050005,0x00000128,
0x66666f61,0x32746573,0x00000000,0x00050005,0x0000012e,0x66666f62,0x32746573,0x00000000,
0x00030005,0x00000137,0x00000073,0x00030005,0x00000150,0x00000073,0x00030005,0x00000169,
0x0000006a,0x00030005,0x00000173,0x0000006d,0x00030005,0x00000186,0x0000006d,0x00030005,
0x00000199,0x0000006d,0x00030005,0x000001a1,0x0000006e,0x00030005,0x000001be,0x0000006e,
0x00040005,0x000001c6,0x646e496e,0x00327865,0x00030005,0x000001d3,0x0000006d,0x00040005,
0x000001db,0x646e496d,0x00327865,0x00040005,0x000001e9,0x7074754f,0x00007475,0x00060006,
0x000001e9,0x00000000,0x4d74756f,0x645f7461,0x00617461,0x00030005,0x000001eb,0x00000000,
0x00040047,0x0000000c,0x0000000b,0x0000001a,0x00040047,0x0000001b,0x0000000b,0x0000001b,
0x00050048,0x0000003c,0x00000000,0x00000023,0x00000000,0x00050048,0x0000003c,0x00000001,
0x00000023,0x00000004,0x00050048,0x0000003c,0x00000002,0x00000023,0x00000008,0x00050048,
0x0000003c,0x00000003,0x00000023,0x0000000c,0x00050048,0x0000003c,0x00000004,0x00000023,
0x00000010,0x00030047,0x0000003c,0x00000002,0x00040047,0x0000003e,0x00000022,0x00000000,
0x00040047,0x0000003e,0x00000021,0x00000003,0x00040047,0x0000008a,0x00000006,0x00000004,
0x00040048,0x0000008b,0x00000000,0x00000018,0x00050048,0x0000008b,0x00000000,0x00000023,
0x00000000,0x00030047,0x0000008b,0x00000003,0x00040047,0x0000008d,0x00000022,0x00000000,
0x00040047,0x0000008d,0x00000021,0x00000000,0x00040047,0x000000b1,0x00000006,0x00000004,
0x00040048,0x000000b2,0x00000000,0x00000018,0x00050048,0x000000b2,0x00000000,0x00000023,
0x00000000,0x00030047,0x000000b2,0x00000003,0x00040047,0x000000b4,0x00000022,0x00000000,
0x00040047,0x000000b4,0x00000021,0x00000001,0x00040047,0x000001e8,0x00000006,0x00000004,
0x00040048,0x000001e9,0x00000000,0x00000019,0x00050048,0x000001e9,0x00000000,0x00000023,
0x00000000,0x00030047,0x000001e9,0x00000003,0x00040047,0x000001eb,0x00000022,0x00000000,
0x00040047,0x000001eb,0x00000021,0x00000002,0x00040047,0x000001fe,0x0000000b,0x00000019,
0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,
0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,
0x00000000,0x00040017,0x0000000a,0x00000009,0x00000003,0x00040020,0x0000000b,0x00000001,
0x0000000a,0x0004003b,0x0000000b,0x0000000c,0x00000001,0x0004002b,0x00000009,0x0000000d,
0x00000000,0x00040020,0x0000000e,0x00000001,0x00000009,0x0004002b,0x00000006,0x00000012,
0x00000040,0x0004002b,0x00000009,0x00000015,0x00000001,0x0004003b,0x0000000b,0x0000001b,
0x00000001,0x0004002b,0x00000006,0x0000001f,0x00000010,0x0004002b,0x00000006,0x0000002a,
0x00000020,0x0007001e,0x0000003c,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00040020,0x0000003d,0x00000002,0x0000003c,0x0004003b,0x0000003d,0x0000003e,0x00000002,
0x0004002b,0x00000006,0x0000003f,0x00000001,0x00040020,0x00000040,0x00000002,0x00000006,
0x0004002b,0x00000006,0x00000051,0x00000002,0x0004002b,0x00000006,0x00000057,0x00000000,
0x00020014,0x0000005e,0x00030016,0x00000060,0x00000020,0x0004002b,0x00000009,0x00000061,
0x00000010,0x0004001c,0x00000062,0x00000060,0x00000061,0x00040020,0x00000063,0x00000007,
0x00000062,0x0004002b,0x00000060,0x00000066,0x00000000,0x00040020,0x00000067,0x00000007,
0x00000060,0x0004002b,0x00000006,0x00000072,0x00000003,0x0004002b,0x00000006,0x0000007d,
0x00000008,0x0004002b,0x00000009,0x0000007f,0x00000040,0x0004001c,0x00000080,0x00000060,
0x0000007f,0x0004002b,0x00000009,0x00000081,0x00000020,0x0004001c,0x00000082,0x00000080,
0x00000081,0x00040020,0x00000083,0x00000004,0x00000082,0x0004003b,0x00000083,0x00000084,
0x00000004,0x0003001d,0x0000008a,0x00000060,0x0003001e,0x0000008b,0x0000008a,0x00040020,
0x0000008c,0x00000002,0x0000008b,0x0004003b,0x0000008c,0x0000008d,0x00000002,0x00040020,
0x00000098,0x00000002,0x00000060,0x00040020,0x0000009b,0x00000004,0x00000060,0x0004001c,
0x000000a7,0x00000060,0x00000081,0x0004001c,0x000000a8,0x000000a7,0x0000007f,0x00040020,
0x000000a9,0x00000004,0x000000a8,0x0004003b,0x000000a9,0x000000aa,0x00000004,0x0004002b,
0x00000006,0x000000ad,0x00000004,0x0003001d,0x000000b1,0x00000060,0x0003001e,0x000000b2,
0x000000b1,0x00040020,0x000000b3,0x00000002,0x000000b2,0x0004003b,0x000000b3,0x000000b4,
0x00000002,0x0004002b,0x00000009,0x000000c7,0x00000002,0x0004002b,0x00000009,0x000000c8,
0x00000108,0x0004002b,0x00000009,0x000000d9,0x00000004,0x0004001c,0x000000da,0x00000060,
0x000000d9,0x00040020,0x000000db,0x00000007,0x000000da,0x0003001d,0x000001e8,0x00000060,
0x0003001e,0x000001e9,0x000001e8,0x00040020,0x000001ea,0x00000002,0x000001e9,0x0004003b,
0x000001ea,0x000001eb,0x00000002,0x0004002b,0x00000009,0x000001fd,0x00000100,0x0006002c,
0x0000000a,0x000001fe,0x000001fd,0x00000015,0x00000015,0x00050036,0x00000002,0x00000004,
0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,
0x0004003b,0x00000007,0x00000014,0x00000007,0x0004003b,0x00000007,0x0000001a,0x00000007,
0x0004003b,0x00000007,0x00000021,0x00000007,0x0004003b,0x00000007,0x00000026,0x00000007,
0x0004003b,0x00000007,0x0000002c,0x00000007,0x0004003b,0x00000007,0x00000031,0x00000007,
0x0004003b,0x00000007,0x00000036,0x00000007,0x0004003b,0x00000007,0x0000003b,0x00000007,
0x0004003b,0x00000007,0x0000004c,0x00000007,0x0004003b,0x00000007,0x00000056,0x00000007,
0x0004003b,0x00000063,0x00000064,0x00000007,0x0004003b,0x00000007,0x0000006b,0x00000007,
0x0004003b,0x00000007,0x00000076,0x00000007,0x0004003b,0x00000007,0x0000009f,0x00000007,
0x0004003b,0x00000007,0x000000c9,0x00000007,0x0004003b,0x00000007,0x000000d1,0x00000007,
0x0004003b,0x000000db,0x000000dc,0x00000007,0x0004003b,0x00000007,0x000000e8,0x00000007,
0x0004003b,0x000000db,0x000000f0,0x00000007,0x0004003b,0x00000007,0x000000fc,0x00000007,
0x0004003b,0x00000007,0x00000104,0x00000007,0x0004003b,0x00000007,0x00000128,0x00000007,
0x0004003b,0x00000007,0x0000012e,0x00000007,0x0004003b,0x00000007,0x00000137,0x00000007,
0x0004003b,0x00000007,0x00000150,0x00000007,0x0004003b,0x00000007,0x00000169,0x00000007,
0x0004003b,0x00000007,0x00000173,0x00000007,0x0004003b,0x00000007,0x00000186,0x00000007,
0x0004003b,0x00000007,0x00000199,0x00000007,0x0004003b,0x00000007,0x000001a1,0x00000007,
0x0004003b,0x00000007,0x000001be,0x00000007,0x0004003b,0x00000007,0x000001c6,0x00000007,
0x0004003b,0x00000007,0x000001d3,0x00000007,0x0004003b,0x00000007,0x000001db,0x00000007,
0x00050041,0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,
0x0000000f,0x0004007c,0x00000006,0x00000011,0x00000010,0x00050084,0x00000006,0x00000013,
0x00000011,0x00000012,0x0003003e,0x00000008,0x00000013,0x00050041,0x0000000e,0x00000016,
0x0000000c,0x00000015,0x0004003d,0x00000009,0x00000017,0x00000016,0x0004007c,0x00000006,
0x00000018,0x00000017,0x00050084,0x00000006,0x00000019,0x00000018,0x00000012,0x0003003e,
0x00000014,0x00000019,0x00050041,0x0000000e,0x0000001c,0x0000001b,0x0000000d,0x0004003d,
0x00000009,0x0000001d,0x0000001c,0x0004007c,0x00000006,0x0000001e,0x0000001d,0x0005008b,
0x00000006,0x00000020,0x0000001e,0x0000001f,0x0003003e,0x0000001a,0x00000020,0x00050041,
0x0000000e,0x00000022,0x0000001b,0x0000000d,0x0004003d,0x00000009,0x00000023,0x00000022,
0x0004007c,0x00000006,0x00000024,0x00000023,0x00050087,0x00000006,0x00000025,0x00000024,
0x0000001f,0x0003003e,0x00000021,0x00000025,0x00050041,0x0000000e,0x00000027,0x0000001b,
0x0000000d,0x0004003d,0x00000009,0x00000028,0x00000027,0x0004007c,0x00000006,0x00000029,
0x00000028,0x0005008b,0x00000006,0x0000002b,0x00000029,0x0000002a,0x0003003e,0x00000026,
0x0000002b,0x00050041,0x0000000e,0x0000002d,0x0000001b,0x0000000d,0x0004003d,0x00000009,
0x0000002e,0x0000002d,0x0004007c,0x00000006,0x0000002f,0x0000002e,0x00050087,0x00000006,
0x00000030,0x0000002f,0x0000002a,0x0003003e,0x0000002c,0x00000030,0x00050041,0x0000000e,
0x00000032,0x0000001b,0x0000000d,0x0004003d,0x00000009,0x00000033,0x00000032,0x0004007c,
0x00000006,0x00000034,0x00000033,0x0005008b,0x00000006,0x00000035,0x00000034,0x00000012,
0x0003003e,0x00000031,0x00000035,0x00050041,0x0000000e,0x00000037,0x0000001b,0x0000000d,
0x0004003d,0x00000009,0x00000038,0x00000037,0x0004007c,0x00000006,0x00000039,0x00000038,
0x00050087,0x00000006,0x0000003a,0x00000039,0x00000012,0x0003003e,0x00000036,0x0000003a,
0x00050041,0x00000040,0x00000041,0x0000003e,0x0000003f,0x0004003d,0x00000006,0x00000042,
0x00000041,0x0004003d,0x00000006,0x00000043,0x00000008,0x00050084,0x00000006,0x00000044,
0x00000042,0x00000043,0x0004003d,0x00000006,0x00000045,0x0000002c,0x00050041,0x00000040,
0x00000046,0x0000003e,0x0000003f,0x0004003d,0x00000006,0x00000047,0x00000046,0x00050084,
0x00000006,0x00000048,0x00000045,0x00000047,0x00050080,0x00000006,0x00000049,0x00000044,
0x00000048,0x0004003d,0x00000006,0x0000004a,0x00000026,0x00050080,0x00000006,0x0000004b,
0x00000049,0x0000004a,0x0003003e,0x0000003b,0x0000004b,0x0004003d,0x00000006,0x0000004d,
0x00000014,0x0004003d,0x00000006,0x0000004e,0x00000031,0x00050080,0x00000006,0x0000004f,
0x0000004d,0x0000004e,0x0004003d,0x00000006,0x00000050,0x00000036,0x00050041,0x00000040,
0x00000052,0x0000003e,0x00000051,0x0004003d,0x00000006,0x00000053,0x00000052,0x00050084,
0x00000006,0x00000054,0x00000050,0x00000053,0x00050080,0x00000006,0x00000055,0x0000004f,
0x00000054,0x0003003e,0x0000004c,0x00000055,0x0003003e,0x00000056,0x00000057,0x000200f9,
0x00000058,0x000200f8,0x00000058,0x000400f6,0x0000005a,0x0000005b,0x00000000,0x000200f9,
0x0000005c,0x000200f8,0x0000005c,0x0004003d,0x00000006,0x0000005d,0x00000056,0x000500b1,
0x0000005e,0x0000005f,0x0000005d,0x0000001f,0x000400fa,0x0000005f,0x00000059,0x0000005a,
0x000200f8,0x00000059,0x0004003d,0x00000006,0x00000065,0x00000056,0x00050041,0x00000067,
0x00000068,0x00000064,0x00000065,0x0003003e,0x00000068,0x00000066,0x000200f9,0x0000005b,
0x000200f8,0x0000005b,0x0004003d,0x00000006,0x00000069,0x00000056,0x00050080,0x00000006,
0x0000006a,0x00000069,0x0000003f,0x0003003e,0x00000056,0x0000006a,0x000200f9,0x00000058,
0x000200f8,0x0000005a,0x0003003e,0x0000006b,0x00000057,0x000200f9,0x0000006c,0x000200f8,
0x0000006c,0x000400f6,0x0000006e,0x0000006f,0x00000000,0x000200f9,0x00000070,0x000200f8,
0x00000070,0x0004003d,0x00000006,0x00000071,0x0000006b,0x00050041,0x00000040,0x00000073,
0x0000003e,0x00000072,0x0004003d,0x00000006,0x00000074,0x00000073,0x000500b1,0x0000005e,
0x00000075,0x00000071,0x00000074,0x000400fa,0x00000075,0x0000006d,0x0000006e,0x000200f8,
0x0000006d,0x0003003e,0x00000076,0x00000057,0x000200f9,0x00000077,0x000200f8,0x00000077,
0x000400f6,0x00000079,0x0000007a,0x00000000,0x000200f9,0x0000007b,0x000200f8,0x0000007b,
0x0004003d,0x00000006,0x0000007c,0x00000076,0x000500b1,0x0000005e,0x0000007e,0x0000007c,
0x0000007d,0x000400fa,0x0000007e,0x00000078,0x00000079,0x000200f8,0x00000078,0x0004003d,
0x00000006,0x00000085,0x00000026,0x0004003d,0x00000006,0x00000086,0x00000076,0x00050084,
0x00000006,0x00000087,0x00000086,0x0000007d,0x0004003d,0x00000006,0x00000088,0x0000002c,
0x00050080,0x00000006,0x00000089,0x00000087,0x00000088,0x0004003d,0x00000006,0x0000008e,
0x0000003b,0x0004003d,0x00000006,0x0000008f,0x00000076,0x00050084,0x00000006,0x00000090,
0x0000008f,0x0000007d,0x00050041,0x00000040,0x00000091,0x0000003e,0x0000003f,0x0004003d,
0x00000006,0x00000092,0x00000091,0x00050084,0x00000006,0x00000093,0x00000090,0x00000092,
0x00050080,0x00000006,0x00000094,0x0000008e,0x00000093,0x0004003d,0x00000006,0x00000095,
0x0000006b,0x00050084,0x00000006,0x00000096,0x00000095,0x0000002a,0x00050080,0x00000006,
0x00000097,0x00000094,0x00000096,0x00060041,0x00000098,0x00000099,0x0000008d,0x00000057,
0x00000097,0x0004003d,0x00000060,0x0000009a,0x00000099,0x00060041,0x0000009b,0x0000009c,
0x00000084,0x00000085,0x00000089,0x0003003e,0x0000009c,0x0000009a,0x000200f9,0x0000007a,
0x000200f8,0x0000007a,0x0004003d,0x00000006,0x0000009d,0x00000076,0x00050080,0x00000006,
0x0000009e,0x0000009d,0x0000003f,0x0003003e,0x00000076,0x0000009e,0x000200f9,0x00000077,
0x000200f8,0x00000079,0x0003003e,0x0000009f,0x00000057,0x000200f9,0x000000a0,0x000200f8,
0x000000a0,0x000400f6,0x000000a2,0x000000a3,0x00000000,0x000200f9,0x000000a4,0x000200f8,
0x000000a4,0x0004003d,0x00000006,0x000000a5,0x0000009f,0x000500b1,0x0000005e,0x000000a6,
0x000000a5,0x0000007d,0x000400fa,0x000000a6,0x000000a1,0x000000a2,0x000200f8,0x000000a1,
0x0004003d,0x00000006,0x000000ab,0x00000031,0x0004003d,0x00000006,0x000000ac,0x0000009f,
0x00050084,0x00000006,0x000000ae,0x000000ac,0x000000ad,0x0004003d,0x00000006,0x000000af,
0x00000036,0x00050080,0x00000006,0x000000b0,0x000000ae,0x000000af,0x0004003d,0x00000006,
0x000000b5,0x0000004c,0x0004003d,0x00000006,0x000000b6,0x0000009f,0x00050084,0x00000006,
0x000000b7,0x000000b6,0x000000ad,0x00050041,0x00000040,0x000000b8,0x0000003e,0x00000051,
0x0004003d,0x00000006,0x000000b9,0x000000b8,0x00050084,0x00000006,0x000000ba,0x000000b7,
0x000000b9,0x00050080,0x00000006,0x000000bb,0x000000b5,0x000000ba,0x0004003d,0x00000006,
0x000000bc,0x0000006b,0x00050084,0x00000006,0x000000bd,0x000000bc,0x0000002a,0x00050041,
0x00000040,0x000000be,0x0000003e,0x00000051,0x0004003d,0x00000006,0x000000bf,0x000000be,
0x00050084,0x00000006,0x000000c0,0x000000bd,0x000000bf,0x00050080,0x00000006,0x000000c1,
0x000000bb,0x000000c0,0x00060041,0x00000098,0x000000c2,0x000000b4,0x00000057,0x000000c1,
0x0004003d,0x00000060,0x000000c3,0x000000c2,0x00060041,0x0000009b,0x000000c4,0x000000aa,
0x000000ab,0x000000b0,0x0003003e,0x000000c4,0x000000c3,0x000200f9,0x000000a3,0x000200f8,
0x000000a3,0x0004003d,0x00000006,0x000000c5,0x0000009f,0x00050080,0x00000006,0x000000c6,
0x000000c5,0x0000003f,0x0003003e,0x0000009f,0x000000c6,0x000200f9,0x000000a0,0x000200f8,
0x000000a2,0x000400e0,0x000000c7,0x000000c7,0x000000c8,0x0003003e,0x000000c9,0x00000057,
0x000200f9,0x000000ca,0x000200f8,0x000000ca,0x000400f6,0x000000cc,0x000000cd,0x00000000,
0x000200f9,0x000000ce,0x000200f8,0x000000ce,0x0004003d,0x00000006,0x000000cf,0x000000c9,
0x000500b1,0x0000005e,0x000000d0,0x000000cf,0x0000002a,0x000400fa,0x000000d0,0x000000cb,
0x000000cc,0x000200f8,0x000000cb,0x0003003e,0x000000d1,0x00000057,0x000200f9,0x000000d2,
0x000200f8,0x000000d2,0x000400f6,0x000000d4,0x000000d5,0x00000000,0x000200f9,0x000000d6,
0x000200f8,0x000000d6,0x0004003d,0x00000006,0x000000d7,0x000000d1,0x000500b1,0x0000005e,
0x000000d8,0x000000d7,0x000000ad,0x000400fa,0x000000d8,0x000000d3,0x000000d4,0x000200f8,
0x000000d3,0x0004003d,0x00000006,0x000000dd,0x000000d1,0x0004003d,0x00000006,0x000000de,
0x000000c9,0x0004003d,0x00000006,0x000000df,0x0000001a,0x00050084,0x00000006,0x000000e0,
0x000000df,0x000000ad,0x0004003d,0x00000006,0x000000e1,0x000000d1,0x00050080,0x00000006,
0x000000e2,0x000000e0,0x000000e1,0x00060041,0x0000009b,0x000000e3,0x00000084,0x000000de,
0x000000e2,0x0004003d,0x00000060,0x000000e4,0x000000e3,0x00050041,0x00000067,0x000000e5,
0x000000dc,0x000000dd,0x0003003e,0x000000e5,0x000000e4,0x000200f9,0x000000d5,0x000200f8,
0x000000d5,0x0004003d,0x00000006,0x000000e6,0x000000d1,0x00050080,0x00000006,0x000000e7,
0x000000e6,0x0000003f,0x0003003e,0x000000d1,0x000000e7,0x000200f9,0x000000d2,0x000200f8,
0x000000d4,0x0003003e,0x000000e8,0x00000057,0x000200f9,0x000000e9,0x000200f8,0x000000e9,
0x000400f6,0x000000eb,0x000000ec,0x00000000,0x000200f9,0x000000ed,0x000200f8,0x000000ed,
0x0004003d,0x00000006,0x000000ee,0x000000e8,0x000500b1,0x0000005e,0x000000ef,0x000000ee,
0x000000ad,0x000400fa,0x000000ef,0x000000ea,0x000000eb,0x000200f8,0x000000ea,0x0004003d,
0x00000006,0x000000f1,0x000000e8,0x0004003d,0x00000006,0x000000f2,0x00000021,0x0004003d,
0x00000006,0x000000f3,0x000000e8,0x00050084,0x00000006,0x000000f4,0x0000001f,0x000000f3,
0x00050080,0x00000006,0x000000f5,0x000000f2,0x000000f4,0x0004003d,0x00000006,0x000000f6,
0x000000c9,0x00060041,0x0000009b,0x000000f7,0x000000aa,0x000000f5,0x000000f6,0x0004003d,
0x00000060,0x000000f8,0x000000f7,0x00050041,0x00000067,0x000000f9,0x000000f0,0x000000f1,
0x0003003e,0x000000f9,0x000000f8,0x000200f9,0x000000ec,0x000200f8,0x000000ec,0x0004003d,
0x00000006,0x000000fa,0x000000e8,0x00050080,0x00000006,0x000000fb,0x000000fa,0x0000003f,
0x0003003e,0x000000e8,0x000000fb,0x000200f9,0x000000e9,0x000200f8,0x000000eb,0x0003003e,
0x000000fc,0x00000057,0x000200f9,0x000000fd,0x000200f8,0x000000fd,0x000400f6,0x000000ff,
0x00000100,0x00000000,0x000200f9,0x00000101,0x000200f8,0x00000101,0x0004003d,0x00000006,
0x00000102,0x000000fc,0x000500b1,0x0000005e,0x00000103,0x00000102,0x000000ad,0x000400fa,
0x00000103,0x000000fe,0x000000ff,0x000200f8,0x000000fe,0x0003003e,0x00000104,0x00000057,
0x000200f9,0x00000105,0x000200f8,0x00000105,0x000400f6,0x00000107,0x00000108,0x00000000,
0x000200f9,0x00000109,0x000200f8,0x00000109,0x0004003d,0x00000006,0x0000010a,0x00000104,
0x000500b1,0x0000005e,0x0000010b,0x0000010a,0x000000ad,0x000400fa,0x0000010b,0x00000106,
0x00000107,0x000200f8,0x00000106,0x0004003d,0x00000006,0x0000010c,0x000000fc,0x00050084,
0x00000006,0x0000010d,0x0000010c,0x000000ad,0x0004003d,0x00000006,0x0000010e,0x00000104,
0x00050080,0x00000006,0x0000010f,0x0000010d,0x0000010e,0x0004003d,0x00000006,0x00000110,
0x000000fc,0x00050041,0x00000067,0x00000111,0x000000dc,0x00000110,0x0004003d,0x00000060,
0x00000112,0x00000111,0x0004003d,0x00000006,0x00000113,0x00000104,0x00050041,0x00000067,
0x00000114,0x000000f0,0x00000113,0x0004003d,0x00000060,0x00000115,0x00000114,0x00050085,
0x00000060,0x00000116,0x00000112,0x00000115,0x00050041,0x00000067,0x00000117,0x00000064,
0x0000010f,0x0004003d,0x00000060,0x00000118,0x00000117,0x00050081,0x00000060,0x00000119,
0x00000118,0x00000116,0x00050041,0x00000067,0x0000011a,0x00000064,0x0000010f,0x0003003e,
0x0000011a,0x00000119,0x000200f9,0x00000108,0x000200f8,0x00000108,0x0004003d,0x00000006,
0x0000011b,0x00000104,0x00050080,0x00000006,0x0000011c,0x0000011b,0x0000003f,0x0003003e,
0x00000104,0x0000011c,0x000200f9,0x00000105,0x000200f8,0x00000107,0x000200f9,0x00000100,
0x000200f8,0x00000100,0x0004003d,0x00000006,0x0000011d,0x000000fc,0x00050080,0x00000006,
0x0000011e,0x0000011d,0x0000003f,0x0003003e,0x000000fc,0x0000011e,0x000200f9,0x000000fd,
0x000200f8,0x000000ff,0x000200f9,0x000000cd,0x000200f8,0x000000cd,0x0004003d,0x00000006,
0x0000011f,0x000000c9,0x00050080,0x00000006,0x00000120,0x0000011f,0x0000003f,0x0003003e,
0x000000c9,0x00000120,0x000200f9,0x000000ca,0x000200f8,0x000000cc,0x000400e0,0x000000c7,
0x000000c7,0x000000c8,0x000200f9,0x0000006f,0x000200f8,0x0000006f,0x0004003d,0x00000006,
0x00000121,0x0000006b,0x00050080,0x00000006,0x00000122,0x00000121,0x0000003f,0x0003003e,
0x0000006b,0x00000122,0x000200f9,0x0000006c,0x000200f8,0x0000006e,0x00050041,0x00000040,
0x00000123,0x0000003e,0x000000ad,0x0004003d,0x00000006,0x00000124,0x00000123,0x000500ad,
0x0000005e,0x00000125,0x00000124,0x00000057,0x000300f7,0x00000127,0x00000000,0x000400fa,
0x00000125,0x00000126,0x00000127,0x000200f8,0x00000126,0x0004003d,0x00000006,0x00000129,
0x0000003b,0x00050041,0x00000040,0x0000012a,0x0000003e,0x00000072,0x0004003d,0x00000006,
0x0000012b,0x0000012a,0x00050084,0x00000006,0x0000012c,0x0000012b,0x0000002a,0x00050080,
0x00000006,0x0000012d,0x00000129,0x0000012c,0x0003003e,0x00000128,0x0000012d,0x0004003d,
0x00000006,0x0000012f,0x0000004c,0x00050041,0x00000040,0x00000130,0x0000003e,0x00000072,
0x0004003d,0x00000006,0x00000131,0x00000130,0x00050084,0x00000006,0x00000132,0x00000131,
0x0000002a,0x00050041,0x00000040,0x00000133,0x0000003e,0x00000051,0x0004003d,0x00000006,
0x00000134,0x00000133,0x00050084,0x00000006,0x00000135,0x00000132,0x00000134,0x00050080,
0x00000006,0x00000136,0x0000012f,0x00000135,0x0003003e,0x0000012e,0x00000136,0x0003003e,
0x00000137,0x00000057,0x000200f9,0x00000138,0x000200f8,0x00000138,0x000400f6,0x0000013a,
0x0000013b,0x00000000,0x000200f9,0x0000013c,0x000200f8,0x0000013c,0x0004003d,0x00000006,
0x0000013d,0x00000137,0x000500b1,0x0000005e,0x0000013e,0x0000013d,0x0000007d,0x000400fa,
0x0000013e,0x00000139,0x0000013a,0x000200f8,0x00000139,0x0004003d,0x00000006,0x0000013f,
0x00000026,0x0004003d,0x00000006,0x00000140,0x00000137,0x00050084,0x00000006,0x00000141,
0x00000140,0x0000007d,0x0004003d,0x00000006,0x00000142,0x0000002c,0x00050080,0x00000006,
0x00000143,0x00000141,0x00000142,0x0004003d,0x00000006,0x00000144,0x00000128,0x0004003d,
0x00000006,0x00000145,0x00000137,0x00050084,0x00000006,0x00000146,0x00000145,0x0000007d,
0x00050041,0x00000040,0x00000147,0x0000003e,0x0000003f,0x0004003d,0x00000006,0x00000148,
0x00000147,0x00050084,0x00000006,0x00000149,0x00000146,0x00000148,0x00050080,0x00000006,
0x0000014a,0x00000144,0x00000149,0x00060041,0x00000098,0x0000014b,0x0000008d,0x00000057,
0x0000014a,0x0004003d,0x00000060,0x0000014c,0x0000014b,0x00060041,0x0000009b,0x0000014d,
0x00000084,0x0000013f,0x00000143,0x0003003e,0x0000014d,0x0000014c,0x000200f9,0x0000013b,
0x000200f8,0x0000013b,0x0004003d,0x00000006,0x0000014e,0x00000137,0x00050080,0x00000006,
0x0000014f,0x0000014e,0x0000003f,0x0003003e,0x00000137,0x0000014f,0x000200f9,0x00000138,
0x000200f8,0x0000013a,0x0003003e,0x00000150,0x00000057,0x000200f9,0x00000151,0x000200f8,
0x00000151,0x000400f6,0x00000153,0x00000154,0x00000000,0x000200f9,0x00000155,0x000200f8,
0x00000155,0x0004003d,0x00000006,0x00000156,0x00000150,0x000500b1,0x0000005e,0x00000157,
0x00000156,0x0000007d,0x000400fa,0x00000157,0x00000152,0x00000153,0x000200f8,0x00000152,
0x0004003d,0x00000006,0x00000158,0x00000031,0x0004003d,0x00000006,0x00000159,0x00000150,
0x00050084,0x00000006,0x0000015a,0x00000159,0x000000ad,0x0004003d,0x00000006,0x0000015b,
0x00000036,0x00050080,0x00000006,0x0000015c,0x0000015a,0x0000015b,0x0004003d,0x00000006,
0x0000015d,0x0000012e,0x0004003d,0x00000006,0x0000015e,0x00000150,0x00050084,0x00000006,
0x0000015f,0x0000015e,0x000000ad,0x00050041,0x00000040,0x00000160,0x0000003e,0x00000051,
0x0004003d,0x00000006,0x00000161,0x00000160,0x00050084,0x00000006,0x00000162,0x0000015f,
0x00000161,0x00050080,0x00000006,0x00000163,0x0000015d,0x00000162,0x00060041,0x00000098,
0x00000164,0x000000b4,0x00000057,0x00000163,0x0004003d,0x00000060,0x00000165,0x00000164,
0x00060041,0x0000009b,0x00000166,0x000000aa,0x00000158,0x0000015c,0x0003003e,0x00000166,
0x00000165,0x000200f9,0x00000154,0x000200f8,0x00000154,0x0004003d,0x00000006,0x00000167,
0x00000150,0x00050080,0x00000006,0x00000168,0x00000167,0x0000003f,0x0003003e,0x00000150,
0x00000168,0x000200f9,0x00000151,0x000200f8,0x00000153,0x000400e0,0x000000c7,0x000000c7,
0x000000c8,0x0003003e,0x00000169,0x00000057,0x000200f9,0x0000016a,0x000200f8,0x0000016a,
0x000400f6,0x0000016c,0x0000016d,0x00000000,0x000200f9,0x0000016e,0x000200f8,0x0000016e,
0x0004003d,0x00000006,0x0000016f,0x00000169,0x00050041,0x00000040,0x00000170,0x0000003e,
0x000000ad,0x0004003d,0x00000006,0x00000171,0x00000170,0x000500b1,0x0000005e,0x00000172,
0x0000016f,0x00000171,0x000400fa,0x00000172,0x0000016b,0x0000016c,0x000200f8,0x0000016b,
0x0003003e,0x00000173,0x00000057,0x000200f9,0x00000174,0x000200f8,0x00000174,0x000400f6,
0x00000176,0x00000177,0x00000000,0x000200f9,0x00000178,0x000200f8,0x00000178,0x0004003d,
0x00000006,0x00000179,0x00000173,0x000500b1,0x0000005e,0x0000017a,0x00000179,0x000000ad,
0x000400fa,0x0000017a,0x00000175,0x00000176,0x000200f8,0x00000175,0x0004003d,0x00000006,
0x0000017b,0x00000173,0x0004003d,0x00000006,0x0000017c,0x00000169,0x0004003d,0x00000006,
0x0000017d,0x0000001a,0x00050084,0x00000006,0x0000017e,0x0000017d,0x000000ad,0x0004003d,
0x00000006,0x0000017f,0x00000173,0x00050080,0x00000006,0x00000180,0x0000017e,0x0000017f,
0x00060041,0x0000009b,0x00000181,0x00000084,0x0000017c,0x00000180,0x0004003d,0x00000060,
0x00000182,0x00000181,0x00050041,0x00000067,0x00000183,0x000000dc,0x0000017b,0x0003003e,
0x00000183,0x00000182,0x000200f9,0x00000177,0x000200f8,0x00000177,0x0004003d,0x00000006,
0x00000184,0x00000173,0x00050080,0x00000006,0x00000185,0x00000184,0x0000003f,0x0003003e,
0x00000173,0x00000185,0x000200f9,0x00000174,0x000200f8,0x00000176,0x0003003e,0x00000186,
0x00000057,0x000200f9,0x00000187,0x000200f8,0x00000187,0x000400f6,0x00000189,0x0000018a,
0x00000000,0x000200f9,0x0000018b,0x000200f8,0x0000018b,0x0004003d,0x00000006,0x0000018c,
0x00000186,0x000500b1,0x0000005e,0x0000018d,0x0000018c,0x000000ad,0x000400fa,0x0000018d,
0x00000188,0x00000189,0x000200f8,0x00000188,0x0004003d,0x00000006,0x0000018e,0x00000186,
0x0004003d,0x00000006,0x0000018f,0x00000021,0x0004003d,0x00000006,0x00000190,0x00000186,
0x00050084,0x00000006,0x00000191,0x0000001f,0x00000190,0x00050080,0x00000006,0x00000192,
0x0000018f,0x00000191,0x0004003d,0x00000006,0x00000193,0x00000169,0x00060041,0x0000009b,
0x00000194,0x000000aa,0x00000192,0x00000193,0x0004003d,0x00000060,0x00000195,0x00000194,
0x00050041,0x00000067,0x00000196,0x000000f0,0x0000018e,0x0003003e,0x00000196,0x00000195,
0x000200f9,0x0000018a,0x000200f8,0x0000018a,0x0004003d,0x00000006,0x00000197,0x00000186,
0x00050080,0x00000006,0x00000198,0x00000197,0x0000003f,0x0003003e,0x00000186,0x00000198,
0x000200f9,0x00000187,0x000200f8,0x00000189,0x0003003e,0x00000199,0x00000057,0x000200f9,
0x0000019a,0x000200f8,0x0000019a,0x000400f6,0x0000019c,0x0000019d,0x00000000,0x000200f9,
0x0000019e,0x000200f8,0x0000019e,0x0004003d,0x00000006,0x0000019f,0x00000199,0x000500b1,
0x0000005e,0x000001a0,0x0000019f,0x000000ad,0x000400fa,0x000001a0,0x0000019b,0x0000019c,
0x000200f8,0x0000019b,0x0003003e,0x000001a1,0x00000057,0x000200f9,0x000001a2,0x000200f8,
0x000001a2,0x000400f6,0x000001a4,0x000001a5,0x00000000,0x000200f9,0x000001a6,0x000200f8,
0x000001a6,0x0004003d,0x00000006,0x000001a7,0x000001a1,0x000500b1,0x0000005e,0x000001a8,
0x000001a7,0x000000ad,0x000400fa,0x000001a8,0x000001a3,0x000001a4,0x000200f8,0x000001a3,
0x0004003d,0x00000006,0x000001a9,0x00000199,0x00050084,0x00000006,0x000001aa,0x000001a9,
0x000000ad,0x0004003d,0x00000006,0x000001ab,0x000001a1,0x00050080,0x00000006,0x000001ac,
0x000001aa,0x000001ab,0x0004003d,0x00000006,0x000001ad,0x00000199,0x00050041,0x00000067,
0x000001ae,0x000000dc,0x000001ad,0x0004003d,0x00000060,0x000001af,0x000001ae,0x0004003d,
0x00000006,0x000001b0,0x000001a1,0x00050041,0x00000067,0x000001b1,0x000000f0,0x000001b0,
0x0004003d,0x00000060,0x000001b2,0x000001b1,0x00050085,0x00000060,0x000001b3,0x000001af,
0x000001b2,0x00050041,0x00000067,0x000001b4,0x00000064,0x000001ac,0x0004003d,0x00000060,
0x000001b5,0x000001b4,0x00050081,0x00000060,0x000001b6,0x000001b5,0x000001b3,0x00050041,
0x00000067,0x000001b7,0x00000064,0x000001ac,0x0003003e,0x000001b7,0x000001b6,0x000200f9,
0x000001a5,0x000200f8,0x000001a5,0x0004003d,0x00000006,0x000001b8,0x000001a1,0x00050080,
0x00000006,0x000001b9,0x000001b8,0x0000003f,0x0003003e,0x000001a1,0x000001b9,0x000200f9,
0x000001a2,0x000200f8,0x000001a4,0x000200f9,0x0000019d,0x000200f8,0x0000019d,0x0004003d,
0x00000006,0x000001ba,0x00000199,0x00050080,0x00000006,0x000001bb,0x000001ba,0x0000003f,
0x0003003e,0x00000199,0x000001bb,0x000200f9,0x0000019a,0x000200f8,0x0000019c,0x000200f9,
0x0000016d,0x000200f8,0x0000016d,0x0004003d,0x00000006,0x000001bc,0x00000169,0x00050080,
0x00000006,0x000001bd,0x000001bc,0x0000003f,0x0003003e,0x00000169,0x000001bd,0x000200f9,
0x0000016a,0x000200f8,0x0000016c,0x000200f9,0x00000127,0x000200f8,0x00000127,0x0003003e,
0x000001be,0x00000057,0x000200f9,0x000001bf,0x000200f8,0x000001bf,0x000400f6,0x000001c1,
0x000001c2,0x00000000,0x000200f9,0x000001c3,0x000200f8,0x000001c3,0x0004003d,0x00000006,
0x000001c4,0x000001be,0x000500b1,0x0000005e,0x000001c5,0x000001c4,0x000000ad,0x000400fa,
0x000001c5,0x000001c0,0x000001c1,0x000200f8,0x000001c0,0x0004003d,0x00000006,0x000001c7,
0x00000014,0x0004003d,0x00000006,0x000001c8,0x000001be,0x00050084,0x00000006,0x000001c9,
0x000001c8,0x0000001f,0x00050080,0x00000006,0x000001ca,0x000001c7,0x000001c9,0x0004003d,
0x00000006,0x000001cb,0x00000021,0x00050080,0x00000006,0x000001cc,0x000001ca,0x000001cb,
0x0003003e,0x000001c6,0x000001cc,0x0004003d,0x00000006,0x000001cd,0x000001c6,0x00050041,
0x00000040,0x000001ce,0x0000003e,0x00000051,0x0004003d,0x00000006,0x000001cf,0x000001ce,
0x000500b1,0x0000005e,0x000001d0,0x000001cd,0x000001cf,0x000300f7,0x000001d2,0x00000000,
0x000400fa,0x000001d0,0x000001d1,0x000001d2,0x000200f8,0x000001d1,0x0003003e,0x000001d3,
0x00000057,0x000200f9,0x000001d4,0x000200f8,0x000001d4,0x000400f6,0x000001d6,0x000001d7,
0x00000000,0x000200f9,0x000001d8,0x000200f8,0x000001d8,0x0004003d,0x00000006,0x000001d9,
0x000001d3,0x000500b1,0x0000005e,0x000001da,0x000001d9,0x000000ad,0x000400fa,0x000001da,
0x000001d5,0x000001d6,0x000200f8,0x000001d5,0x0004003d,0x00000006,0x000001dc,0x00000008,
0x0004003d,0x00000006,0x000001dd,0x0000001a,0x00050084,0x00000006,0x000001de,0x000001dd,
0x000000ad,0x00050080,0x00000006,0x000001df,0x000001dc,0x000001de,0x0004003d,0x00000006,
0x000001e0,0x000001d3,0x00050080,0x00000006,0x000001e1,0x000001df,0x000001e0,0x0003003e,
0x000001db,0x000001e1,0x0004003d,0x00000006,0x000001e2,0x000001db,0x00050041,0x00000040,
0x000001e3,0x0000003e,0x00000057,0x0004003d,0x00000006,0x000001e4,0x000001e3,0x000500b1,
0x0000005e,0x000001e5,0x000001e2,0x000001e4,0x000300f7,0x000001e7,0x00000000,0x000400fa,
0x000001e5,0x000001e6,0x000001e7,0x000200f8,0x000001e6,0x0004003d,0x00000006,0x000001ec,
0x000001db,0x00050041,0x00000040,0x000001ed,0x0000003e,0x00000051,0x0004003d,0x00000006,
0x000001ee,0x000001ed,0x00050084,0x00000006,0x000001ef,0x000001ec,0x000001ee,0x0004003d,
0x00000006,0x000001f0,0x000001c6,0x00050080,0x00000006,0x000001f1,0x000001ef,0x000001f0,
0x0004003d,0x00000006,0x000001f2,0x000001d3,0x00050084,0x00000006,0x000001f3,0x000001f2,
0x000000ad,0x0004003d,0x00000006,0x000001f4,0x000001be,0x00050080,0x00000006,0x000001f5,
0x000001f3,0x000001f4,0x00050041,0x00000067,0x000001f6,0x00000064,0x000001f5,0x0004003d,
0x00000060,0x000001f7,0x000001f6,0x00060041,0x00000098,0x000001f8,0x000001eb,0x00000057,
0x000001f1,0x0003003e,0x000001f8,0x000001f7,0x000200f9,0x000001e7,0x000200f8,0x000001e7,
0x000200f9,0x000001d7,0x000200f8,0x000001d7,0x0004003d,0x00000006,0x000001f9,0x000001d3,
0x00050080,0x00000006,0x000001fa,0x000001f9,0x0000003f,0x0003003e,0x000001d3,0x000001fa,
0x000200f9,0x000001d4,0x000200f8,0x000001d6,0x000200f9,0x000001d2,0x000200f8,0x000001d2,
0x000200f9,0x000001c2,0x000200f8,0x000001c2,0x0004003d,0x00000006,0x000001fb,0x000001be,
0x00050080,0x00000006,0x000001fc,0x000001fb,0x0000003f,0x0003003e,0x000001be,0x000001fc,
0x000200f9,0x000001bf,0x000200f8,0x000001c1,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,63 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(push_constant) uniform pushBlock {
int thread_num;
int channels;
int height;
int width;
int filter_len;
int radius;
float alpha;
float bias;
float negative_beta;
} p;
layout(binding = 0) readonly buffer Input0{
float in_buffer[];
};
layout(binding = 1) writeonly buffer Output{
float dst_buffer[];
};
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
int gid = int(gl_GlobalInvocationID.x);
int gsz = int(gl_NumWorkGroups.x * gl_WorkGroupSize.x);
for (int index = gid; index < p.thread_num; index += gsz)
{
int x = index % p.width;
int y = (index / p.width) % p.height;
int b = index / (p.width * p.height);
int offset = b * p.channels * p.height * p.width + y * p.width + x;
int channel_off = p.height * p.width;
float scale_val;
int head = 0;
float accum_scale = 0.0f;
int min_val = p.radius < p.channels ? p.radius : p.channels;
while (head < min_val) {
accum_scale += in_buffer[offset + head * channel_off] * in_buffer[offset + head * channel_off];
++head;
}
while (head < p.channels) {
accum_scale += in_buffer[offset + head * channel_off] * in_buffer[offset + head * channel_off];
if (head - p.filter_len >= 0) {
accum_scale -= in_buffer[offset + (head - p.filter_len) * channel_off]
* in_buffer[offset + (head - p.filter_len) * channel_off];
}
scale_val = p.bias + accum_scale * p.alpha;
dst_buffer[offset + (head - p.radius) * channel_off] = in_buffer[offset + (head - p.radius) * channel_off] * pow(scale_val, p.negative_beta);
++head;
}
int pos = head - min_val;
while (pos >= 0 && pos < p.channels) {
if (head - p.filter_len >= 0) {
accum_scale -= in_buffer[offset + (head - p.filter_len) * channel_off]
* in_buffer[offset + (head - p.filter_len) * channel_off];
}
scale_val = p.bias + accum_scale * p.alpha;
dst_buffer[offset + pos * channel_off] = in_buffer[offset + pos * channel_off] * pow(scale_val, p.negative_beta);
++head;
++pos;
}
}
}

View File

@ -1,246 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int lrn_spv[1845] = {
0x07230203,0x00010000,0x00080001,0x00000144,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00000013,0x00060010,
0x00000004,0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00646967,0x00080005,
0x0000000c,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00030005,
0x00000012,0x007a7367,0x00070005,0x00000013,0x4e5f6c67,0x6f576d75,0x72476b72,0x7370756f,
0x00000000,0x00040005,0x00000019,0x65646e69,0x00000078,0x00050005,0x00000022,0x68737570,
0x636f6c42,0x0000006b,0x00060006,0x00000022,0x00000000,0x65726874,0x6e5f6461,0x00006d75,
0x00060006,0x00000022,0x00000001,0x6e616863,0x736c656e,0x00000000,0x00050006,0x00000022,
0x00000002,0x67696568,0x00007468,0x00050006,0x00000022,0x00000003,0x74646977,0x00000068,
0x00060006,0x00000022,0x00000004,0x746c6966,0x6c5f7265,0x00006e65,0x00050006,0x00000022,
0x00000005,0x69646172,0x00007375,0x00050006,0x00000022,0x00000006,0x68706c61,0x00000061,
0x00050006,0x00000022,0x00000007,0x73616962,0x00000000,0x00070006,0x00000022,0x00000008,
0x6167656e,0x65766974,0x7465625f,0x00000061,0x00030005,0x00000024,0x00000070,0x00030005,
0x0000002b,0x00000078,0x00030005,0x00000031,0x00000079,0x00030005,0x0000003a,0x00000062,
0x00040005,0x00000042,0x7366666f,0x00007465,0x00050005,0x00000055,0x6e616863,0x5f6c656e,
0x0066666f,0x00040005,0x0000005b,0x64616568,0x00000000,0x00050005,0x0000005d,0x75636361,
0x63735f6d,0x00656c61,0x00040005,0x0000005f,0x5f6e696d,0x006c6176,0x00040005,0x00000078,
0x75706e49,0x00003074,0x00060006,0x00000078,0x00000000,0x625f6e69,0x65666675,0x00000072,
0x00030005,0x0000007a,0x00000000,0x00050005,0x000000c8,0x6c616373,0x61765f65,0x0000006c,
0x00040005,0x000000d4,0x7074754f,0x00007475,0x00060006,0x000000d4,0x00000000,0x5f747364,
0x66667562,0x00007265,0x00030005,0x000000d6,0x00000000,0x00030005,0x000000f2,0x00736f70,
0x00040047,0x0000000c,0x0000000b,0x0000001c,0x00040047,0x00000013,0x0000000b,0x00000018,
0x00050048,0x00000022,0x00000000,0x00000023,0x00000000,0x00050048,0x00000022,0x00000001,
0x00000023,0x00000004,0x00050048,0x00000022,0x00000002,0x00000023,0x00000008,0x00050048,
0x00000022,0x00000003,0x00000023,0x0000000c,0x00050048,0x00000022,0x00000004,0x00000023,
0x00000010,0x00050048,0x00000022,0x00000005,0x00000023,0x00000014,0x00050048,0x00000022,
0x00000006,0x00000023,0x00000018,0x00050048,0x00000022,0x00000007,0x00000023,0x0000001c,
0x00050048,0x00000022,0x00000008,0x00000023,0x00000020,0x00030047,0x00000022,0x00000002,
0x00040047,0x00000077,0x00000006,0x00000004,0x00040048,0x00000078,0x00000000,0x00000018,
0x00050048,0x00000078,0x00000000,0x00000023,0x00000000,0x00030047,0x00000078,0x00000003,
0x00040047,0x0000007a,0x00000022,0x00000000,0x00040047,0x0000007a,0x00000021,0x00000000,
0x00040047,0x000000d3,0x00000006,0x00000004,0x00040048,0x000000d4,0x00000000,0x00000019,
0x00050048,0x000000d4,0x00000000,0x00000023,0x00000000,0x00030047,0x000000d4,0x00000003,
0x00040047,0x000000d6,0x00000022,0x00000000,0x00040047,0x000000d6,0x00000021,0x00000001,
0x00040047,0x00000143,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,0x00000003,
0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,
0x00000006,0x00040015,0x00000009,0x00000020,0x00000000,0x00040017,0x0000000a,0x00000009,
0x00000003,0x00040020,0x0000000b,0x00000001,0x0000000a,0x0004003b,0x0000000b,0x0000000c,
0x00000001,0x0004002b,0x00000009,0x0000000d,0x00000000,0x00040020,0x0000000e,0x00000001,
0x00000009,0x0004003b,0x0000000b,0x00000013,0x00000001,0x0004002b,0x00000009,0x00000016,
0x00000100,0x00030016,0x00000021,0x00000020,0x000b001e,0x00000022,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000021,0x00000021,0x00000021,0x00040020,
0x00000023,0x00000009,0x00000022,0x0004003b,0x00000023,0x00000024,0x00000009,0x0004002b,
0x00000006,0x00000025,0x00000000,0x00040020,0x00000026,0x00000009,0x00000006,0x00020014,
0x00000029,0x0004002b,0x00000006,0x0000002d,0x00000003,0x0004002b,0x00000006,0x00000036,
0x00000002,0x0004002b,0x00000006,0x00000044,0x00000001,0x00040020,0x0000005c,0x00000007,
0x00000021,0x0004002b,0x00000021,0x0000005e,0x00000000,0x0004002b,0x00000006,0x00000061,
0x00000005,0x0003001d,0x00000077,0x00000021,0x0003001e,0x00000078,0x00000077,0x00040020,
0x00000079,0x00000002,0x00000078,0x0004003b,0x00000079,0x0000007a,0x00000002,0x00040020,
0x00000080,0x00000002,0x00000021,0x0004002b,0x00000006,0x000000aa,0x00000004,0x0004002b,
0x00000006,0x000000c9,0x00000007,0x00040020,0x000000ca,0x00000009,0x00000021,0x0004002b,
0x00000006,0x000000ce,0x00000006,0x0003001d,0x000000d3,0x00000021,0x0003001e,0x000000d4,
0x000000d3,0x00040020,0x000000d5,0x00000002,0x000000d4,0x0004003b,0x000000d5,0x000000d6,
0x00000002,0x0004002b,0x00000006,0x000000ea,0x00000008,0x0004002b,0x00000009,0x00000142,
0x00000001,0x0006002c,0x0000000a,0x00000143,0x00000016,0x00000142,0x00000142,0x00050036,
0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,
0x00000008,0x00000007,0x0004003b,0x00000007,0x00000012,0x00000007,0x0004003b,0x00000007,
0x00000019,0x00000007,0x0004003b,0x00000007,0x0000002b,0x00000007,0x0004003b,0x00000007,
0x00000031,0x00000007,0x0004003b,0x00000007,0x0000003a,0x00000007,0x0004003b,0x00000007,
0x00000042,0x00000007,0x0004003b,0x00000007,0x00000055,0x00000007,0x0004003b,0x00000007,
0x0000005b,0x00000007,0x0004003b,0x0000005c,0x0000005d,0x00000007,0x0004003b,0x00000007,
0x0000005f,0x00000007,0x0004003b,0x00000007,0x00000060,0x00000007,0x0004003b,0x0000005c,
0x000000c8,0x00000007,0x0004003b,0x00000007,0x000000f2,0x00000007,0x00050041,0x0000000e,
0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,0x0000000f,0x0004007c,
0x00000006,0x00000011,0x00000010,0x0003003e,0x00000008,0x00000011,0x00050041,0x0000000e,
0x00000014,0x00000013,0x0000000d,0x0004003d,0x00000009,0x00000015,0x00000014,0x00050084,
0x00000009,0x00000017,0x00000015,0x00000016,0x0004007c,0x00000006,0x00000018,0x00000017,
0x0003003e,0x00000012,0x00000018,0x0004003d,0x00000006,0x0000001a,0x00000008,0x0003003e,
0x00000019,0x0000001a,0x000200f9,0x0000001b,0x000200f8,0x0000001b,0x000400f6,0x0000001d,
0x0000001e,0x00000000,0x000200f9,0x0000001f,0x000200f8,0x0000001f,0x0004003d,0x00000006,
0x00000020,0x00000019,0x00050041,0x00000026,0x00000027,0x00000024,0x00000025,0x0004003d,
0x00000006,0x00000028,0x00000027,0x000500b1,0x00000029,0x0000002a,0x00000020,0x00000028,
0x000400fa,0x0000002a,0x0000001c,0x0000001d,0x000200f8,0x0000001c,0x0004003d,0x00000006,
0x0000002c,0x00000019,0x00050041,0x00000026,0x0000002e,0x00000024,0x0000002d,0x0004003d,
0x00000006,0x0000002f,0x0000002e,0x0005008b,0x00000006,0x00000030,0x0000002c,0x0000002f,
0x0003003e,0x0000002b,0x00000030,0x0004003d,0x00000006,0x00000032,0x00000019,0x00050041,
0x00000026,0x00000033,0x00000024,0x0000002d,0x0004003d,0x00000006,0x00000034,0x00000033,
0x00050087,0x00000006,0x00000035,0x00000032,0x00000034,0x00050041,0x00000026,0x00000037,
0x00000024,0x00000036,0x0004003d,0x00000006,0x00000038,0x00000037,0x0005008b,0x00000006,
0x00000039,0x00000035,0x00000038,0x0003003e,0x00000031,0x00000039,0x0004003d,0x00000006,
0x0000003b,0x00000019,0x00050041,0x00000026,0x0000003c,0x00000024,0x0000002d,0x0004003d,
0x00000006,0x0000003d,0x0000003c,0x00050041,0x00000026,0x0000003e,0x00000024,0x00000036,
0x0004003d,0x00000006,0x0000003f,0x0000003e,0x00050084,0x00000006,0x00000040,0x0000003d,
0x0000003f,0x00050087,0x00000006,0x00000041,0x0000003b,0x00000040,0x0003003e,0x0000003a,
0x00000041,0x0004003d,0x00000006,0x00000043,0x0000003a,0x00050041,0x00000026,0x00000045,
0x00000024,0x00000044,0x0004003d,0x00000006,0x00000046,0x00000045,0x00050084,0x00000006,
0x00000047,0x00000043,0x00000046,0x00050041,0x00000026,0x00000048,0x00000024,0x00000036,
0x0004003d,0x00000006,0x00000049,0x00000048,0x00050084,0x00000006,0x0000004a,0x00000047,
0x00000049,0x00050041,0x00000026,0x0000004b,0x00000024,0x0000002d,0x0004003d,0x00000006,
0x0000004c,0x0000004b,0x00050084,0x00000006,0x0000004d,0x0000004a,0x0000004c,0x0004003d,
0x00000006,0x0000004e,0x00000031,0x00050041,0x00000026,0x0000004f,0x00000024,0x0000002d,
0x0004003d,0x00000006,0x00000050,0x0000004f,0x00050084,0x00000006,0x00000051,0x0000004e,
0x00000050,0x00050080,0x00000006,0x00000052,0x0000004d,0x00000051,0x0004003d,0x00000006,
0x00000053,0x0000002b,0x00050080,0x00000006,0x00000054,0x00000052,0x00000053,0x0003003e,
0x00000042,0x00000054,0x00050041,0x00000026,0x00000056,0x00000024,0x00000036,0x0004003d,
0x00000006,0x00000057,0x00000056,0x00050041,0x00000026,0x00000058,0x00000024,0x0000002d,
0x0004003d,0x00000006,0x00000059,0x00000058,0x00050084,0x00000006,0x0000005a,0x00000057,
0x00000059,0x0003003e,0x00000055,0x0000005a,0x0003003e,0x0000005b,0x00000025,0x0003003e,
0x0000005d,0x0000005e,0x00050041,0x00000026,0x00000062,0x00000024,0x00000061,0x0004003d,
0x00000006,0x00000063,0x00000062,0x00050041,0x00000026,0x00000064,0x00000024,0x00000044,
0x0004003d,0x00000006,0x00000065,0x00000064,0x000500b1,0x00000029,0x00000066,0x00000063,
0x00000065,0x000300f7,0x00000068,0x00000000,0x000400fa,0x00000066,0x00000067,0x0000006b,
0x000200f8,0x00000067,0x00050041,0x00000026,0x00000069,0x00000024,0x00000061,0x0004003d,
0x00000006,0x0000006a,0x00000069,0x0003003e,0x00000060,0x0000006a,0x000200f9,0x00000068,
0x000200f8,0x0000006b,0x00050041,0x00000026,0x0000006c,0x00000024,0x00000044,0x0004003d,
0x00000006,0x0000006d,0x0000006c,0x0003003e,0x00000060,0x0000006d,0x000200f9,0x00000068,
0x000200f8,0x00000068,0x0004003d,0x00000006,0x0000006e,0x00000060,0x0003003e,0x0000005f,
0x0000006e,0x000200f9,0x0000006f,0x000200f8,0x0000006f,0x000400f6,0x00000071,0x00000072,
0x00000000,0x000200f9,0x00000073,0x000200f8,0x00000073,0x0004003d,0x00000006,0x00000074,
0x0000005b,0x0004003d,0x00000006,0x00000075,0x0000005f,0x000500b1,0x00000029,0x00000076,
0x00000074,0x00000075,0x000400fa,0x00000076,0x00000070,0x00000071,0x000200f8,0x00000070,
0x0004003d,0x00000006,0x0000007b,0x00000042,0x0004003d,0x00000006,0x0000007c,0x0000005b,
0x0004003d,0x00000006,0x0000007d,0x00000055,0x00050084,0x00000006,0x0000007e,0x0000007c,
0x0000007d,0x00050080,0x00000006,0x0000007f,0x0000007b,0x0000007e,0x00060041,0x00000080,
0x00000081,0x0000007a,0x00000025,0x0000007f,0x0004003d,0x00000021,0x00000082,0x00000081,
0x0004003d,0x00000006,0x00000083,0x00000042,0x0004003d,0x00000006,0x00000084,0x0000005b,
0x0004003d,0x00000006,0x00000085,0x00000055,0x00050084,0x00000006,0x00000086,0x00000084,
0x00000085,0x00050080,0x00000006,0x00000087,0x00000083,0x00000086,0x00060041,0x00000080,
0x00000088,0x0000007a,0x00000025,0x00000087,0x0004003d,0x00000021,0x00000089,0x00000088,
0x00050085,0x00000021,0x0000008a,0x00000082,0x00000089,0x0004003d,0x00000021,0x0000008b,
0x0000005d,0x00050081,0x00000021,0x0000008c,0x0000008b,0x0000008a,0x0003003e,0x0000005d,
0x0000008c,0x0004003d,0x00000006,0x0000008d,0x0000005b,0x00050080,0x00000006,0x0000008e,
0x0000008d,0x00000044,0x0003003e,0x0000005b,0x0000008e,0x000200f9,0x00000072,0x000200f8,
0x00000072,0x000200f9,0x0000006f,0x000200f8,0x00000071,0x000200f9,0x0000008f,0x000200f8,
0x0000008f,0x000400f6,0x00000091,0x00000092,0x00000000,0x000200f9,0x00000093,0x000200f8,
0x00000093,0x0004003d,0x00000006,0x00000094,0x0000005b,0x00050041,0x00000026,0x00000095,
0x00000024,0x00000044,0x0004003d,0x00000006,0x00000096,0x00000095,0x000500b1,0x00000029,
0x00000097,0x00000094,0x00000096,0x000400fa,0x00000097,0x00000090,0x00000091,0x000200f8,
0x00000090,0x0004003d,0x00000006,0x00000098,0x00000042,0x0004003d,0x00000006,0x00000099,
0x0000005b,0x0004003d,0x00000006,0x0000009a,0x00000055,0x00050084,0x00000006,0x0000009b,
0x00000099,0x0000009a,0x00050080,0x00000006,0x0000009c,0x00000098,0x0000009b,0x00060041,
0x00000080,0x0000009d,0x0000007a,0x00000025,0x0000009c,0x0004003d,0x00000021,0x0000009e,
0x0000009d,0x0004003d,0x00000006,0x0000009f,0x00000042,0x0004003d,0x00000006,0x000000a0,
0x0000005b,0x0004003d,0x00000006,0x000000a1,0x00000055,0x00050084,0x00000006,0x000000a2,
0x000000a0,0x000000a1,0x00050080,0x00000006,0x000000a3,0x0000009f,0x000000a2,0x00060041,
0x00000080,0x000000a4,0x0000007a,0x00000025,0x000000a3,0x0004003d,0x00000021,0x000000a5,
0x000000a4,0x00050085,0x00000021,0x000000a6,0x0000009e,0x000000a5,0x0004003d,0x00000021,
0x000000a7,0x0000005d,0x00050081,0x00000021,0x000000a8,0x000000a7,0x000000a6,0x0003003e,
0x0000005d,0x000000a8,0x0004003d,0x00000006,0x000000a9,0x0000005b,0x00050041,0x00000026,
0x000000ab,0x00000024,0x000000aa,0x0004003d,0x00000006,0x000000ac,0x000000ab,0x00050082,
0x00000006,0x000000ad,0x000000a9,0x000000ac,0x000500af,0x00000029,0x000000ae,0x000000ad,
0x00000025,0x000300f7,0x000000b0,0x00000000,0x000400fa,0x000000ae,0x000000af,0x000000b0,
0x000200f8,0x000000af,0x0004003d,0x00000006,0x000000b1,0x00000042,0x0004003d,0x00000006,
0x000000b2,0x0000005b,0x00050041,0x00000026,0x000000b3,0x00000024,0x000000aa,0x0004003d,
0x00000006,0x000000b4,0x000000b3,0x00050082,0x00000006,0x000000b5,0x000000b2,0x000000b4,
0x0004003d,0x00000006,0x000000b6,0x00000055,0x00050084,0x00000006,0x000000b7,0x000000b5,
0x000000b6,0x00050080,0x00000006,0x000000b8,0x000000b1,0x000000b7,0x00060041,0x00000080,
0x000000b9,0x0000007a,0x00000025,0x000000b8,0x0004003d,0x00000021,0x000000ba,0x000000b9,
0x0004003d,0x00000006,0x000000bb,0x00000042,0x0004003d,0x00000006,0x000000bc,0x0000005b,
0x00050041,0x00000026,0x000000bd,0x00000024,0x000000aa,0x0004003d,0x00000006,0x000000be,
0x000000bd,0x00050082,0x00000006,0x000000bf,0x000000bc,0x000000be,0x0004003d,0x00000006,
0x000000c0,0x00000055,0x00050084,0x00000006,0x000000c1,0x000000bf,0x000000c0,0x00050080,
0x00000006,0x000000c2,0x000000bb,0x000000c1,0x00060041,0x00000080,0x000000c3,0x0000007a,
0x00000025,0x000000c2,0x0004003d,0x00000021,0x000000c4,0x000000c3,0x00050085,0x00000021,
0x000000c5,0x000000ba,0x000000c4,0x0004003d,0x00000021,0x000000c6,0x0000005d,0x00050083,
0x00000021,0x000000c7,0x000000c6,0x000000c5,0x0003003e,0x0000005d,0x000000c7,0x000200f9,
0x000000b0,0x000200f8,0x000000b0,0x00050041,0x000000ca,0x000000cb,0x00000024,0x000000c9,
0x0004003d,0x00000021,0x000000cc,0x000000cb,0x0004003d,0x00000021,0x000000cd,0x0000005d,
0x00050041,0x000000ca,0x000000cf,0x00000024,0x000000ce,0x0004003d,0x00000021,0x000000d0,
0x000000cf,0x00050085,0x00000021,0x000000d1,0x000000cd,0x000000d0,0x00050081,0x00000021,
0x000000d2,0x000000cc,0x000000d1,0x0003003e,0x000000c8,0x000000d2,0x0004003d,0x00000006,
0x000000d7,0x00000042,0x0004003d,0x00000006,0x000000d8,0x0000005b,0x00050041,0x00000026,
0x000000d9,0x00000024,0x00000061,0x0004003d,0x00000006,0x000000da,0x000000d9,0x00050082,
0x00000006,0x000000db,0x000000d8,0x000000da,0x0004003d,0x00000006,0x000000dc,0x00000055,
0x00050084,0x00000006,0x000000dd,0x000000db,0x000000dc,0x00050080,0x00000006,0x000000de,
0x000000d7,0x000000dd,0x0004003d,0x00000006,0x000000df,0x00000042,0x0004003d,0x00000006,
0x000000e0,0x0000005b,0x00050041,0x00000026,0x000000e1,0x00000024,0x00000061,0x0004003d,
0x00000006,0x000000e2,0x000000e1,0x00050082,0x00000006,0x000000e3,0x000000e0,0x000000e2,
0x0004003d,0x00000006,0x000000e4,0x00000055,0x00050084,0x00000006,0x000000e5,0x000000e3,
0x000000e4,0x00050080,0x00000006,0x000000e6,0x000000df,0x000000e5,0x00060041,0x00000080,
0x000000e7,0x0000007a,0x00000025,0x000000e6,0x0004003d,0x00000021,0x000000e8,0x000000e7,
0x0004003d,0x00000021,0x000000e9,0x000000c8,0x00050041,0x000000ca,0x000000eb,0x00000024,
0x000000ea,0x0004003d,0x00000021,0x000000ec,0x000000eb,0x0007000c,0x00000021,0x000000ed,
0x00000001,0x0000001a,0x000000e9,0x000000ec,0x00050085,0x00000021,0x000000ee,0x000000e8,
0x000000ed,0x00060041,0x00000080,0x000000ef,0x000000d6,0x00000025,0x000000de,0x0003003e,
0x000000ef,0x000000ee,0x0004003d,0x00000006,0x000000f0,0x0000005b,0x00050080,0x00000006,
0x000000f1,0x000000f0,0x00000044,0x0003003e,0x0000005b,0x000000f1,0x000200f9,0x00000092,
0x000200f8,0x00000092,0x000200f9,0x0000008f,0x000200f8,0x00000091,0x0004003d,0x00000006,
0x000000f3,0x0000005b,0x0004003d,0x00000006,0x000000f4,0x0000005f,0x00050082,0x00000006,
0x000000f5,0x000000f3,0x000000f4,0x0003003e,0x000000f2,0x000000f5,0x000200f9,0x000000f6,
0x000200f8,0x000000f6,0x000400f6,0x000000f8,0x000000f9,0x00000000,0x000200f9,0x000000fa,
0x000200f8,0x000000fa,0x0004003d,0x00000006,0x000000fb,0x000000f2,0x000500af,0x00000029,
0x000000fc,0x000000fb,0x00000025,0x000300f7,0x000000fe,0x00000000,0x000400fa,0x000000fc,
0x000000fd,0x000000fe,0x000200f8,0x000000fd,0x0004003d,0x00000006,0x000000ff,0x000000f2,
0x00050041,0x00000026,0x00000100,0x00000024,0x00000044,0x0004003d,0x00000006,0x00000101,
0x00000100,0x000500b1,0x00000029,0x00000102,0x000000ff,0x00000101,0x000200f9,0x000000fe,
0x000200f8,0x000000fe,0x000700f5,0x00000029,0x00000103,0x000000fc,0x000000fa,0x00000102,
0x000000fd,0x000400fa,0x00000103,0x000000f7,0x000000f8,0x000200f8,0x000000f7,0x0004003d,
0x00000006,0x00000104,0x0000005b,0x00050041,0x00000026,0x00000105,0x00000024,0x000000aa,
0x0004003d,0x00000006,0x00000106,0x00000105,0x00050082,0x00000006,0x00000107,0x00000104,
0x00000106,0x000500af,0x00000029,0x00000108,0x00000107,0x00000025,0x000300f7,0x0000010a,
0x00000000,0x000400fa,0x00000108,0x00000109,0x0000010a,0x000200f8,0x00000109,0x0004003d,
0x00000006,0x0000010b,0x00000042,0x0004003d,0x00000006,0x0000010c,0x0000005b,0x00050041,
0x00000026,0x0000010d,0x00000024,0x000000aa,0x0004003d,0x00000006,0x0000010e,0x0000010d,
0x00050082,0x00000006,0x0000010f,0x0000010c,0x0000010e,0x0004003d,0x00000006,0x00000110,
0x00000055,0x00050084,0x00000006,0x00000111,0x0000010f,0x00000110,0x00050080,0x00000006,
0x00000112,0x0000010b,0x00000111,0x00060041,0x00000080,0x00000113,0x0000007a,0x00000025,
0x00000112,0x0004003d,0x00000021,0x00000114,0x00000113,0x0004003d,0x00000006,0x00000115,
0x00000042,0x0004003d,0x00000006,0x00000116,0x0000005b,0x00050041,0x00000026,0x00000117,
0x00000024,0x000000aa,0x0004003d,0x00000006,0x00000118,0x00000117,0x00050082,0x00000006,
0x00000119,0x00000116,0x00000118,0x0004003d,0x00000006,0x0000011a,0x00000055,0x00050084,
0x00000006,0x0000011b,0x00000119,0x0000011a,0x00050080,0x00000006,0x0000011c,0x00000115,
0x0000011b,0x00060041,0x00000080,0x0000011d,0x0000007a,0x00000025,0x0000011c,0x0004003d,
0x00000021,0x0000011e,0x0000011d,0x00050085,0x00000021,0x0000011f,0x00000114,0x0000011e,
0x0004003d,0x00000021,0x00000120,0x0000005d,0x00050083,0x00000021,0x00000121,0x00000120,
0x0000011f,0x0003003e,0x0000005d,0x00000121,0x000200f9,0x0000010a,0x000200f8,0x0000010a,
0x00050041,0x000000ca,0x00000122,0x00000024,0x000000c9,0x0004003d,0x00000021,0x00000123,
0x00000122,0x0004003d,0x00000021,0x00000124,0x0000005d,0x00050041,0x000000ca,0x00000125,
0x00000024,0x000000ce,0x0004003d,0x00000021,0x00000126,0x00000125,0x00050085,0x00000021,
0x00000127,0x00000124,0x00000126,0x00050081,0x00000021,0x00000128,0x00000123,0x00000127,
0x0003003e,0x000000c8,0x00000128,0x0004003d,0x00000006,0x00000129,0x00000042,0x0004003d,
0x00000006,0x0000012a,0x000000f2,0x0004003d,0x00000006,0x0000012b,0x00000055,0x00050084,
0x00000006,0x0000012c,0x0000012a,0x0000012b,0x00050080,0x00000006,0x0000012d,0x00000129,
0x0000012c,0x0004003d,0x00000006,0x0000012e,0x00000042,0x0004003d,0x00000006,0x0000012f,
0x000000f2,0x0004003d,0x00000006,0x00000130,0x00000055,0x00050084,0x00000006,0x00000131,
0x0000012f,0x00000130,0x00050080,0x00000006,0x00000132,0x0000012e,0x00000131,0x00060041,
0x00000080,0x00000133,0x0000007a,0x00000025,0x00000132,0x0004003d,0x00000021,0x00000134,
0x00000133,0x0004003d,0x00000021,0x00000135,0x000000c8,0x00050041,0x000000ca,0x00000136,
0x00000024,0x000000ea,0x0004003d,0x00000021,0x00000137,0x00000136,0x0007000c,0x00000021,
0x00000138,0x00000001,0x0000001a,0x00000135,0x00000137,0x00050085,0x00000021,0x00000139,
0x00000134,0x00000138,0x00060041,0x00000080,0x0000013a,0x000000d6,0x00000025,0x0000012d,
0x0003003e,0x0000013a,0x00000139,0x0004003d,0x00000006,0x0000013b,0x0000005b,0x00050080,
0x00000006,0x0000013c,0x0000013b,0x00000044,0x0003003e,0x0000005b,0x0000013c,0x0004003d,
0x00000006,0x0000013d,0x000000f2,0x00050080,0x00000006,0x0000013e,0x0000013d,0x00000044,
0x0003003e,0x000000f2,0x0000013e,0x000200f9,0x000000f9,0x000200f8,0x000000f9,0x000200f9,
0x000000f6,0x000200f8,0x000000f8,0x000200f9,0x0000001e,0x000200f8,0x0000001e,0x0004003d,
0x00000006,0x0000013f,0x00000012,0x0004003d,0x00000006,0x00000140,0x00000019,0x00050080,
0x00000006,0x00000141,0x00000140,0x0000013f,0x0003003e,0x00000019,0x00000141,0x000200f9,
0x0000001b,0x000200f8,0x0000001d,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,64 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(push_constant) uniform pushBlock {
int channels;
int in_h;
int in_w;
int out_h;
int out_w;
int padding_h;
int padding_w;
int filter_h;
int filter_w;
int stride_h;
int stride_w;
int total;
int need_mask;
} p;
layout(binding = 0) readonly buffer Input0{
float in_buffer[];
};
layout(binding = 1) writeonly buffer Output{
float out_buffer[];
};
layout(binding = 2) writeonly buffer Mask{
float mask_buffer[];
};
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
int global_size = int(gl_WorkGroupSize.x * gl_NumWorkGroups.x);
int gid = int(gl_GlobalInvocationID.x);
for (int index = gid; index < p.total; index += global_size)
{
const int pw = index % p.out_w;
const int ph = (index / p.out_w) % p.out_h;
const int c = (index / p.out_w / p.out_h) % p.channels;
const int n = index / p.out_w / p.out_h / p.channels;
int hstart = ph * p.stride_h - p.padding_h;
int wstart = pw * p.stride_w - p.padding_w;
const int hend = min(hstart + p.filter_h, p.in_h);
const int wend = min(wstart + p.filter_w, p.in_w);
hstart = max(hstart, 0);
wstart = max(wstart, 0);
float maxval = -1./0.;
int maxidx = -1;
int off = (n * p.channels + c) * p.in_h * p.in_w;
for (int h = hstart; h < hend; ++h) {
for (int w = wstart; w < wend; ++w) {
if (in_buffer[off + h * p.in_w + w] > maxval) {
maxidx = h * p.in_w + w;
maxval = in_buffer[off + maxidx];
}
}
}
out_buffer[index] = maxval;
if (p.need_mask == 1)
mask_buffer[index] = maxidx;
}
}

View File

@ -1,197 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int max_pool_spv[1449] = {
0x07230203,0x00010000,0x00080001,0x000000df,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000d,0x00000015,0x00060010,
0x00000004,0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00050005,0x00000008,0x626f6c67,0x735f6c61,
0x00657a69,0x00070005,0x0000000d,0x4e5f6c67,0x6f576d75,0x72476b72,0x7370756f,0x00000000,
0x00030005,0x00000014,0x00646967,0x00080005,0x00000015,0x475f6c67,0x61626f6c,0x766e496c,
0x7461636f,0x496e6f69,0x00000044,0x00040005,0x00000019,0x65646e69,0x00000078,0x00050005,
0x00000021,0x68737570,0x636f6c42,0x0000006b,0x00060006,0x00000021,0x00000000,0x6e616863,
0x736c656e,0x00000000,0x00050006,0x00000021,0x00000001,0x685f6e69,0x00000000,0x00050006,
0x00000021,0x00000002,0x775f6e69,0x00000000,0x00050006,0x00000021,0x00000003,0x5f74756f,
0x00000068,0x00050006,0x00000021,0x00000004,0x5f74756f,0x00000077,0x00060006,0x00000021,
0x00000005,0x64646170,0x5f676e69,0x00000068,0x00060006,0x00000021,0x00000006,0x64646170,
0x5f676e69,0x00000077,0x00060006,0x00000021,0x00000007,0x746c6966,0x685f7265,0x00000000,
0x00060006,0x00000021,0x00000008,0x746c6966,0x775f7265,0x00000000,0x00060006,0x00000021,
0x00000009,0x69727473,0x685f6564,0x00000000,0x00060006,0x00000021,0x0000000a,0x69727473,
0x775f6564,0x00000000,0x00050006,0x00000021,0x0000000b,0x61746f74,0x0000006c,0x00060006,
0x00000021,0x0000000c,0x6465656e,0x73616d5f,0x0000006b,0x00030005,0x00000023,0x00000070,
0x00030005,0x0000002a,0x00007770,0x00030005,0x00000030,0x00006870,0x00030005,0x00000039,
0x00000063,0x00030005,0x00000045,0x0000006e,0x00040005,0x00000050,0x61747368,0x00007472,
0x00040005,0x0000005a,0x61747377,0x00007472,0x00040005,0x00000064,0x646e6568,0x00000000,
0x00040005,0x0000006e,0x646e6577,0x00000000,0x00040005,0x0000007e,0x7678616d,0x00006c61,
0x00040005,0x00000080,0x6978616d,0x00007864,0x00030005,0x00000082,0x0066666f,0x00030005,
0x0000008f,0x00000068,0x00030005,0x00000099,0x00000077,0x00040005,0x000000a4,0x75706e49,
0x00003074,0x00060006,0x000000a4,0x00000000,0x625f6e69,0x65666675,0x00000072,0x00030005,
0x000000a6,0x00000000,0x00040005,0x000000c6,0x7074754f,0x00007475,0x00060006,0x000000c6,
0x00000000,0x5f74756f,0x66667562,0x00007265,0x00030005,0x000000c8,0x00000000,0x00040005,
0x000000d3,0x6b73614d,0x00000000,0x00060006,0x000000d3,0x00000000,0x6b73616d,0x6675625f,
0x00726566,0x00030005,0x000000d5,0x00000000,0x00040047,0x0000000d,0x0000000b,0x00000018,
0x00040047,0x00000015,0x0000000b,0x0000001c,0x00050048,0x00000021,0x00000000,0x00000023,
0x00000000,0x00050048,0x00000021,0x00000001,0x00000023,0x00000004,0x00050048,0x00000021,
0x00000002,0x00000023,0x00000008,0x00050048,0x00000021,0x00000003,0x00000023,0x0000000c,
0x00050048,0x00000021,0x00000004,0x00000023,0x00000010,0x00050048,0x00000021,0x00000005,
0x00000023,0x00000014,0x00050048,0x00000021,0x00000006,0x00000023,0x00000018,0x00050048,
0x00000021,0x00000007,0x00000023,0x0000001c,0x00050048,0x00000021,0x00000008,0x00000023,
0x00000020,0x00050048,0x00000021,0x00000009,0x00000023,0x00000024,0x00050048,0x00000021,
0x0000000a,0x00000023,0x00000028,0x00050048,0x00000021,0x0000000b,0x00000023,0x0000002c,
0x00050048,0x00000021,0x0000000c,0x00000023,0x00000030,0x00030047,0x00000021,0x00000002,
0x00040047,0x000000a3,0x00000006,0x00000004,0x00040048,0x000000a4,0x00000000,0x00000018,
0x00050048,0x000000a4,0x00000000,0x00000023,0x00000000,0x00030047,0x000000a4,0x00000003,
0x00040047,0x000000a6,0x00000022,0x00000000,0x00040047,0x000000a6,0x00000021,0x00000000,
0x00040047,0x000000c5,0x00000006,0x00000004,0x00040048,0x000000c6,0x00000000,0x00000019,
0x00050048,0x000000c6,0x00000000,0x00000023,0x00000000,0x00030047,0x000000c6,0x00000003,
0x00040047,0x000000c8,0x00000022,0x00000000,0x00040047,0x000000c8,0x00000021,0x00000001,
0x00040047,0x000000d2,0x00000006,0x00000004,0x00040048,0x000000d3,0x00000000,0x00000019,
0x00050048,0x000000d3,0x00000000,0x00000023,0x00000000,0x00030047,0x000000d3,0x00000003,
0x00040047,0x000000d5,0x00000022,0x00000000,0x00040047,0x000000d5,0x00000021,0x00000002,
0x00040047,0x000000de,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,0x00000003,
0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,
0x00000006,0x00040015,0x00000009,0x00000020,0x00000000,0x0004002b,0x00000009,0x0000000a,
0x00000100,0x00040017,0x0000000b,0x00000009,0x00000003,0x00040020,0x0000000c,0x00000001,
0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000001,0x0004002b,0x00000009,0x0000000e,
0x00000000,0x00040020,0x0000000f,0x00000001,0x00000009,0x0004003b,0x0000000c,0x00000015,
0x00000001,0x000f001e,0x00000021,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,
0x00040020,0x00000022,0x00000009,0x00000021,0x0004003b,0x00000022,0x00000023,0x00000009,
0x0004002b,0x00000006,0x00000024,0x0000000b,0x00040020,0x00000025,0x00000009,0x00000006,
0x00020014,0x00000028,0x0004002b,0x00000006,0x0000002c,0x00000004,0x0004002b,0x00000006,
0x00000035,0x00000003,0x0004002b,0x00000006,0x00000041,0x00000000,0x0004002b,0x00000006,
0x00000052,0x00000009,0x0004002b,0x00000006,0x00000056,0x00000005,0x0004002b,0x00000006,
0x0000005c,0x0000000a,0x0004002b,0x00000006,0x00000060,0x00000006,0x0004002b,0x00000006,
0x00000066,0x00000007,0x0004002b,0x00000006,0x0000006a,0x00000001,0x0004002b,0x00000006,
0x00000070,0x00000008,0x0004002b,0x00000006,0x00000074,0x00000002,0x00030016,0x0000007c,
0x00000020,0x00040020,0x0000007d,0x00000007,0x0000007c,0x0004002b,0x0000007c,0x0000007f,
0xff800000,0x0004002b,0x00000006,0x00000081,0xffffffff,0x0003001d,0x000000a3,0x0000007c,
0x0003001e,0x000000a4,0x000000a3,0x00040020,0x000000a5,0x00000002,0x000000a4,0x0004003b,
0x000000a5,0x000000a6,0x00000002,0x00040020,0x000000af,0x00000002,0x0000007c,0x0003001d,
0x000000c5,0x0000007c,0x0003001e,0x000000c6,0x000000c5,0x00040020,0x000000c7,0x00000002,
0x000000c6,0x0004003b,0x000000c7,0x000000c8,0x00000002,0x0004002b,0x00000006,0x000000cc,
0x0000000c,0x0003001d,0x000000d2,0x0000007c,0x0003001e,0x000000d3,0x000000d2,0x00040020,
0x000000d4,0x00000002,0x000000d3,0x0004003b,0x000000d4,0x000000d5,0x00000002,0x0004002b,
0x00000009,0x000000dd,0x00000001,0x0006002c,0x0000000b,0x000000de,0x0000000a,0x000000dd,
0x000000dd,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
0x0004003b,0x00000007,0x00000008,0x00000007,0x0004003b,0x00000007,0x00000014,0x00000007,
0x0004003b,0x00000007,0x00000019,0x00000007,0x0004003b,0x00000007,0x0000002a,0x00000007,
0x0004003b,0x00000007,0x00000030,0x00000007,0x0004003b,0x00000007,0x00000039,0x00000007,
0x0004003b,0x00000007,0x00000045,0x00000007,0x0004003b,0x00000007,0x00000050,0x00000007,
0x0004003b,0x00000007,0x0000005a,0x00000007,0x0004003b,0x00000007,0x00000064,0x00000007,
0x0004003b,0x00000007,0x0000006e,0x00000007,0x0004003b,0x0000007d,0x0000007e,0x00000007,
0x0004003b,0x00000007,0x00000080,0x00000007,0x0004003b,0x00000007,0x00000082,0x00000007,
0x0004003b,0x00000007,0x0000008f,0x00000007,0x0004003b,0x00000007,0x00000099,0x00000007,
0x00050041,0x0000000f,0x00000010,0x0000000d,0x0000000e,0x0004003d,0x00000009,0x00000011,
0x00000010,0x00050084,0x00000009,0x00000012,0x0000000a,0x00000011,0x0004007c,0x00000006,
0x00000013,0x00000012,0x0003003e,0x00000008,0x00000013,0x00050041,0x0000000f,0x00000016,
0x00000015,0x0000000e,0x0004003d,0x00000009,0x00000017,0x00000016,0x0004007c,0x00000006,
0x00000018,0x00000017,0x0003003e,0x00000014,0x00000018,0x0004003d,0x00000006,0x0000001a,
0x00000014,0x0003003e,0x00000019,0x0000001a,0x000200f9,0x0000001b,0x000200f8,0x0000001b,
0x000400f6,0x0000001d,0x0000001e,0x00000000,0x000200f9,0x0000001f,0x000200f8,0x0000001f,
0x0004003d,0x00000006,0x00000020,0x00000019,0x00050041,0x00000025,0x00000026,0x00000023,
0x00000024,0x0004003d,0x00000006,0x00000027,0x00000026,0x000500b1,0x00000028,0x00000029,
0x00000020,0x00000027,0x000400fa,0x00000029,0x0000001c,0x0000001d,0x000200f8,0x0000001c,
0x0004003d,0x00000006,0x0000002b,0x00000019,0x00050041,0x00000025,0x0000002d,0x00000023,
0x0000002c,0x0004003d,0x00000006,0x0000002e,0x0000002d,0x0005008b,0x00000006,0x0000002f,
0x0000002b,0x0000002e,0x0003003e,0x0000002a,0x0000002f,0x0004003d,0x00000006,0x00000031,
0x00000019,0x00050041,0x00000025,0x00000032,0x00000023,0x0000002c,0x0004003d,0x00000006,
0x00000033,0x00000032,0x00050087,0x00000006,0x00000034,0x00000031,0x00000033,0x00050041,
0x00000025,0x00000036,0x00000023,0x00000035,0x0004003d,0x00000006,0x00000037,0x00000036,
0x0005008b,0x00000006,0x00000038,0x00000034,0x00000037,0x0003003e,0x00000030,0x00000038,
0x0004003d,0x00000006,0x0000003a,0x00000019,0x00050041,0x00000025,0x0000003b,0x00000023,
0x0000002c,0x0004003d,0x00000006,0x0000003c,0x0000003b,0x00050087,0x00000006,0x0000003d,
0x0000003a,0x0000003c,0x00050041,0x00000025,0x0000003e,0x00000023,0x00000035,0x0004003d,
0x00000006,0x0000003f,0x0000003e,0x00050087,0x00000006,0x00000040,0x0000003d,0x0000003f,
0x00050041,0x00000025,0x00000042,0x00000023,0x00000041,0x0004003d,0x00000006,0x00000043,
0x00000042,0x0005008b,0x00000006,0x00000044,0x00000040,0x00000043,0x0003003e,0x00000039,
0x00000044,0x0004003d,0x00000006,0x00000046,0x00000019,0x00050041,0x00000025,0x00000047,
0x00000023,0x0000002c,0x0004003d,0x00000006,0x00000048,0x00000047,0x00050087,0x00000006,
0x00000049,0x00000046,0x00000048,0x00050041,0x00000025,0x0000004a,0x00000023,0x00000035,
0x0004003d,0x00000006,0x0000004b,0x0000004a,0x00050087,0x00000006,0x0000004c,0x00000049,
0x0000004b,0x00050041,0x00000025,0x0000004d,0x00000023,0x00000041,0x0004003d,0x00000006,
0x0000004e,0x0000004d,0x00050087,0x00000006,0x0000004f,0x0000004c,0x0000004e,0x0003003e,
0x00000045,0x0000004f,0x0004003d,0x00000006,0x00000051,0x00000030,0x00050041,0x00000025,
0x00000053,0x00000023,0x00000052,0x0004003d,0x00000006,0x00000054,0x00000053,0x00050084,
0x00000006,0x00000055,0x00000051,0x00000054,0x00050041,0x00000025,0x00000057,0x00000023,
0x00000056,0x0004003d,0x00000006,0x00000058,0x00000057,0x00050082,0x00000006,0x00000059,
0x00000055,0x00000058,0x0003003e,0x00000050,0x00000059,0x0004003d,0x00000006,0x0000005b,
0x0000002a,0x00050041,0x00000025,0x0000005d,0x00000023,0x0000005c,0x0004003d,0x00000006,
0x0000005e,0x0000005d,0x00050084,0x00000006,0x0000005f,0x0000005b,0x0000005e,0x00050041,
0x00000025,0x00000061,0x00000023,0x00000060,0x0004003d,0x00000006,0x00000062,0x00000061,
0x00050082,0x00000006,0x00000063,0x0000005f,0x00000062,0x0003003e,0x0000005a,0x00000063,
0x0004003d,0x00000006,0x00000065,0x00000050,0x00050041,0x00000025,0x00000067,0x00000023,
0x00000066,0x0004003d,0x00000006,0x00000068,0x00000067,0x00050080,0x00000006,0x00000069,
0x00000065,0x00000068,0x00050041,0x00000025,0x0000006b,0x00000023,0x0000006a,0x0004003d,
0x00000006,0x0000006c,0x0000006b,0x0007000c,0x00000006,0x0000006d,0x00000001,0x00000027,
0x00000069,0x0000006c,0x0003003e,0x00000064,0x0000006d,0x0004003d,0x00000006,0x0000006f,
0x0000005a,0x00050041,0x00000025,0x00000071,0x00000023,0x00000070,0x0004003d,0x00000006,
0x00000072,0x00000071,0x00050080,0x00000006,0x00000073,0x0000006f,0x00000072,0x00050041,
0x00000025,0x00000075,0x00000023,0x00000074,0x0004003d,0x00000006,0x00000076,0x00000075,
0x0007000c,0x00000006,0x00000077,0x00000001,0x00000027,0x00000073,0x00000076,0x0003003e,
0x0000006e,0x00000077,0x0004003d,0x00000006,0x00000078,0x00000050,0x0007000c,0x00000006,
0x00000079,0x00000001,0x0000002a,0x00000078,0x00000041,0x0003003e,0x00000050,0x00000079,
0x0004003d,0x00000006,0x0000007a,0x0000005a,0x0007000c,0x00000006,0x0000007b,0x00000001,
0x0000002a,0x0000007a,0x00000041,0x0003003e,0x0000005a,0x0000007b,0x0003003e,0x0000007e,
0x0000007f,0x0003003e,0x00000080,0x00000081,0x0004003d,0x00000006,0x00000083,0x00000045,
0x00050041,0x00000025,0x00000084,0x00000023,0x00000041,0x0004003d,0x00000006,0x00000085,
0x00000084,0x00050084,0x00000006,0x00000086,0x00000083,0x00000085,0x0004003d,0x00000006,
0x00000087,0x00000039,0x00050080,0x00000006,0x00000088,0x00000086,0x00000087,0x00050041,
0x00000025,0x00000089,0x00000023,0x0000006a,0x0004003d,0x00000006,0x0000008a,0x00000089,
0x00050084,0x00000006,0x0000008b,0x00000088,0x0000008a,0x00050041,0x00000025,0x0000008c,
0x00000023,0x00000074,0x0004003d,0x00000006,0x0000008d,0x0000008c,0x00050084,0x00000006,
0x0000008e,0x0000008b,0x0000008d,0x0003003e,0x00000082,0x0000008e,0x0004003d,0x00000006,
0x00000090,0x00000050,0x0003003e,0x0000008f,0x00000090,0x000200f9,0x00000091,0x000200f8,
0x00000091,0x000400f6,0x00000093,0x00000094,0x00000000,0x000200f9,0x00000095,0x000200f8,
0x00000095,0x0004003d,0x00000006,0x00000096,0x0000008f,0x0004003d,0x00000006,0x00000097,
0x00000064,0x000500b1,0x00000028,0x00000098,0x00000096,0x00000097,0x000400fa,0x00000098,
0x00000092,0x00000093,0x000200f8,0x00000092,0x0004003d,0x00000006,0x0000009a,0x0000005a,
0x0003003e,0x00000099,0x0000009a,0x000200f9,0x0000009b,0x000200f8,0x0000009b,0x000400f6,
0x0000009d,0x0000009e,0x00000000,0x000200f9,0x0000009f,0x000200f8,0x0000009f,0x0004003d,
0x00000006,0x000000a0,0x00000099,0x0004003d,0x00000006,0x000000a1,0x0000006e,0x000500b1,
0x00000028,0x000000a2,0x000000a0,0x000000a1,0x000400fa,0x000000a2,0x0000009c,0x0000009d,
0x000200f8,0x0000009c,0x0004003d,0x00000006,0x000000a7,0x00000082,0x0004003d,0x00000006,
0x000000a8,0x0000008f,0x00050041,0x00000025,0x000000a9,0x00000023,0x00000074,0x0004003d,
0x00000006,0x000000aa,0x000000a9,0x00050084,0x00000006,0x000000ab,0x000000a8,0x000000aa,
0x00050080,0x00000006,0x000000ac,0x000000a7,0x000000ab,0x0004003d,0x00000006,0x000000ad,
0x00000099,0x00050080,0x00000006,0x000000ae,0x000000ac,0x000000ad,0x00060041,0x000000af,
0x000000b0,0x000000a6,0x00000041,0x000000ae,0x0004003d,0x0000007c,0x000000b1,0x000000b0,
0x0004003d,0x0000007c,0x000000b2,0x0000007e,0x000500ba,0x00000028,0x000000b3,0x000000b1,
0x000000b2,0x000300f7,0x000000b5,0x00000000,0x000400fa,0x000000b3,0x000000b4,0x000000b5,
0x000200f8,0x000000b4,0x0004003d,0x00000006,0x000000b6,0x0000008f,0x00050041,0x00000025,
0x000000b7,0x00000023,0x00000074,0x0004003d,0x00000006,0x000000b8,0x000000b7,0x00050084,
0x00000006,0x000000b9,0x000000b6,0x000000b8,0x0004003d,0x00000006,0x000000ba,0x00000099,
0x00050080,0x00000006,0x000000bb,0x000000b9,0x000000ba,0x0003003e,0x00000080,0x000000bb,
0x0004003d,0x00000006,0x000000bc,0x00000082,0x0004003d,0x00000006,0x000000bd,0x00000080,
0x00050080,0x00000006,0x000000be,0x000000bc,0x000000bd,0x00060041,0x000000af,0x000000bf,
0x000000a6,0x00000041,0x000000be,0x0004003d,0x0000007c,0x000000c0,0x000000bf,0x0003003e,
0x0000007e,0x000000c0,0x000200f9,0x000000b5,0x000200f8,0x000000b5,0x000200f9,0x0000009e,
0x000200f8,0x0000009e,0x0004003d,0x00000006,0x000000c1,0x00000099,0x00050080,0x00000006,
0x000000c2,0x000000c1,0x0000006a,0x0003003e,0x00000099,0x000000c2,0x000200f9,0x0000009b,
0x000200f8,0x0000009d,0x000200f9,0x00000094,0x000200f8,0x00000094,0x0004003d,0x00000006,
0x000000c3,0x0000008f,0x00050080,0x00000006,0x000000c4,0x000000c3,0x0000006a,0x0003003e,
0x0000008f,0x000000c4,0x000200f9,0x00000091,0x000200f8,0x00000093,0x0004003d,0x00000006,
0x000000c9,0x00000019,0x0004003d,0x0000007c,0x000000ca,0x0000007e,0x00060041,0x000000af,
0x000000cb,0x000000c8,0x00000041,0x000000c9,0x0003003e,0x000000cb,0x000000ca,0x00050041,
0x00000025,0x000000cd,0x00000023,0x000000cc,0x0004003d,0x00000006,0x000000ce,0x000000cd,
0x000500aa,0x00000028,0x000000cf,0x000000ce,0x0000006a,0x000300f7,0x000000d1,0x00000000,
0x000400fa,0x000000cf,0x000000d0,0x000000d1,0x000200f8,0x000000d0,0x0004003d,0x00000006,
0x000000d6,0x00000019,0x0004003d,0x00000006,0x000000d7,0x00000080,0x0004006f,0x0000007c,
0x000000d8,0x000000d7,0x00060041,0x000000af,0x000000d9,0x000000d5,0x00000041,0x000000d6,
0x0003003e,0x000000d9,0x000000d8,0x000200f9,0x000000d1,0x000200f8,0x000000d1,0x000200f9,
0x0000001e,0x000200f8,0x0000001e,0x0004003d,0x00000006,0x000000da,0x00000008,0x0004003d,
0x00000006,0x000000db,0x00000019,0x00050080,0x00000006,0x000000dc,0x000000db,0x000000da,
0x0003003e,0x00000019,0x000000dc,0x000200f9,0x0000001b,0x000200f8,0x0000001d,0x000100fd,
0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,44 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(push_constant) uniform pushBlock {
int nthreads;
int num_axes;
int global_size;
} p;
layout(binding = 0) readonly buffer Input0{
float in_buffer[];
};
layout(binding = 1) readonly buffer Input1{
int permute_order[];
};
layout(binding = 2) readonly buffer Input2{
int old_stride[];
};
layout(binding = 3) readonly buffer Input3{
int new_stride[];
};
layout(binding = 4) writeonly buffer Output{
float out_buffer[];
};
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
for (int i = int(gl_GlobalInvocationID.x); i < p.nthreads; i += p.global_size)
{
int old_pos = 0;
int new_pos = i;
for (int j = 0; j < p.num_axes; ++j)
{
int order = permute_order[j];
old_pos += (new_pos / new_stride[j]) * old_stride[order];
new_pos %= new_stride[j];
}
out_buffer[i] = in_buffer[old_pos];
}
}

View File

@ -1,111 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int permute_spv[765] = {
0x07230203,0x00010000,0x00080001,0x00000069,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00000069,0x00080005,0x0000000c,
0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00050005,0x00000018,
0x68737570,0x636f6c42,0x0000006b,0x00060006,0x00000018,0x00000000,0x7268746e,0x73646165,
0x00000000,0x00060006,0x00000018,0x00000001,0x5f6d756e,0x73657861,0x00000000,0x00060006,
0x00000018,0x00000002,0x626f6c67,0x735f6c61,0x00657a69,0x00030005,0x0000001a,0x00000070,
0x00040005,0x00000021,0x5f646c6f,0x00736f70,0x00040005,0x00000022,0x5f77656e,0x00736f70,
0x00030005,0x00000024,0x0000006a,0x00040005,0x0000002f,0x6564726f,0x00000072,0x00040005,
0x00000031,0x75706e49,0x00003174,0x00070006,0x00000031,0x00000000,0x6d726570,0x5f657475,
0x6564726f,0x00000072,0x00030005,0x00000033,0x00000000,0x00040005,0x0000003a,0x75706e49,
0x00003374,0x00060006,0x0000003a,0x00000000,0x5f77656e,0x69727473,0x00006564,0x00030005,
0x0000003c,0x00000000,0x00040005,0x00000042,0x75706e49,0x00003274,0x00060006,0x00000042,
0x00000000,0x5f646c6f,0x69727473,0x00006564,0x00030005,0x00000044,0x00000000,0x00040005,
0x00000054,0x7074754f,0x00007475,0x00060006,0x00000054,0x00000000,0x5f74756f,0x66667562,
0x00007265,0x00030005,0x00000056,0x00000000,0x00040005,0x00000059,0x75706e49,0x00003074,
0x00060006,0x00000059,0x00000000,0x625f6e69,0x65666675,0x00000072,0x00030005,0x0000005b,
0x00000000,0x00040047,0x0000000c,0x0000000b,0x0000001c,0x00050048,0x00000018,0x00000000,
0x00000023,0x00000000,0x00050048,0x00000018,0x00000001,0x00000023,0x00000004,0x00050048,
0x00000018,0x00000002,0x00000023,0x00000008,0x00030047,0x00000018,0x00000002,0x00040047,
0x00000030,0x00000006,0x00000004,0x00040048,0x00000031,0x00000000,0x00000018,0x00050048,
0x00000031,0x00000000,0x00000023,0x00000000,0x00030047,0x00000031,0x00000003,0x00040047,
0x00000033,0x00000022,0x00000000,0x00040047,0x00000033,0x00000021,0x00000001,0x00040047,
0x00000039,0x00000006,0x00000004,0x00040048,0x0000003a,0x00000000,0x00000018,0x00050048,
0x0000003a,0x00000000,0x00000023,0x00000000,0x00030047,0x0000003a,0x00000003,0x00040047,
0x0000003c,0x00000022,0x00000000,0x00040047,0x0000003c,0x00000021,0x00000003,0x00040047,
0x00000041,0x00000006,0x00000004,0x00040048,0x00000042,0x00000000,0x00000018,0x00050048,
0x00000042,0x00000000,0x00000023,0x00000000,0x00030047,0x00000042,0x00000003,0x00040047,
0x00000044,0x00000022,0x00000000,0x00040047,0x00000044,0x00000021,0x00000002,0x00040047,
0x00000053,0x00000006,0x00000004,0x00040048,0x00000054,0x00000000,0x00000019,0x00050048,
0x00000054,0x00000000,0x00000023,0x00000000,0x00030047,0x00000054,0x00000003,0x00040047,
0x00000056,0x00000022,0x00000000,0x00040047,0x00000056,0x00000021,0x00000004,0x00040047,
0x00000058,0x00000006,0x00000004,0x00040048,0x00000059,0x00000000,0x00000018,0x00050048,
0x00000059,0x00000000,0x00000023,0x00000000,0x00030047,0x00000059,0x00000003,0x00040047,
0x0000005b,0x00000022,0x00000000,0x00040047,0x0000005b,0x00000021,0x00000000,0x00040047,
0x00000068,0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,
0x00040015,0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,
0x00040015,0x00000009,0x00000020,0x00000000,0x00040017,0x0000000a,0x00000009,0x00000003,
0x00040020,0x0000000b,0x00000001,0x0000000a,0x0004003b,0x0000000b,0x0000000c,0x00000001,
0x0004002b,0x00000009,0x0000000d,0x00000000,0x00040020,0x0000000e,0x00000001,0x00000009,
0x0005001e,0x00000018,0x00000006,0x00000006,0x00000006,0x00040020,0x00000019,0x00000009,
0x00000018,0x0004003b,0x00000019,0x0000001a,0x00000009,0x0004002b,0x00000006,0x0000001b,
0x00000000,0x00040020,0x0000001c,0x00000009,0x00000006,0x00020014,0x0000001f,0x0004002b,
0x00000006,0x0000002b,0x00000001,0x0003001d,0x00000030,0x00000006,0x0003001e,0x00000031,
0x00000030,0x00040020,0x00000032,0x00000002,0x00000031,0x0004003b,0x00000032,0x00000033,
0x00000002,0x00040020,0x00000035,0x00000002,0x00000006,0x0003001d,0x00000039,0x00000006,
0x0003001e,0x0000003a,0x00000039,0x00040020,0x0000003b,0x00000002,0x0000003a,0x0004003b,
0x0000003b,0x0000003c,0x00000002,0x0003001d,0x00000041,0x00000006,0x0003001e,0x00000042,
0x00000041,0x00040020,0x00000043,0x00000002,0x00000042,0x0004003b,0x00000043,0x00000044,
0x00000002,0x00030016,0x00000052,0x00000020,0x0003001d,0x00000053,0x00000052,0x0003001e,
0x00000054,0x00000053,0x00040020,0x00000055,0x00000002,0x00000054,0x0004003b,0x00000055,
0x00000056,0x00000002,0x0003001d,0x00000058,0x00000052,0x0003001e,0x00000059,0x00000058,
0x00040020,0x0000005a,0x00000002,0x00000059,0x0004003b,0x0000005a,0x0000005b,0x00000002,
0x00040020,0x0000005d,0x00000002,0x00000052,0x0004002b,0x00000006,0x00000061,0x00000002,
0x0004002b,0x00000009,0x00000066,0x00000100,0x0004002b,0x00000009,0x00000067,0x00000001,
0x0006002c,0x0000000a,0x00000068,0x00000066,0x00000067,0x00000067,0x00050036,0x00000002,
0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,
0x00000007,0x0004003b,0x00000007,0x00000021,0x00000007,0x0004003b,0x00000007,0x00000022,
0x00000007,0x0004003b,0x00000007,0x00000024,0x00000007,0x0004003b,0x00000007,0x0000002f,
0x00000007,0x00050041,0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,
0x00000010,0x0000000f,0x0004007c,0x00000006,0x00000011,0x00000010,0x0003003e,0x00000008,
0x00000011,0x000200f9,0x00000012,0x000200f8,0x00000012,0x000400f6,0x00000014,0x00000015,
0x00000000,0x000200f9,0x00000016,0x000200f8,0x00000016,0x0004003d,0x00000006,0x00000017,
0x00000008,0x00050041,0x0000001c,0x0000001d,0x0000001a,0x0000001b,0x0004003d,0x00000006,
0x0000001e,0x0000001d,0x000500b1,0x0000001f,0x00000020,0x00000017,0x0000001e,0x000400fa,
0x00000020,0x00000013,0x00000014,0x000200f8,0x00000013,0x0003003e,0x00000021,0x0000001b,
0x0004003d,0x00000006,0x00000023,0x00000008,0x0003003e,0x00000022,0x00000023,0x0003003e,
0x00000024,0x0000001b,0x000200f9,0x00000025,0x000200f8,0x00000025,0x000400f6,0x00000027,
0x00000028,0x00000000,0x000200f9,0x00000029,0x000200f8,0x00000029,0x0004003d,0x00000006,
0x0000002a,0x00000024,0x00050041,0x0000001c,0x0000002c,0x0000001a,0x0000002b,0x0004003d,
0x00000006,0x0000002d,0x0000002c,0x000500b1,0x0000001f,0x0000002e,0x0000002a,0x0000002d,
0x000400fa,0x0000002e,0x00000026,0x00000027,0x000200f8,0x00000026,0x0004003d,0x00000006,
0x00000034,0x00000024,0x00060041,0x00000035,0x00000036,0x00000033,0x0000001b,0x00000034,
0x0004003d,0x00000006,0x00000037,0x00000036,0x0003003e,0x0000002f,0x00000037,0x0004003d,
0x00000006,0x00000038,0x00000022,0x0004003d,0x00000006,0x0000003d,0x00000024,0x00060041,
0x00000035,0x0000003e,0x0000003c,0x0000001b,0x0000003d,0x0004003d,0x00000006,0x0000003f,
0x0000003e,0x00050087,0x00000006,0x00000040,0x00000038,0x0000003f,0x0004003d,0x00000006,
0x00000045,0x0000002f,0x00060041,0x00000035,0x00000046,0x00000044,0x0000001b,0x00000045,
0x0004003d,0x00000006,0x00000047,0x00000046,0x00050084,0x00000006,0x00000048,0x00000040,
0x00000047,0x0004003d,0x00000006,0x00000049,0x00000021,0x00050080,0x00000006,0x0000004a,
0x00000049,0x00000048,0x0003003e,0x00000021,0x0000004a,0x0004003d,0x00000006,0x0000004b,
0x00000024,0x00060041,0x00000035,0x0000004c,0x0000003c,0x0000001b,0x0000004b,0x0004003d,
0x00000006,0x0000004d,0x0000004c,0x0004003d,0x00000006,0x0000004e,0x00000022,0x0005008b,
0x00000006,0x0000004f,0x0000004e,0x0000004d,0x0003003e,0x00000022,0x0000004f,0x000200f9,
0x00000028,0x000200f8,0x00000028,0x0004003d,0x00000006,0x00000050,0x00000024,0x00050080,
0x00000006,0x00000051,0x00000050,0x0000002b,0x0003003e,0x00000024,0x00000051,0x000200f9,
0x00000025,0x000200f8,0x00000027,0x0004003d,0x00000006,0x00000057,0x00000008,0x0004003d,
0x00000006,0x0000005c,0x00000021,0x00060041,0x0000005d,0x0000005e,0x0000005b,0x0000001b,
0x0000005c,0x0004003d,0x00000052,0x0000005f,0x0000005e,0x00060041,0x0000005d,0x00000060,
0x00000056,0x0000001b,0x00000057,0x0003003e,0x00000060,0x0000005f,0x000200f9,0x00000015,
0x000200f8,0x00000015,0x00050041,0x0000001c,0x00000062,0x0000001a,0x00000061,0x0004003d,
0x00000006,0x00000063,0x00000062,0x0004003d,0x00000006,0x00000064,0x00000008,0x00050080,
0x00000006,0x00000065,0x00000064,0x00000063,0x0003003e,0x00000008,0x00000065,0x000200f9,
0x00000012,0x000200f8,0x00000014,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,78 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(push_constant) uniform pushBlock {
int global_size;
int nthreads;
float step_x;
float step_y;
int offset_x_size;
int width_size;
int layer_w;
int image_h;
int image_w;
int clip;
int variance_off;
} p;
layout(binding = 0) readonly buffer Input0{
float offset_x[];
};
layout(binding = 1) readonly buffer Input1{
float offset_y[];
};
layout(binding = 2) readonly buffer Input2{
float widths[];
};
layout(binding = 3) readonly buffer Input3{
float heights[];
};
layout(binding = 4) readonly buffer Input4{
vec4 variance[];
};
layout(binding = 5) writeonly buffer Output{
vec4 out_buffer[];
};
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
for (int index = int(gl_GlobalInvocationID.x); index < p.nthreads; index += p.global_size)
{
int w = index % p.layer_w;
int h = index / p.layer_w;
int output_offset = index * p.offset_x_size * p.width_size;
float box_w, box_h;
vec4 outer;
for (int i = 0; i < p.width_size; ++i)
{
box_w = widths[i];
box_h = heights[i];
for (int j = 0; j < p.offset_x_size; ++j)
{
float center_x = (w + offset_x[j]) * p.step_x;
float center_y = (h + offset_y[j]) * p.step_y;
outer.x = (center_x - box_w * 0.5f) / p.image_w; // xmin
outer.y = (center_y - box_h * 0.5f) / p.image_h; // ymin
outer.z = (center_x + box_w * 0.5f) / p.image_w; // xmax
outer.w = (center_y + box_h * 0.5f) / p.image_h; // ymax
// clip
if (p.clip == 1)
{
vec4 start = vec4(0.f, 0.f, 0.f, 0.f);
vec4 end = vec4(1.f, 1.f, 1.f, 1.f);
outer = min(max(outer, start), end);
}
//set variance
out_buffer[p.variance_off + output_offset] = variance[0];
out_buffer[output_offset] = outer;
output_offset++;
}
}
}
}

View File

@ -1,200 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int prior_box_spv[1480] = {
0x07230203,0x00010000,0x00080001,0x000000db,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00040005,0x00000008,0x65646e69,0x00000078,0x00080005,
0x0000000c,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00050005,
0x00000019,0x68737570,0x636f6c42,0x0000006b,0x00060006,0x00000019,0x00000000,0x626f6c67,
0x735f6c61,0x00657a69,0x00060006,0x00000019,0x00000001,0x7268746e,0x73646165,0x00000000,
0x00050006,0x00000019,0x00000002,0x70657473,0x0000785f,0x00050006,0x00000019,0x00000003,
0x70657473,0x0000795f,0x00070006,0x00000019,0x00000004,0x7366666f,0x785f7465,0x7a69735f,
0x00000065,0x00060006,0x00000019,0x00000005,0x74646977,0x69735f68,0x0000657a,0x00050006,
0x00000019,0x00000006,0x6579616c,0x00775f72,0x00050006,0x00000019,0x00000007,0x67616d69,
0x00685f65,0x00050006,0x00000019,0x00000008,0x67616d69,0x00775f65,0x00050006,0x00000019,
0x00000009,0x70696c63,0x00000000,0x00070006,0x00000019,0x0000000a,0x69726176,0x65636e61,
0x66666f5f,0x00000000,0x00030005,0x0000001b,0x00000070,0x00030005,0x00000022,0x00000077,
0x00030005,0x00000028,0x00000068,0x00060005,0x0000002d,0x7074756f,0x6f5f7475,0x65736666,
0x00000074,0x00030005,0x00000037,0x00000069,0x00040005,0x00000043,0x5f786f62,0x00000077,
0x00040005,0x00000045,0x75706e49,0x00003274,0x00050006,0x00000045,0x00000000,0x74646977,
0x00007368,0x00030005,0x00000047,0x00000000,0x00040005,0x0000004c,0x5f786f62,0x00000068,
0x00040005,0x0000004e,0x75706e49,0x00003374,0x00050006,0x0000004e,0x00000000,0x67696568,
0x00737468,0x00030005,0x00000050,0x00000000,0x00030005,0x00000054,0x0000006a,0x00050005,
0x0000005e,0x746e6563,0x785f7265,0x00000000,0x00040005,0x00000062,0x75706e49,0x00003074,
0x00060006,0x00000062,0x00000000,0x7366666f,0x785f7465,0x00000000,0x00030005,0x00000064,
0x00000000,0x00050005,0x0000006e,0x746e6563,0x795f7265,0x00000000,0x00040005,0x00000072,
0x75706e49,0x00003174,0x00060006,0x00000072,0x00000000,0x7366666f,0x795f7465,0x00000000,
0x00030005,0x00000074,0x00000000,0x00040005,0x0000007f,0x6574756f,0x00000072,0x00040005,
0x000000b0,0x72617473,0x00000074,0x00030005,0x000000b3,0x00646e65,0x00040005,0x000000bc,
0x7074754f,0x00007475,0x00060006,0x000000bc,0x00000000,0x5f74756f,0x66667562,0x00007265,
0x00030005,0x000000be,0x00000000,0x00040005,0x000000c5,0x75706e49,0x00003474,0x00060006,
0x000000c5,0x00000000,0x69726176,0x65636e61,0x00000000,0x00030005,0x000000c7,0x00000000,
0x00040047,0x0000000c,0x0000000b,0x0000001c,0x00050048,0x00000019,0x00000000,0x00000023,
0x00000000,0x00050048,0x00000019,0x00000001,0x00000023,0x00000004,0x00050048,0x00000019,
0x00000002,0x00000023,0x00000008,0x00050048,0x00000019,0x00000003,0x00000023,0x0000000c,
0x00050048,0x00000019,0x00000004,0x00000023,0x00000010,0x00050048,0x00000019,0x00000005,
0x00000023,0x00000014,0x00050048,0x00000019,0x00000006,0x00000023,0x00000018,0x00050048,
0x00000019,0x00000007,0x00000023,0x0000001c,0x00050048,0x00000019,0x00000008,0x00000023,
0x00000020,0x00050048,0x00000019,0x00000009,0x00000023,0x00000024,0x00050048,0x00000019,
0x0000000a,0x00000023,0x00000028,0x00030047,0x00000019,0x00000002,0x00040047,0x00000044,
0x00000006,0x00000004,0x00040048,0x00000045,0x00000000,0x00000018,0x00050048,0x00000045,
0x00000000,0x00000023,0x00000000,0x00030047,0x00000045,0x00000003,0x00040047,0x00000047,
0x00000022,0x00000000,0x00040047,0x00000047,0x00000021,0x00000002,0x00040047,0x0000004d,
0x00000006,0x00000004,0x00040048,0x0000004e,0x00000000,0x00000018,0x00050048,0x0000004e,
0x00000000,0x00000023,0x00000000,0x00030047,0x0000004e,0x00000003,0x00040047,0x00000050,
0x00000022,0x00000000,0x00040047,0x00000050,0x00000021,0x00000003,0x00040047,0x00000061,
0x00000006,0x00000004,0x00040048,0x00000062,0x00000000,0x00000018,0x00050048,0x00000062,
0x00000000,0x00000023,0x00000000,0x00030047,0x00000062,0x00000003,0x00040047,0x00000064,
0x00000022,0x00000000,0x00040047,0x00000064,0x00000021,0x00000000,0x00040047,0x00000071,
0x00000006,0x00000004,0x00040048,0x00000072,0x00000000,0x00000018,0x00050048,0x00000072,
0x00000000,0x00000023,0x00000000,0x00030047,0x00000072,0x00000003,0x00040047,0x00000074,
0x00000022,0x00000000,0x00040047,0x00000074,0x00000021,0x00000001,0x00040047,0x000000bb,
0x00000006,0x00000010,0x00040048,0x000000bc,0x00000000,0x00000019,0x00050048,0x000000bc,
0x00000000,0x00000023,0x00000000,0x00030047,0x000000bc,0x00000003,0x00040047,0x000000be,
0x00000022,0x00000000,0x00040047,0x000000be,0x00000021,0x00000005,0x00040047,0x000000c4,
0x00000006,0x00000010,0x00040048,0x000000c5,0x00000000,0x00000018,0x00050048,0x000000c5,
0x00000000,0x00000023,0x00000000,0x00030047,0x000000c5,0x00000003,0x00040047,0x000000c7,
0x00000022,0x00000000,0x00040047,0x000000c7,0x00000021,0x00000004,0x00040047,0x000000da,
0x0000000b,0x00000019,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,
0x00000006,0x00000020,0x00000001,0x00040020,0x00000007,0x00000007,0x00000006,0x00040015,
0x00000009,0x00000020,0x00000000,0x00040017,0x0000000a,0x00000009,0x00000003,0x00040020,
0x0000000b,0x00000001,0x0000000a,0x0004003b,0x0000000b,0x0000000c,0x00000001,0x0004002b,
0x00000009,0x0000000d,0x00000000,0x00040020,0x0000000e,0x00000001,0x00000009,0x00030016,
0x00000018,0x00000020,0x000d001e,0x00000019,0x00000006,0x00000006,0x00000018,0x00000018,
0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00000006,0x00040020,
0x0000001a,0x00000009,0x00000019,0x0004003b,0x0000001a,0x0000001b,0x00000009,0x0004002b,
0x00000006,0x0000001c,0x00000001,0x00040020,0x0000001d,0x00000009,0x00000006,0x00020014,
0x00000020,0x0004002b,0x00000006,0x00000024,0x00000006,0x0004002b,0x00000006,0x0000002f,
0x00000004,0x0004002b,0x00000006,0x00000033,0x00000005,0x0004002b,0x00000006,0x00000038,
0x00000000,0x00040020,0x00000042,0x00000007,0x00000018,0x0003001d,0x00000044,0x00000018,
0x0003001e,0x00000045,0x00000044,0x00040020,0x00000046,0x00000002,0x00000045,0x0004003b,
0x00000046,0x00000047,0x00000002,0x00040020,0x00000049,0x00000002,0x00000018,0x0003001d,
0x0000004d,0x00000018,0x0003001e,0x0000004e,0x0000004d,0x00040020,0x0000004f,0x00000002,
0x0000004e,0x0004003b,0x0000004f,0x00000050,0x00000002,0x0003001d,0x00000061,0x00000018,
0x0003001e,0x00000062,0x00000061,0x00040020,0x00000063,0x00000002,0x00000062,0x0004003b,
0x00000063,0x00000064,0x00000002,0x0004002b,0x00000006,0x00000069,0x00000002,0x00040020,
0x0000006a,0x00000009,0x00000018,0x0003001d,0x00000071,0x00000018,0x0003001e,0x00000072,
0x00000071,0x00040020,0x00000073,0x00000002,0x00000072,0x0004003b,0x00000073,0x00000074,
0x00000002,0x0004002b,0x00000006,0x00000079,0x00000003,0x00040017,0x0000007d,0x00000018,
0x00000004,0x00040020,0x0000007e,0x00000007,0x0000007d,0x0004002b,0x00000018,0x00000082,
0x3f000000,0x0004002b,0x00000006,0x00000085,0x00000008,0x0004002b,0x00000006,0x0000008f,
0x00000007,0x0004002b,0x00000009,0x00000094,0x00000001,0x0004002b,0x00000009,0x0000009e,
0x00000002,0x0004002b,0x00000009,0x000000a8,0x00000003,0x0004002b,0x00000006,0x000000aa,
0x00000009,0x0004002b,0x00000018,0x000000b1,0x00000000,0x0007002c,0x0000007d,0x000000b2,
0x000000b1,0x000000b1,0x000000b1,0x000000b1,0x0004002b,0x00000018,0x000000b4,0x3f800000,
0x0007002c,0x0000007d,0x000000b5,0x000000b4,0x000000b4,0x000000b4,0x000000b4,0x0003001d,
0x000000bb,0x0000007d,0x0003001e,0x000000bc,0x000000bb,0x00040020,0x000000bd,0x00000002,
0x000000bc,0x0004003b,0x000000bd,0x000000be,0x00000002,0x0004002b,0x00000006,0x000000bf,
0x0000000a,0x0003001d,0x000000c4,0x0000007d,0x0003001e,0x000000c5,0x000000c4,0x00040020,
0x000000c6,0x00000002,0x000000c5,0x0004003b,0x000000c6,0x000000c7,0x00000002,0x00040020,
0x000000c8,0x00000002,0x0000007d,0x0004002b,0x00000009,0x000000d9,0x00000100,0x0006002c,
0x0000000a,0x000000da,0x000000d9,0x00000094,0x00000094,0x00050036,0x00000002,0x00000004,
0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,
0x0004003b,0x00000007,0x00000022,0x00000007,0x0004003b,0x00000007,0x00000028,0x00000007,
0x0004003b,0x00000007,0x0000002d,0x00000007,0x0004003b,0x00000007,0x00000037,0x00000007,
0x0004003b,0x00000042,0x00000043,0x00000007,0x0004003b,0x00000042,0x0000004c,0x00000007,
0x0004003b,0x00000007,0x00000054,0x00000007,0x0004003b,0x00000042,0x0000005e,0x00000007,
0x0004003b,0x00000042,0x0000006e,0x00000007,0x0004003b,0x0000007e,0x0000007f,0x00000007,
0x0004003b,0x0000007e,0x000000b0,0x00000007,0x0004003b,0x0000007e,0x000000b3,0x00000007,
0x00050041,0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,0x00000009,0x00000010,
0x0000000f,0x0004007c,0x00000006,0x00000011,0x00000010,0x0003003e,0x00000008,0x00000011,
0x000200f9,0x00000012,0x000200f8,0x00000012,0x000400f6,0x00000014,0x00000015,0x00000000,
0x000200f9,0x00000016,0x000200f8,0x00000016,0x0004003d,0x00000006,0x00000017,0x00000008,
0x00050041,0x0000001d,0x0000001e,0x0000001b,0x0000001c,0x0004003d,0x00000006,0x0000001f,
0x0000001e,0x000500b1,0x00000020,0x00000021,0x00000017,0x0000001f,0x000400fa,0x00000021,
0x00000013,0x00000014,0x000200f8,0x00000013,0x0004003d,0x00000006,0x00000023,0x00000008,
0x00050041,0x0000001d,0x00000025,0x0000001b,0x00000024,0x0004003d,0x00000006,0x00000026,
0x00000025,0x0005008b,0x00000006,0x00000027,0x00000023,0x00000026,0x0003003e,0x00000022,
0x00000027,0x0004003d,0x00000006,0x00000029,0x00000008,0x00050041,0x0000001d,0x0000002a,
0x0000001b,0x00000024,0x0004003d,0x00000006,0x0000002b,0x0000002a,0x00050087,0x00000006,
0x0000002c,0x00000029,0x0000002b,0x0003003e,0x00000028,0x0000002c,0x0004003d,0x00000006,
0x0000002e,0x00000008,0x00050041,0x0000001d,0x00000030,0x0000001b,0x0000002f,0x0004003d,
0x00000006,0x00000031,0x00000030,0x00050084,0x00000006,0x00000032,0x0000002e,0x00000031,
0x00050041,0x0000001d,0x00000034,0x0000001b,0x00000033,0x0004003d,0x00000006,0x00000035,
0x00000034,0x00050084,0x00000006,0x00000036,0x00000032,0x00000035,0x0003003e,0x0000002d,
0x00000036,0x0003003e,0x00000037,0x00000038,0x000200f9,0x00000039,0x000200f8,0x00000039,
0x000400f6,0x0000003b,0x0000003c,0x00000000,0x000200f9,0x0000003d,0x000200f8,0x0000003d,
0x0004003d,0x00000006,0x0000003e,0x00000037,0x00050041,0x0000001d,0x0000003f,0x0000001b,
0x00000033,0x0004003d,0x00000006,0x00000040,0x0000003f,0x000500b1,0x00000020,0x00000041,
0x0000003e,0x00000040,0x000400fa,0x00000041,0x0000003a,0x0000003b,0x000200f8,0x0000003a,
0x0004003d,0x00000006,0x00000048,0x00000037,0x00060041,0x00000049,0x0000004a,0x00000047,
0x00000038,0x00000048,0x0004003d,0x00000018,0x0000004b,0x0000004a,0x0003003e,0x00000043,
0x0000004b,0x0004003d,0x00000006,0x00000051,0x00000037,0x00060041,0x00000049,0x00000052,
0x00000050,0x00000038,0x00000051,0x0004003d,0x00000018,0x00000053,0x00000052,0x0003003e,
0x0000004c,0x00000053,0x0003003e,0x00000054,0x00000038,0x000200f9,0x00000055,0x000200f8,
0x00000055,0x000400f6,0x00000057,0x00000058,0x00000000,0x000200f9,0x00000059,0x000200f8,
0x00000059,0x0004003d,0x00000006,0x0000005a,0x00000054,0x00050041,0x0000001d,0x0000005b,
0x0000001b,0x0000002f,0x0004003d,0x00000006,0x0000005c,0x0000005b,0x000500b1,0x00000020,
0x0000005d,0x0000005a,0x0000005c,0x000400fa,0x0000005d,0x00000056,0x00000057,0x000200f8,
0x00000056,0x0004003d,0x00000006,0x0000005f,0x00000022,0x0004006f,0x00000018,0x00000060,
0x0000005f,0x0004003d,0x00000006,0x00000065,0x00000054,0x00060041,0x00000049,0x00000066,
0x00000064,0x00000038,0x00000065,0x0004003d,0x00000018,0x00000067,0x00000066,0x00050081,
0x00000018,0x00000068,0x00000060,0x00000067,0x00050041,0x0000006a,0x0000006b,0x0000001b,
0x00000069,0x0004003d,0x00000018,0x0000006c,0x0000006b,0x00050085,0x00000018,0x0000006d,
0x00000068,0x0000006c,0x0003003e,0x0000005e,0x0000006d,0x0004003d,0x00000006,0x0000006f,
0x00000028,0x0004006f,0x00000018,0x00000070,0x0000006f,0x0004003d,0x00000006,0x00000075,
0x00000054,0x00060041,0x00000049,0x00000076,0x00000074,0x00000038,0x00000075,0x0004003d,
0x00000018,0x00000077,0x00000076,0x00050081,0x00000018,0x00000078,0x00000070,0x00000077,
0x00050041,0x0000006a,0x0000007a,0x0000001b,0x00000079,0x0004003d,0x00000018,0x0000007b,
0x0000007a,0x00050085,0x00000018,0x0000007c,0x00000078,0x0000007b,0x0003003e,0x0000006e,
0x0000007c,0x0004003d,0x00000018,0x00000080,0x0000005e,0x0004003d,0x00000018,0x00000081,
0x00000043,0x00050085,0x00000018,0x00000083,0x00000081,0x00000082,0x00050083,0x00000018,
0x00000084,0x00000080,0x00000083,0x00050041,0x0000001d,0x00000086,0x0000001b,0x00000085,
0x0004003d,0x00000006,0x00000087,0x00000086,0x0004006f,0x00000018,0x00000088,0x00000087,
0x00050088,0x00000018,0x00000089,0x00000084,0x00000088,0x00050041,0x00000042,0x0000008a,
0x0000007f,0x0000000d,0x0003003e,0x0000008a,0x00000089,0x0004003d,0x00000018,0x0000008b,
0x0000006e,0x0004003d,0x00000018,0x0000008c,0x0000004c,0x00050085,0x00000018,0x0000008d,
0x0000008c,0x00000082,0x00050083,0x00000018,0x0000008e,0x0000008b,0x0000008d,0x00050041,
0x0000001d,0x00000090,0x0000001b,0x0000008f,0x0004003d,0x00000006,0x00000091,0x00000090,
0x0004006f,0x00000018,0x00000092,0x00000091,0x00050088,0x00000018,0x00000093,0x0000008e,
0x00000092,0x00050041,0x00000042,0x00000095,0x0000007f,0x00000094,0x0003003e,0x00000095,
0x00000093,0x0004003d,0x00000018,0x00000096,0x0000005e,0x0004003d,0x00000018,0x00000097,
0x00000043,0x00050085,0x00000018,0x00000098,0x00000097,0x00000082,0x00050081,0x00000018,
0x00000099,0x00000096,0x00000098,0x00050041,0x0000001d,0x0000009a,0x0000001b,0x00000085,
0x0004003d,0x00000006,0x0000009b,0x0000009a,0x0004006f,0x00000018,0x0000009c,0x0000009b,
0x00050088,0x00000018,0x0000009d,0x00000099,0x0000009c,0x00050041,0x00000042,0x0000009f,
0x0000007f,0x0000009e,0x0003003e,0x0000009f,0x0000009d,0x0004003d,0x00000018,0x000000a0,
0x0000006e,0x0004003d,0x00000018,0x000000a1,0x0000004c,0x00050085,0x00000018,0x000000a2,
0x000000a1,0x00000082,0x00050081,0x00000018,0x000000a3,0x000000a0,0x000000a2,0x00050041,
0x0000001d,0x000000a4,0x0000001b,0x0000008f,0x0004003d,0x00000006,0x000000a5,0x000000a4,
0x0004006f,0x00000018,0x000000a6,0x000000a5,0x00050088,0x00000018,0x000000a7,0x000000a3,
0x000000a6,0x00050041,0x00000042,0x000000a9,0x0000007f,0x000000a8,0x0003003e,0x000000a9,
0x000000a7,0x00050041,0x0000001d,0x000000ab,0x0000001b,0x000000aa,0x0004003d,0x00000006,
0x000000ac,0x000000ab,0x000500aa,0x00000020,0x000000ad,0x000000ac,0x0000001c,0x000300f7,
0x000000af,0x00000000,0x000400fa,0x000000ad,0x000000ae,0x000000af,0x000200f8,0x000000ae,
0x0003003e,0x000000b0,0x000000b2,0x0003003e,0x000000b3,0x000000b5,0x0004003d,0x0000007d,
0x000000b6,0x0000007f,0x0004003d,0x0000007d,0x000000b7,0x000000b0,0x0007000c,0x0000007d,
0x000000b8,0x00000001,0x00000028,0x000000b6,0x000000b7,0x0004003d,0x0000007d,0x000000b9,
0x000000b3,0x0007000c,0x0000007d,0x000000ba,0x00000001,0x00000025,0x000000b8,0x000000b9,
0x0003003e,0x0000007f,0x000000ba,0x000200f9,0x000000af,0x000200f8,0x000000af,0x00050041,
0x0000001d,0x000000c0,0x0000001b,0x000000bf,0x0004003d,0x00000006,0x000000c1,0x000000c0,
0x0004003d,0x00000006,0x000000c2,0x0000002d,0x00050080,0x00000006,0x000000c3,0x000000c1,
0x000000c2,0x00060041,0x000000c8,0x000000c9,0x000000c7,0x00000038,0x00000038,0x0004003d,
0x0000007d,0x000000ca,0x000000c9,0x00060041,0x000000c8,0x000000cb,0x000000be,0x00000038,
0x000000c3,0x0003003e,0x000000cb,0x000000ca,0x0004003d,0x00000006,0x000000cc,0x0000002d,
0x0004003d,0x0000007d,0x000000cd,0x0000007f,0x00060041,0x000000c8,0x000000ce,0x000000be,
0x00000038,0x000000cc,0x0003003e,0x000000ce,0x000000cd,0x0004003d,0x00000006,0x000000cf,
0x0000002d,0x00050080,0x00000006,0x000000d0,0x000000cf,0x0000001c,0x0003003e,0x0000002d,
0x000000d0,0x000200f9,0x00000058,0x000200f8,0x00000058,0x0004003d,0x00000006,0x000000d1,
0x00000054,0x00050080,0x00000006,0x000000d2,0x000000d1,0x0000001c,0x0003003e,0x00000054,
0x000000d2,0x000200f9,0x00000055,0x000200f8,0x00000057,0x000200f9,0x0000003c,0x000200f8,
0x0000003c,0x0004003d,0x00000006,0x000000d3,0x00000037,0x00050080,0x00000006,0x000000d4,
0x000000d3,0x0000001c,0x0003003e,0x00000037,0x000000d4,0x000200f9,0x00000039,0x000200f8,
0x0000003b,0x000200f9,0x00000015,0x000200f8,0x00000015,0x00050041,0x0000001d,0x000000d5,
0x0000001b,0x00000038,0x0004003d,0x00000006,0x000000d6,0x000000d5,0x0004003d,0x00000006,
0x000000d7,0x00000008,0x00050080,0x00000006,0x000000d8,0x000000d7,0x000000d6,0x0003003e,
0x00000008,0x000000d8,0x000200f9,0x00000012,0x000200f8,0x00000014,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,24 +0,0 @@
#version 450
#define LOCAL_SZ_X 32
layout(push_constant) uniform pushBlock {
int total;
float slope;
} p;
layout(binding = 0) readonly buffer inbuf{
float in_buffer[];
};
layout(binding = 1) writeonly buffer outbuf{
float out_buffer[];
};
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
for (int i = int(gl_GlobalInvocationID.x); i < p.total; i += int(gl_NumWorkGroups.x * gl_WorkGroupSize.x))
{
float in_val = in_buffer[i];
out_buffer[i] = in_val >= 0.f ? in_val : p.slope * in_val;
}
}

View File

@ -1,78 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int relu_spv[502] = {
0x07230203,0x00010000,0x00080001,0x0000004b,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0007000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00000041,0x00060010,
0x00000004,0x00000011,0x00000020,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,
0x00040005,0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00000069,0x00080005,
0x0000000c,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00050005,
0x00000019,0x68737570,0x636f6c42,0x0000006b,0x00050006,0x00000019,0x00000000,0x61746f74,
0x0000006c,0x00050006,0x00000019,0x00000001,0x706f6c73,0x00000065,0x00030005,0x0000001b,
0x00000070,0x00040005,0x00000023,0x765f6e69,0x00006c61,0x00040005,0x00000025,0x75626e69,
0x00000066,0x00060006,0x00000025,0x00000000,0x625f6e69,0x65666675,0x00000072,0x00030005,
0x00000027,0x00000000,0x00040005,0x0000002d,0x6274756f,0x00006675,0x00060006,0x0000002d,
0x00000000,0x5f74756f,0x66667562,0x00007265,0x00030005,0x0000002f,0x00000000,0x00070005,
0x00000041,0x4e5f6c67,0x6f576d75,0x72476b72,0x7370756f,0x00000000,0x00040047,0x0000000c,
0x0000000b,0x0000001c,0x00050048,0x00000019,0x00000000,0x00000023,0x00000000,0x00050048,
0x00000019,0x00000001,0x00000023,0x00000004,0x00030047,0x00000019,0x00000002,0x00040047,
0x00000024,0x00000006,0x00000004,0x00040048,0x00000025,0x00000000,0x00000018,0x00050048,
0x00000025,0x00000000,0x00000023,0x00000000,0x00030047,0x00000025,0x00000003,0x00040047,
0x00000027,0x00000022,0x00000000,0x00040047,0x00000027,0x00000021,0x00000000,0x00040047,
0x0000002c,0x00000006,0x00000004,0x00040048,0x0000002d,0x00000000,0x00000019,0x00050048,
0x0000002d,0x00000000,0x00000023,0x00000000,0x00030047,0x0000002d,0x00000003,0x00040047,
0x0000002f,0x00000022,0x00000000,0x00040047,0x0000002f,0x00000021,0x00000001,0x00040047,
0x00000041,0x0000000b,0x00000018,0x00040047,0x0000004a,0x0000000b,0x00000019,0x00020013,
0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,
0x00040020,0x00000007,0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,0x00000000,
0x00040017,0x0000000a,0x00000009,0x00000003,0x00040020,0x0000000b,0x00000001,0x0000000a,
0x0004003b,0x0000000b,0x0000000c,0x00000001,0x0004002b,0x00000009,0x0000000d,0x00000000,
0x00040020,0x0000000e,0x00000001,0x00000009,0x00030016,0x00000018,0x00000020,0x0004001e,
0x00000019,0x00000006,0x00000018,0x00040020,0x0000001a,0x00000009,0x00000019,0x0004003b,
0x0000001a,0x0000001b,0x00000009,0x0004002b,0x00000006,0x0000001c,0x00000000,0x00040020,
0x0000001d,0x00000009,0x00000006,0x00020014,0x00000020,0x00040020,0x00000022,0x00000007,
0x00000018,0x0003001d,0x00000024,0x00000018,0x0003001e,0x00000025,0x00000024,0x00040020,
0x00000026,0x00000002,0x00000025,0x0004003b,0x00000026,0x00000027,0x00000002,0x00040020,
0x00000029,0x00000002,0x00000018,0x0003001d,0x0000002c,0x00000018,0x0003001e,0x0000002d,
0x0000002c,0x00040020,0x0000002e,0x00000002,0x0000002d,0x0004003b,0x0000002e,0x0000002f,
0x00000002,0x0004002b,0x00000018,0x00000033,0x00000000,0x0004002b,0x00000006,0x00000039,
0x00000001,0x00040020,0x0000003a,0x00000009,0x00000018,0x0004003b,0x0000000b,0x00000041,
0x00000001,0x0004002b,0x00000009,0x00000044,0x00000020,0x0004002b,0x00000009,0x00000049,
0x00000001,0x0006002c,0x0000000a,0x0000004a,0x00000044,0x00000049,0x00000049,0x00050036,
0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,
0x00000008,0x00000007,0x0004003b,0x00000022,0x00000023,0x00000007,0x0004003b,0x00000022,
0x00000031,0x00000007,0x00050041,0x0000000e,0x0000000f,0x0000000c,0x0000000d,0x0004003d,
0x00000009,0x00000010,0x0000000f,0x0004007c,0x00000006,0x00000011,0x00000010,0x0003003e,
0x00000008,0x00000011,0x000200f9,0x00000012,0x000200f8,0x00000012,0x000400f6,0x00000014,
0x00000015,0x00000000,0x000200f9,0x00000016,0x000200f8,0x00000016,0x0004003d,0x00000006,
0x00000017,0x00000008,0x00050041,0x0000001d,0x0000001e,0x0000001b,0x0000001c,0x0004003d,
0x00000006,0x0000001f,0x0000001e,0x000500b1,0x00000020,0x00000021,0x00000017,0x0000001f,
0x000400fa,0x00000021,0x00000013,0x00000014,0x000200f8,0x00000013,0x0004003d,0x00000006,
0x00000028,0x00000008,0x00060041,0x00000029,0x0000002a,0x00000027,0x0000001c,0x00000028,
0x0004003d,0x00000018,0x0000002b,0x0000002a,0x0003003e,0x00000023,0x0000002b,0x0004003d,
0x00000006,0x00000030,0x00000008,0x0004003d,0x00000018,0x00000032,0x00000023,0x000500be,
0x00000020,0x00000034,0x00000032,0x00000033,0x000300f7,0x00000036,0x00000000,0x000400fa,
0x00000034,0x00000035,0x00000038,0x000200f8,0x00000035,0x0004003d,0x00000018,0x00000037,
0x00000023,0x0003003e,0x00000031,0x00000037,0x000200f9,0x00000036,0x000200f8,0x00000038,
0x00050041,0x0000003a,0x0000003b,0x0000001b,0x00000039,0x0004003d,0x00000018,0x0000003c,
0x0000003b,0x0004003d,0x00000018,0x0000003d,0x00000023,0x00050085,0x00000018,0x0000003e,
0x0000003c,0x0000003d,0x0003003e,0x00000031,0x0000003e,0x000200f9,0x00000036,0x000200f8,
0x00000036,0x0004003d,0x00000018,0x0000003f,0x00000031,0x00060041,0x00000029,0x00000040,
0x0000002f,0x0000001c,0x00000030,0x0003003e,0x00000040,0x0000003f,0x000200f9,0x00000015,
0x000200f8,0x00000015,0x00050041,0x0000000e,0x00000042,0x00000041,0x0000000d,0x0004003d,
0x00000009,0x00000043,0x00000042,0x00050084,0x00000009,0x00000045,0x00000043,0x00000044,
0x0004007c,0x00000006,0x00000046,0x00000045,0x0004003d,0x00000006,0x00000047,0x00000008,
0x00050080,0x00000006,0x00000048,0x00000047,0x00000046,0x0003003e,0x00000008,0x00000048,
0x000200f9,0x00000012,0x000200f8,0x00000014,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -1,78 +0,0 @@
#version 450
#define LOCAL_SZ_X 256
layout(binding = 0) readonly buffer buf0{
float input_buffer[]; // outer_size * channels * channel_size
};
layout(binding = 1) buffer buf1{
float max_buffer[]; // outer_size * channel_size
};
layout(binding = 2) buffer buf2{
float sum_buffer[]; // outer_size * channel_size
};
layout(binding = 3) buffer buf3{
float output_buffer[]; // outer_size * channels * channel_size
};
layout(push_constant) uniform pushBlock {
int channel_size;
int outer_size;
int channels;
int logsoftmax;
} p;
layout(local_size_x = LOCAL_SZ_X, local_size_y = 1, local_size_z = 1) in;
void main()
{
int gid = int(gl_GlobalInvocationID.x);
if (gid >= p.outer_size) return;
int global_off = gid * p.channels * p.channel_size;
int reduced_buffer_off = gid * p.channel_size;
// find the max along channel
int index = global_off;
for (int i = 0; i < p.channel_size; ++i)
{
max_buffer[reduced_buffer_off + i] = input_buffer[index];
index++;
}
for (int c = 1; c < p.channels; ++c)
{
for (int i = 0; i < p.channel_size; ++i)
{
max_buffer[reduced_buffer_off + i] = max(max_buffer[reduced_buffer_off + i], input_buffer[index]);
index++;
}
}
// subtract, exp and accumulate along channel
for (int i = 0; i < p.channel_size; ++i)
sum_buffer[reduced_buffer_off + i] = 0.f;
index = global_off;
for (int c = 0; c < p.channels; ++c)
{
for (int i = 0; i < p.channel_size; ++i)
{
float exp_val = exp(input_buffer[index] - max_buffer[reduced_buffer_off + i]);
output_buffer[index] = exp_val;
sum_buffer[reduced_buffer_off + i] += exp_val;
index++;
}
}
// divide by computed sum
index = global_off;
for (int c = 0; c < p.channels; ++c)
{
for (int i = 0; i < p.channel_size; ++i)
{
float v = output_buffer[index] / sum_buffer[reduced_buffer_off + i];
if (p.logsoftmax == 1)
v = log(v);
output_buffer[index] = v;
index++;
}
}
}

View File

@ -1,202 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int softmax_spv[1496] = {
0x07230203,0x00010000,0x00080001,0x000000f4,0x00000000,0x00020011,0x00000001,0x0006000b,
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
0x0006000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000c,0x00060010,0x00000004,
0x00000011,0x00000100,0x00000001,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,
0x00000004,0x6e69616d,0x00000000,0x00030005,0x00000008,0x00646967,0x00080005,0x0000000c,
0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00050005,0x00000013,
0x68737570,0x636f6c42,0x0000006b,0x00070006,0x00000013,0x00000000,0x6e616863,0x5f6c656e,
0x657a6973,0x00000000,0x00060006,0x00000013,0x00000001,0x6574756f,0x69735f72,0x0000657a,
0x00060006,0x00000013,0x00000002,0x6e616863,0x736c656e,0x00000000,0x00060006,0x00000013,
0x00000003,0x73676f6c,0x6d74666f,0x00007861,0x00030005,0x00000015,0x00000070,0x00050005,
0x0000001f,0x626f6c67,0x6f5f6c61,0x00006666,0x00070005,0x00000029,0x75646572,0x5f646563,
0x66667562,0x6f5f7265,0x00006666,0x00040005,0x0000002e,0x65646e69,0x00000078,0x00030005,
0x00000030,0x00000069,0x00040005,0x0000003c,0x31667562,0x00000000,0x00060006,0x0000003c,
0x00000000,0x5f78616d,0x66667562,0x00007265,0x00030005,0x0000003e,0x00000000,0x00040005,
0x00000043,0x30667562,0x00000000,0x00070006,0x00000043,0x00000000,0x75706e69,0x75625f74,
0x72656666,0x00000000,0x00030005,0x00000045,0x00000000,0x00030005,0x0000004f,0x00000063,
0x00030005,0x00000059,0x00000069,0x00030005,0x00000076,0x00000069,0x00040005,0x00000081,
0x32667562,0x00000000,0x00060006,0x00000081,0x00000000,0x5f6d7573,0x66667562,0x00007265,
0x00030005,0x00000083,0x00000000,0x00030005,0x0000008c,0x00000063,0x00030005,0x00000096,
0x00000069,0x00040005,0x000000a1,0x5f707865,0x006c6176,0x00040005,0x000000ad,0x33667562,
0x00000000,0x00070006,0x000000ad,0x00000000,0x7074756f,0x625f7475,0x65666675,0x00000072,
0x00030005,0x000000af,0x00000000,0x00030005,0x000000c2,0x00000063,0x00030005,0x000000cc,
0x00000069,0x00030005,0x000000d6,0x00000076,0x00040047,0x0000000c,0x0000000b,0x0000001c,
0x00050048,0x00000013,0x00000000,0x00000023,0x00000000,0x00050048,0x00000013,0x00000001,
0x00000023,0x00000004,0x00050048,0x00000013,0x00000002,0x00000023,0x00000008,0x00050048,
0x00000013,0x00000003,0x00000023,0x0000000c,0x00030047,0x00000013,0x00000002,0x00040047,
0x0000003b,0x00000006,0x00000004,0x00050048,0x0000003c,0x00000000,0x00000023,0x00000000,
0x00030047,0x0000003c,0x00000003,0x00040047,0x0000003e,0x00000022,0x00000000,0x00040047,
0x0000003e,0x00000021,0x00000001,0x00040047,0x00000042,0x00000006,0x00000004,0x00040048,
0x00000043,0x00000000,0x00000018,0x00050048,0x00000043,0x00000000,0x00000023,0x00000000,
0x00030047,0x00000043,0x00000003,0x00040047,0x00000045,0x00000022,0x00000000,0x00040047,
0x00000045,0x00000021,0x00000000,0x00040047,0x00000080,0x00000006,0x00000004,0x00050048,
0x00000081,0x00000000,0x00000023,0x00000000,0x00030047,0x00000081,0x00000003,0x00040047,
0x00000083,0x00000022,0x00000000,0x00040047,0x00000083,0x00000021,0x00000002,0x00040047,
0x000000ac,0x00000006,0x00000004,0x00050048,0x000000ad,0x00000000,0x00000023,0x00000000,
0x00030047,0x000000ad,0x00000003,0x00040047,0x000000af,0x00000022,0x00000000,0x00040047,
0x000000af,0x00000021,0x00000003,0x00040047,0x000000f3,0x0000000b,0x00000019,0x00020013,
0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,
0x00040020,0x00000007,0x00000007,0x00000006,0x00040015,0x00000009,0x00000020,0x00000000,
0x00040017,0x0000000a,0x00000009,0x00000003,0x00040020,0x0000000b,0x00000001,0x0000000a,
0x0004003b,0x0000000b,0x0000000c,0x00000001,0x0004002b,0x00000009,0x0000000d,0x00000000,
0x00040020,0x0000000e,0x00000001,0x00000009,0x0006001e,0x00000013,0x00000006,0x00000006,
0x00000006,0x00000006,0x00040020,0x00000014,0x00000009,0x00000013,0x0004003b,0x00000014,
0x00000015,0x00000009,0x0004002b,0x00000006,0x00000016,0x00000001,0x00040020,0x00000017,
0x00000009,0x00000006,0x00020014,0x0000001a,0x0004002b,0x00000006,0x00000021,0x00000002,
0x0004002b,0x00000006,0x00000025,0x00000000,0x00030016,0x0000003a,0x00000020,0x0003001d,
0x0000003b,0x0000003a,0x0003001e,0x0000003c,0x0000003b,0x00040020,0x0000003d,0x00000002,
0x0000003c,0x0004003b,0x0000003d,0x0000003e,0x00000002,0x0003001d,0x00000042,0x0000003a,
0x0003001e,0x00000043,0x00000042,0x00040020,0x00000044,0x00000002,0x00000043,0x0004003b,
0x00000044,0x00000045,0x00000002,0x00040020,0x00000047,0x00000002,0x0000003a,0x0003001d,
0x00000080,0x0000003a,0x0003001e,0x00000081,0x00000080,0x00040020,0x00000082,0x00000002,
0x00000081,0x0004003b,0x00000082,0x00000083,0x00000002,0x0004002b,0x0000003a,0x00000087,
0x00000000,0x00040020,0x000000a0,0x00000007,0x0000003a,0x0003001d,0x000000ac,0x0000003a,
0x0003001e,0x000000ad,0x000000ac,0x00040020,0x000000ae,0x00000002,0x000000ad,0x0004003b,
0x000000ae,0x000000af,0x00000002,0x0004002b,0x00000006,0x000000e0,0x00000003,0x0004002b,
0x00000009,0x000000f1,0x00000100,0x0004002b,0x00000009,0x000000f2,0x00000001,0x0006002c,
0x0000000a,0x000000f3,0x000000f1,0x000000f2,0x000000f2,0x00050036,0x00000002,0x00000004,
0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000007,0x00000008,0x00000007,
0x0004003b,0x00000007,0x0000001f,0x00000007,0x0004003b,0x00000007,0x00000029,0x00000007,
0x0004003b,0x00000007,0x0000002e,0x00000007,0x0004003b,0x00000007,0x00000030,0x00000007,
0x0004003b,0x00000007,0x0000004f,0x00000007,0x0004003b,0x00000007,0x00000059,0x00000007,
0x0004003b,0x00000007,0x00000076,0x00000007,0x0004003b,0x00000007,0x0000008c,0x00000007,
0x0004003b,0x00000007,0x00000096,0x00000007,0x0004003b,0x000000a0,0x000000a1,0x00000007,
0x0004003b,0x00000007,0x000000c2,0x00000007,0x0004003b,0x00000007,0x000000cc,0x00000007,
0x0004003b,0x000000a0,0x000000d6,0x00000007,0x00050041,0x0000000e,0x0000000f,0x0000000c,
0x0000000d,0x0004003d,0x00000009,0x00000010,0x0000000f,0x0004007c,0x00000006,0x00000011,
0x00000010,0x0003003e,0x00000008,0x00000011,0x0004003d,0x00000006,0x00000012,0x00000008,
0x00050041,0x00000017,0x00000018,0x00000015,0x00000016,0x0004003d,0x00000006,0x00000019,
0x00000018,0x000500af,0x0000001a,0x0000001b,0x00000012,0x00000019,0x000300f7,0x0000001d,
0x00000000,0x000400fa,0x0000001b,0x0000001c,0x0000001d,0x000200f8,0x0000001c,0x000100fd,
0x000200f8,0x0000001d,0x0004003d,0x00000006,0x00000020,0x00000008,0x00050041,0x00000017,
0x00000022,0x00000015,0x00000021,0x0004003d,0x00000006,0x00000023,0x00000022,0x00050084,
0x00000006,0x00000024,0x00000020,0x00000023,0x00050041,0x00000017,0x00000026,0x00000015,
0x00000025,0x0004003d,0x00000006,0x00000027,0x00000026,0x00050084,0x00000006,0x00000028,
0x00000024,0x00000027,0x0003003e,0x0000001f,0x00000028,0x0004003d,0x00000006,0x0000002a,
0x00000008,0x00050041,0x00000017,0x0000002b,0x00000015,0x00000025,0x0004003d,0x00000006,
0x0000002c,0x0000002b,0x00050084,0x00000006,0x0000002d,0x0000002a,0x0000002c,0x0003003e,
0x00000029,0x0000002d,0x0004003d,0x00000006,0x0000002f,0x0000001f,0x0003003e,0x0000002e,
0x0000002f,0x0003003e,0x00000030,0x00000025,0x000200f9,0x00000031,0x000200f8,0x00000031,
0x000400f6,0x00000033,0x00000034,0x00000000,0x000200f9,0x00000035,0x000200f8,0x00000035,
0x0004003d,0x00000006,0x00000036,0x00000030,0x00050041,0x00000017,0x00000037,0x00000015,
0x00000025,0x0004003d,0x00000006,0x00000038,0x00000037,0x000500b1,0x0000001a,0x00000039,
0x00000036,0x00000038,0x000400fa,0x00000039,0x00000032,0x00000033,0x000200f8,0x00000032,
0x0004003d,0x00000006,0x0000003f,0x00000029,0x0004003d,0x00000006,0x00000040,0x00000030,
0x00050080,0x00000006,0x00000041,0x0000003f,0x00000040,0x0004003d,0x00000006,0x00000046,
0x0000002e,0x00060041,0x00000047,0x00000048,0x00000045,0x00000025,0x00000046,0x0004003d,
0x0000003a,0x00000049,0x00000048,0x00060041,0x00000047,0x0000004a,0x0000003e,0x00000025,
0x00000041,0x0003003e,0x0000004a,0x00000049,0x0004003d,0x00000006,0x0000004b,0x0000002e,
0x00050080,0x00000006,0x0000004c,0x0000004b,0x00000016,0x0003003e,0x0000002e,0x0000004c,
0x000200f9,0x00000034,0x000200f8,0x00000034,0x0004003d,0x00000006,0x0000004d,0x00000030,
0x00050080,0x00000006,0x0000004e,0x0000004d,0x00000016,0x0003003e,0x00000030,0x0000004e,
0x000200f9,0x00000031,0x000200f8,0x00000033,0x0003003e,0x0000004f,0x00000016,0x000200f9,
0x00000050,0x000200f8,0x00000050,0x000400f6,0x00000052,0x00000053,0x00000000,0x000200f9,
0x00000054,0x000200f8,0x00000054,0x0004003d,0x00000006,0x00000055,0x0000004f,0x00050041,
0x00000017,0x00000056,0x00000015,0x00000021,0x0004003d,0x00000006,0x00000057,0x00000056,
0x000500b1,0x0000001a,0x00000058,0x00000055,0x00000057,0x000400fa,0x00000058,0x00000051,
0x00000052,0x000200f8,0x00000051,0x0003003e,0x00000059,0x00000025,0x000200f9,0x0000005a,
0x000200f8,0x0000005a,0x000400f6,0x0000005c,0x0000005d,0x00000000,0x000200f9,0x0000005e,
0x000200f8,0x0000005e,0x0004003d,0x00000006,0x0000005f,0x00000059,0x00050041,0x00000017,
0x00000060,0x00000015,0x00000025,0x0004003d,0x00000006,0x00000061,0x00000060,0x000500b1,
0x0000001a,0x00000062,0x0000005f,0x00000061,0x000400fa,0x00000062,0x0000005b,0x0000005c,
0x000200f8,0x0000005b,0x0004003d,0x00000006,0x00000063,0x00000029,0x0004003d,0x00000006,
0x00000064,0x00000059,0x00050080,0x00000006,0x00000065,0x00000063,0x00000064,0x0004003d,
0x00000006,0x00000066,0x00000029,0x0004003d,0x00000006,0x00000067,0x00000059,0x00050080,
0x00000006,0x00000068,0x00000066,0x00000067,0x00060041,0x00000047,0x00000069,0x0000003e,
0x00000025,0x00000068,0x0004003d,0x0000003a,0x0000006a,0x00000069,0x0004003d,0x00000006,
0x0000006b,0x0000002e,0x00060041,0x00000047,0x0000006c,0x00000045,0x00000025,0x0000006b,
0x0004003d,0x0000003a,0x0000006d,0x0000006c,0x0007000c,0x0000003a,0x0000006e,0x00000001,
0x00000028,0x0000006a,0x0000006d,0x00060041,0x00000047,0x0000006f,0x0000003e,0x00000025,
0x00000065,0x0003003e,0x0000006f,0x0000006e,0x0004003d,0x00000006,0x00000070,0x0000002e,
0x00050080,0x00000006,0x00000071,0x00000070,0x00000016,0x0003003e,0x0000002e,0x00000071,
0x000200f9,0x0000005d,0x000200f8,0x0000005d,0x0004003d,0x00000006,0x00000072,0x00000059,
0x00050080,0x00000006,0x00000073,0x00000072,0x00000016,0x0003003e,0x00000059,0x00000073,
0x000200f9,0x0000005a,0x000200f8,0x0000005c,0x000200f9,0x00000053,0x000200f8,0x00000053,
0x0004003d,0x00000006,0x00000074,0x0000004f,0x00050080,0x00000006,0x00000075,0x00000074,
0x00000016,0x0003003e,0x0000004f,0x00000075,0x000200f9,0x00000050,0x000200f8,0x00000052,
0x0003003e,0x00000076,0x00000025,0x000200f9,0x00000077,0x000200f8,0x00000077,0x000400f6,
0x00000079,0x0000007a,0x00000000,0x000200f9,0x0000007b,0x000200f8,0x0000007b,0x0004003d,
0x00000006,0x0000007c,0x00000076,0x00050041,0x00000017,0x0000007d,0x00000015,0x00000025,
0x0004003d,0x00000006,0x0000007e,0x0000007d,0x000500b1,0x0000001a,0x0000007f,0x0000007c,
0x0000007e,0x000400fa,0x0000007f,0x00000078,0x00000079,0x000200f8,0x00000078,0x0004003d,
0x00000006,0x00000084,0x00000029,0x0004003d,0x00000006,0x00000085,0x00000076,0x00050080,
0x00000006,0x00000086,0x00000084,0x00000085,0x00060041,0x00000047,0x00000088,0x00000083,
0x00000025,0x00000086,0x0003003e,0x00000088,0x00000087,0x000200f9,0x0000007a,0x000200f8,
0x0000007a,0x0004003d,0x00000006,0x00000089,0x00000076,0x00050080,0x00000006,0x0000008a,
0x00000089,0x00000016,0x0003003e,0x00000076,0x0000008a,0x000200f9,0x00000077,0x000200f8,
0x00000079,0x0004003d,0x00000006,0x0000008b,0x0000001f,0x0003003e,0x0000002e,0x0000008b,
0x0003003e,0x0000008c,0x00000025,0x000200f9,0x0000008d,0x000200f8,0x0000008d,0x000400f6,
0x0000008f,0x00000090,0x00000000,0x000200f9,0x00000091,0x000200f8,0x00000091,0x0004003d,
0x00000006,0x00000092,0x0000008c,0x00050041,0x00000017,0x00000093,0x00000015,0x00000021,
0x0004003d,0x00000006,0x00000094,0x00000093,0x000500b1,0x0000001a,0x00000095,0x00000092,
0x00000094,0x000400fa,0x00000095,0x0000008e,0x0000008f,0x000200f8,0x0000008e,0x0003003e,
0x00000096,0x00000025,0x000200f9,0x00000097,0x000200f8,0x00000097,0x000400f6,0x00000099,
0x0000009a,0x00000000,0x000200f9,0x0000009b,0x000200f8,0x0000009b,0x0004003d,0x00000006,
0x0000009c,0x00000096,0x00050041,0x00000017,0x0000009d,0x00000015,0x00000025,0x0004003d,
0x00000006,0x0000009e,0x0000009d,0x000500b1,0x0000001a,0x0000009f,0x0000009c,0x0000009e,
0x000400fa,0x0000009f,0x00000098,0x00000099,0x000200f8,0x00000098,0x0004003d,0x00000006,
0x000000a2,0x0000002e,0x00060041,0x00000047,0x000000a3,0x00000045,0x00000025,0x000000a2,
0x0004003d,0x0000003a,0x000000a4,0x000000a3,0x0004003d,0x00000006,0x000000a5,0x00000029,
0x0004003d,0x00000006,0x000000a6,0x00000096,0x00050080,0x00000006,0x000000a7,0x000000a5,
0x000000a6,0x00060041,0x00000047,0x000000a8,0x0000003e,0x00000025,0x000000a7,0x0004003d,
0x0000003a,0x000000a9,0x000000a8,0x00050083,0x0000003a,0x000000aa,0x000000a4,0x000000a9,
0x0006000c,0x0000003a,0x000000ab,0x00000001,0x0000001b,0x000000aa,0x0003003e,0x000000a1,
0x000000ab,0x0004003d,0x00000006,0x000000b0,0x0000002e,0x0004003d,0x0000003a,0x000000b1,
0x000000a1,0x00060041,0x00000047,0x000000b2,0x000000af,0x00000025,0x000000b0,0x0003003e,
0x000000b2,0x000000b1,0x0004003d,0x00000006,0x000000b3,0x00000029,0x0004003d,0x00000006,
0x000000b4,0x00000096,0x00050080,0x00000006,0x000000b5,0x000000b3,0x000000b4,0x0004003d,
0x0000003a,0x000000b6,0x000000a1,0x00060041,0x00000047,0x000000b7,0x00000083,0x00000025,
0x000000b5,0x0004003d,0x0000003a,0x000000b8,0x000000b7,0x00050081,0x0000003a,0x000000b9,
0x000000b8,0x000000b6,0x00060041,0x00000047,0x000000ba,0x00000083,0x00000025,0x000000b5,
0x0003003e,0x000000ba,0x000000b9,0x0004003d,0x00000006,0x000000bb,0x0000002e,0x00050080,
0x00000006,0x000000bc,0x000000bb,0x00000016,0x0003003e,0x0000002e,0x000000bc,0x000200f9,
0x0000009a,0x000200f8,0x0000009a,0x0004003d,0x00000006,0x000000bd,0x00000096,0x00050080,
0x00000006,0x000000be,0x000000bd,0x00000016,0x0003003e,0x00000096,0x000000be,0x000200f9,
0x00000097,0x000200f8,0x00000099,0x000200f9,0x00000090,0x000200f8,0x00000090,0x0004003d,
0x00000006,0x000000bf,0x0000008c,0x00050080,0x00000006,0x000000c0,0x000000bf,0x00000016,
0x0003003e,0x0000008c,0x000000c0,0x000200f9,0x0000008d,0x000200f8,0x0000008f,0x0004003d,
0x00000006,0x000000c1,0x0000001f,0x0003003e,0x0000002e,0x000000c1,0x0003003e,0x000000c2,
0x00000025,0x000200f9,0x000000c3,0x000200f8,0x000000c3,0x000400f6,0x000000c5,0x000000c6,
0x00000000,0x000200f9,0x000000c7,0x000200f8,0x000000c7,0x0004003d,0x00000006,0x000000c8,
0x000000c2,0x00050041,0x00000017,0x000000c9,0x00000015,0x00000021,0x0004003d,0x00000006,
0x000000ca,0x000000c9,0x000500b1,0x0000001a,0x000000cb,0x000000c8,0x000000ca,0x000400fa,
0x000000cb,0x000000c4,0x000000c5,0x000200f8,0x000000c4,0x0003003e,0x000000cc,0x00000025,
0x000200f9,0x000000cd,0x000200f8,0x000000cd,0x000400f6,0x000000cf,0x000000d0,0x00000000,
0x000200f9,0x000000d1,0x000200f8,0x000000d1,0x0004003d,0x00000006,0x000000d2,0x000000cc,
0x00050041,0x00000017,0x000000d3,0x00000015,0x00000025,0x0004003d,0x00000006,0x000000d4,
0x000000d3,0x000500b1,0x0000001a,0x000000d5,0x000000d2,0x000000d4,0x000400fa,0x000000d5,
0x000000ce,0x000000cf,0x000200f8,0x000000ce,0x0004003d,0x00000006,0x000000d7,0x0000002e,
0x00060041,0x00000047,0x000000d8,0x000000af,0x00000025,0x000000d7,0x0004003d,0x0000003a,
0x000000d9,0x000000d8,0x0004003d,0x00000006,0x000000da,0x00000029,0x0004003d,0x00000006,
0x000000db,0x000000cc,0x00050080,0x00000006,0x000000dc,0x000000da,0x000000db,0x00060041,
0x00000047,0x000000dd,0x00000083,0x00000025,0x000000dc,0x0004003d,0x0000003a,0x000000de,
0x000000dd,0x00050088,0x0000003a,0x000000df,0x000000d9,0x000000de,0x0003003e,0x000000d6,
0x000000df,0x00050041,0x00000017,0x000000e1,0x00000015,0x000000e0,0x0004003d,0x00000006,
0x000000e2,0x000000e1,0x000500aa,0x0000001a,0x000000e3,0x000000e2,0x00000016,0x000300f7,
0x000000e5,0x00000000,0x000400fa,0x000000e3,0x000000e4,0x000000e5,0x000200f8,0x000000e4,
0x0004003d,0x0000003a,0x000000e6,0x000000d6,0x0006000c,0x0000003a,0x000000e7,0x00000001,
0x0000001c,0x000000e6,0x0003003e,0x000000d6,0x000000e7,0x000200f9,0x000000e5,0x000200f8,
0x000000e5,0x0004003d,0x00000006,0x000000e8,0x0000002e,0x0004003d,0x0000003a,0x000000e9,
0x000000d6,0x00060041,0x00000047,0x000000ea,0x000000af,0x00000025,0x000000e8,0x0003003e,
0x000000ea,0x000000e9,0x0004003d,0x00000006,0x000000eb,0x0000002e,0x00050080,0x00000006,
0x000000ec,0x000000eb,0x00000016,0x0003003e,0x0000002e,0x000000ec,0x000200f9,0x000000d0,
0x000200f8,0x000000d0,0x0004003d,0x00000006,0x000000ed,0x000000cc,0x00050080,0x00000006,
0x000000ee,0x000000ed,0x00000016,0x0003003e,0x000000cc,0x000000ee,0x000200f9,0x000000cd,
0x000200f8,0x000000cf,0x000200f9,0x000000c6,0x000200f8,0x000000c6,0x0004003d,0x00000006,
0x000000ef,0x000000c2,0x00050080,0x00000006,0x000000f0,0x000000ef,0x00000016,0x0003003e,
0x000000c2,0x000000f0,0x000200f9,0x000000c3,0x000200f8,0x000000c5,0x000100fd,0x00010038
};
}}} // namespace cv::dnn::vkcom

View File

@ -13,10 +13,8 @@ dir = "./"
license_decl = \
'// This file is part of OpenCV project.\n'\
'// It is subject to the license terms in the LICENSE file found in the top-level directory\n'\
'// of this distribution and at http://opencv.org/license.html.\n'\
'//\n'\
'// Copyright (C) 2018, Intel Corporation, all rights reserved.\n'\
'// Third party copyrights are property of their respective owners.\n\n'
'// of this distribution and at http://opencv.org/license.html.\n\n'
precomp = '#include \"../../precomp.hpp\"\n'
ns_head = '\nnamespace cv { namespace dnn { namespace vkcom {\n\n'
ns_tail = '\n}}} // namespace cv::dnn::vkcom\n'
@ -27,6 +25,12 @@ headfile.write('#ifndef OPENCV_DNN_SPV_SHADER_HPP\n')
headfile.write('#define OPENCV_DNN_SPV_SHADER_HPP\n\n')
headfile.write(ns_head)
cppfile = open('spv_shader.cpp', 'w')
cppfile.write(license_decl)
cppfile.write(precomp)
cppfile.write('#include \"spv_shader.hpp\"\n')
cppfile.write(ns_head)
cmd_remove = ''
null_out = ''
if sys.platform.find('win32') != -1:
@ -35,24 +39,30 @@ if sys.platform.find('win32') != -1:
elif sys.platform.find('linux') != -1:
cmd_remove = 'rm'
null_out = ' > /dev/null 2>&1'
else:
cmd_remove = 'rm'
insertList = []
externList = []
list = os.listdir(dir)
for i in range(0, len(list)):
if (os.path.splitext(list[i])[-1] != '.comp'):
continue
prefix = os.path.splitext(list[i])[0];
prefix = os.path.splitext(list[i])[0]
path = os.path.join(dir, list[i])
bin_file = prefix + '.tmp'
cmd = ' glslangValidator -V ' + path + ' -S comp -o ' + bin_file
print('compiling')
print('Run cmd = ', cmd)
if os.system(cmd) != 0:
continue;
continue
size = os.path.getsize(bin_file)
spv_txt_file = prefix + '.spv'
cmd = 'glslangValidator -V ' + path + ' -S comp -o ' + spv_txt_file + ' -x' + null_out
cmd = 'glslangValidator -V ' + path + ' -S comp -o ' + spv_txt_file + ' -x' #+ null_out
os.system(cmd)
infile_name = spv_txt_file
@ -78,11 +88,32 @@ for i in range(0, len(list)):
# write a line into header file
fmt = 'extern const unsigned int %s[%d];\n' % (array_name, size/4)
headfile.write(fmt)
externList.append(fmt)
fmt = ' SPVMaps.insert(std::make_pair("%s", std::make_pair(%s, %d)));\n' % (array_name, array_name, size/4)
insertList.append(fmt)
os.system(cmd_remove + ' ' + bin_file)
os.system(cmd_remove + ' ' + spv_txt_file)
for fmt in externList:
headfile.write(fmt)
# write to head file
headfile.write('\n')
headfile.write('extern std::map<std::string, std::pair<const unsigned int *, size_t> > SPVMaps;\n\n')
headfile.write('void initSPVMaps();\n')
headfile.write(ns_tail)
headfile.write('\n#endif /* OPENCV_DNN_SPV_SHADER_HPP */\n')
headfile.close();
headfile.close()
# write to cpp file
cppfile.write('std::map<std::string, std::pair<const unsigned int *, size_t> > SPVMaps;\n\n')
cppfile.write('void initSPVMaps()\n{\n')
for fmt in insertList:
cppfile.write(fmt)
cppfile.write('}\n')
cppfile.write(ns_tail)
cppfile.close()

View File

@ -0,0 +1,21 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "../../precomp.hpp"
#include "spv_shader.hpp"
namespace cv { namespace dnn { namespace vkcom {
std::map<std::string, std::pair<const unsigned int *, size_t> > SPVMaps;
void initSPVMaps()
{
SPVMaps.insert(std::make_pair("conv_1x1_fast_spv", std::make_pair(conv_1x1_fast_spv, 3134)));
SPVMaps.insert(std::make_pair("gemm_spv", std::make_pair(gemm_spv, 2902)));
SPVMaps.insert(std::make_pair("conv_depthwise_3x3_spv", std::make_pair(conv_depthwise_3x3_spv, 1977)));
SPVMaps.insert(std::make_pair("conv_implicit_gemm_spv", std::make_pair(conv_implicit_gemm_spv, 3565)));
SPVMaps.insert(std::make_pair("conv_depthwise_spv", std::make_pair(conv_depthwise_spv, 2092)));
}
}}} // namespace cv::dnn::vkcom

View File

@ -1,9 +1,6 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_SPV_SHADER_HPP
#define OPENCV_DNN_SPV_SHADER_HPP
@ -11,18 +8,15 @@
namespace cv { namespace dnn { namespace vkcom {
extern const unsigned int dw_conv_spv[1760];
extern const unsigned int permute_spv[765];
extern const unsigned int conv48_spv[7458];
extern const unsigned int conv48_nobias_spv[7182];
extern const unsigned int lrn_spv[1845];
extern const unsigned int concat_spv[541];
extern const unsigned int avg_pool_spv[1538];
extern const unsigned int softmax_spv[1496];
extern const unsigned int prior_box_spv[1480];
extern const unsigned int max_pool_spv[1449];
extern const unsigned int relu_spv[502];
extern const unsigned int conv_spv[1894];
extern const unsigned int conv_1x1_fast_spv[3134];
extern const unsigned int gemm_spv[2902];
extern const unsigned int conv_depthwise_3x3_spv[1977];
extern const unsigned int conv_implicit_gemm_spv[3565];
extern const unsigned int conv_depthwise_spv[2092];
extern std::map<std::string, std::pair<const unsigned int *, size_t> > SPVMaps;
void initSPVMaps();
}}} // namespace cv::dnn::vkcom

View File

@ -6,7 +6,6 @@
// Third party copyrights are property of their respective owners.
#include "../../precomp.hpp"
#include "common.hpp"
#include "internal.hpp"
#include "../include/buffer.hpp"
@ -16,59 +15,64 @@ namespace cv { namespace dnn { namespace vkcom {
static uint32_t findMemoryType(uint32_t memoryTypeBits, VkMemoryPropertyFlags properties)
{
VkPhysicalDeviceMemoryProperties memoryProperties;
vkGetPhysicalDeviceMemoryProperties(kPhysicalDevice, &memoryProperties);
for (uint32_t i = 0; i < memoryProperties.memoryTypeCount; ++i) {
for (uint32_t i = 0; i < physicalDeviceMemoryProperties.memoryTypeCount; ++i)
{
if ((memoryTypeBits & (1 << i)) &&
((memoryProperties.memoryTypes[i].propertyFlags & properties) == properties))
((physicalDeviceMemoryProperties.memoryTypes[i].propertyFlags & properties) == properties))
return i;
}
return -1;
return uint32_t(-1);
}
Buffer::Buffer(VkBufferUsageFlags usageFlag) : usageFlag_(usageFlag), buffer_(VK_NULL_HANDLE), memory_(VK_NULL_HANDLE)
{
}
bool Buffer::init(size_t size_in_bytes, const char* data)
{
if (buffer_ != VK_NULL_HANDLE)
{
printf("Warn: Buffer object already inited\n");
CV_LOG_WARNING(NULL, "Warn: Buffer object already inited!");
return false;
}
VkBufferCreateInfo bufferCreateInfo = {};
bufferCreateInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
bufferCreateInfo.size = size_in_bytes;
bufferCreateInfo.usage = VK_BUFFER_USAGE_STORAGE_BUFFER_BIT;
bufferCreateInfo.size = (VkDeviceSize)size_in_bytes;
bufferCreateInfo.usage = usageFlag_;
bufferCreateInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
VK_CHECK_RESULT(vkCreateBuffer(device_, &bufferCreateInfo, NULL, &buffer_));
VK_CHECK_RESULT(vkCreateBuffer(kDevice, &bufferCreateInfo, NULL, &buffer_));
VkMemoryRequirements memoryRequirements;
vkGetBufferMemoryRequirements(device_, buffer_, &memoryRequirements);
vkGetBufferMemoryRequirements(kDevice, buffer_, &memoryRequirements);
VkMemoryAllocateInfo allocateInfo = {};
allocateInfo.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
allocateInfo.allocationSize = memoryRequirements.size;
// TODO: Try to optimize the memory at discrete graphics card. For AMD and GPU discrete graphics card,
// we should use VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT.
allocateInfo.memoryTypeIndex = findMemoryType(memoryRequirements.memoryTypeBits,
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
VK_CHECK_RESULT(vkAllocateMemory(device_, &allocateInfo, NULL, &memory_));
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
);
VK_CHECK_RESULT(vkAllocateMemory(kDevice, &allocateInfo, NULL, &memory_));
if (data)
{
char* dst;
VK_CHECK_RESULT(vkMapMemory(device_, memory_, 0, size_in_bytes, 0, (void **)&dst));
VK_CHECK_RESULT(vkMapMemory(kDevice, memory_, 0, size_in_bytes, 0, (void **)&dst));
memcpy(dst, data, size_in_bytes);
vkUnmapMemory(device_, memory_);
vkUnmapMemory(kDevice, memory_);
}
VK_CHECK_RESULT(vkBindBufferMemory(device_, buffer_, memory_, 0));
VK_CHECK_RESULT(vkBindBufferMemory(kDevice, buffer_, memory_, 0));
return true;
}
Buffer::Buffer(VkDevice& device, size_t size_in_bytes, const char* data)
Buffer::Buffer(size_t size_in_bytes, const char* data, VkBufferUsageFlags usageFlag) : usageFlag_(usageFlag)
{
device_ = device;
buffer_ = VK_NULL_HANDLE;
memory_ = VK_NULL_HANDLE;
init(size_in_bytes, data);
@ -76,8 +80,8 @@ Buffer::Buffer(VkDevice& device, size_t size_in_bytes, const char* data)
Buffer::~Buffer()
{
vkFreeMemory(device_, memory_, NULL);
vkDestroyBuffer(device_, buffer_, NULL);
vkFreeMemory(kDevice, memory_, NULL);
vkDestroyBuffer(kDevice, buffer_, NULL);
}
#endif // HAVE_VULKAN

View File

@ -0,0 +1,182 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
/*
The code has referenced MNN (https://github.com/alibaba/MNN/blob/2.4.0/source/backend/vulkan/component/VulkanCommandPool.cpp)
and adapted for OpenCV by Zihao Mu.
Below is the original copyright:
*/
//
// VulkanCommandPool.cpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "../../precomp.hpp"
#include "internal.hpp"
#include "../include/command.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
// *********************** CommandBuffer ********************
CommandBuffer::CommandBuffer(CommandPool* pool) : cmdPool(pool)
{
CV_Assert(cmdPool);
if (pool->bufferQueue.empty())
{
VkCommandBufferAllocateInfo cmdBufferCreateInfo {
/* .sType = */ VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,
/* .pNext = */ nullptr,
/* .commandPool = */ cmdPool->get(),
/* .level = */ VK_COMMAND_BUFFER_LEVEL_PRIMARY,
/* .commandBufferCount = */ 1,
};
vkAllocateCommandBuffers(kDevice, &cmdBufferCreateInfo, &cmdBuffer);
}
else
{
cmdBuffer = pool->bufferQueue.front();
pool-> bufferQueue.pop();
}
}
void CommandBuffer::barrierSource(VkBuffer source, size_t start, size_t size, BarrierType type) const
{
VkBufferMemoryBarrier barrier;
barrier.sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER;
barrier.buffer = source;
barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
barrier.offset = start;
barrier.pNext = nullptr;
barrier.size = size;
switch (type) {
case READ_WRITE:
barrier.srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_TRANSFER_WRITE_BIT;
barrier.dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_TRANSFER_READ_BIT;
break;
case WRITE_WRITE:
barrier.srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_TRANSFER_WRITE_BIT;
barrier.dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_SHADER_WRITE_BIT;
break;
default:
break;
}
vkCmdPipelineBarrier(cmdBuffer, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 1,
&barrier, 0, nullptr);
}
void CommandBuffer::beginRecord(VkCommandBufferUsageFlags flag)
{
cv::AutoLock lock(kContextMtx);
VkCommandBufferBeginInfo cmdBufferBeginInfo{
/* .sType = */ VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO,
/* .pNext = */ nullptr,
/* .flags = */ flag,
/* .pInheritanceInfo = */ nullptr,
};
vkResetCommandBuffer(cmdBuffer, 0);
VK_CHECK_RESULT(vkBeginCommandBuffer(cmdBuffer, &cmdBufferBeginInfo));
}
void CommandBuffer::endRecord()
{
VK_CHECK_RESULT(vkEndCommandBuffer(cmdBuffer));
}
CommandBuffer::~CommandBuffer()
{
CV_Assert(cmdPool);
if (needRelease)
{
vkFreeCommandBuffers(kDevice, cmdPool->get(), 1, &cmdBuffer);
}
else
{
cmdPool->bufferQueue.push(cmdBuffer);
}
}
// *********************** CommandPool ********************
Ptr<CommandPool> CommandPool::create(const VkQueue &q, uint32_t _queueFamilyIndex)
{
cv::AutoLock lock(kContextMtx);
Ptr<CommandPool> cmdPoolInstance = Ptr<CommandPool>(new CommandPool(q, _queueFamilyIndex));
return cmdPoolInstance;
}
CommandPool::CommandPool(const VkQueue& q, uint32_t _queueFamilyIndex) : queue(q), cmdPool(VK_NULL_HANDLE), queueFamilyIndex(_queueFamilyIndex)
{
cv::AutoLock lock(kContextMtx);
VkCommandPoolCreateInfo cmdPoolCreateInfo{
/* .sType = */ VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO,
/* .pNext = */ nullptr,
/* .flags = */ VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT,
/* .queueFamilyIndex = */ queueFamilyIndex,
};
vkCreateCommandPool(kDevice, &cmdPoolCreateInfo, nullptr, &cmdPool);
}
void CommandPool::reset()
{
// reset all bufferQueue.
while (!bufferQueue.empty())
{
auto cmdBuffer = bufferQueue.front();
bufferQueue.pop();
vkFreeCommandBuffers(kDevice, cmdPool, 1, &cmdBuffer);
}
}
CommandPool::~CommandPool()
{
while (!bufferQueue.empty())
{
auto cmdBuffer = bufferQueue.front();
bufferQueue.pop();
vkFreeCommandBuffers(kDevice, cmdPool, 1, &cmdBuffer);
}
vkDestroyCommandPool(kDevice, cmdPool, nullptr);
}
Ptr<CommandBuffer> CommandPool::allocBuffer()
{
auto cmdBuffer = Ptr<CommandBuffer>(new CommandBuffer(this));
cmdBuffer->needRelease = false;
return cmdBuffer;
}
void CommandPool::submitAndWait(VkCommandBuffer& _buffer) const
{
auto buffer = _buffer;
Fence fence = Fence();
VkFence fenceVk = fence.get();
VkSubmitInfo submit_info = {
/* .sType = */ VK_STRUCTURE_TYPE_SUBMIT_INFO,
/* .pNext = */ nullptr,
/* .waitSemaphoreCount = */ 0,
/* .pWaitSemaphores = */ nullptr,
/* .pWaitDstStageMask = */ nullptr,
/* .commandBufferCount = */ 1,
/* .pCommandBuffers = */ &buffer,
/* .signalSemaphoreCount = */ 0,
/* .pSignalSemaphores = */ nullptr};
// need the queue class.
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submit_info, fenceVk));
VK_CHECK_RESULT(fence.wait());
}
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom

View File

@ -1,87 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_COMMON_HPP
#define OPENCV_DNN_VKCOM_COMMON_HPP
#include <math.h>
#include <string.h>
#include <map>
#include <mutex>
#include <thread>
#include <vector>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <memory>
#ifdef HAVE_VULKAN
#include <vulkan/vulkan.h>
#endif
#include "opencv2/core/utils/logger.hpp"
#include "../vulkan/vk_functions.hpp"
#include "../include/vkcom.hpp"
#include "../shader/spv_shader.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
extern VkPhysicalDevice kPhysicalDevice;
extern VkDevice kDevice;
extern VkQueue kQueue;
extern VkCommandPool kCmdPool;
extern cv::Mutex kContextMtx;
enum ShapeIdx
{
kShapeIdxBatch = 0,
kShapeIdxChannel,
kShapeIdxHeight,
kShapeIdxWidth,
};
#define VK_CHECK_RESULT(f) \
{ \
if (f != VK_SUCCESS) \
{ \
CV_LOG_ERROR(NULL, "Vulkan check failed, result = " << (int)f); \
CV_Error(Error::StsError, "Vulkan check failed"); \
} \
}
#define VKCOM_CHECK_BOOL_RET_VAL(val, ret) \
{ \
bool res = (val); \
if (!res) \
{ \
CV_LOG_WARNING(NULL, "Check bool failed"); \
return ret; \
} \
}
#define VKCOM_CHECK_POINTER_RET_VOID(p) \
{ \
if (NULL == (p)) \
{ \
CV_LOG_WARNING(NULL, "Check pointer failed"); \
return; \
} \
}
#define VKCOM_CHECK_POINTER_RET_VAL(p, val) \
{ \
if (NULL == (p)) \
{ \
CV_LOG_WARNING(NULL, "Check pointer failed"); \
return (val); \
} \
}
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_COMMON_HPP

File diff suppressed because it is too large Load Diff

View File

@ -1,28 +0,0 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018, Intel Corporation, all rights reserved.
// Third party copyrights are property of their respective owners.
#ifndef OPENCV_DNN_VKCOM_CONTEXT_HPP
#define OPENCV_DNN_VKCOM_CONTEXT_HPP
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
class Context
{
public:
Context();
~Context();
};
void createContext();
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom
#endif // OPENCV_DNN_VKCOM_CONTEXT_HPP

View File

@ -0,0 +1,49 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "../../precomp.hpp"
#include "internal.hpp"
#include "../include/fence.hpp"
namespace cv { namespace dnn { namespace vkcom {
#ifdef HAVE_VULKAN
Fence::Fence()
{
VkFenceCreateInfo fci{
/* .sType = */ VK_STRUCTURE_TYPE_FENCE_CREATE_INFO,
/* .pNext = */ nullptr,
/* .flags = */ 0,
};
vkCreateFence(kDevice, &fci, nullptr, &fence);
}
VkFence Fence::get() const
{
return fence;
}
VkResult Fence::reset() const
{
return vkResetFences(kDevice, 1, &fence);
}
VkResult Fence::wait() const
{
auto status = VK_TIMEOUT;
do {
status = vkWaitForFences(kDevice, 1, &fence, VK_TRUE, 5000000000);
} while (status == VK_TIMEOUT);
return status;
}
Fence::~Fence()
{
vkDestroyFence(kDevice, fence, nullptr);
}
#endif // HAVE_VULKAN
}}} // namespace cv::dnn::vkcom

Some files were not shown because too many files have changed in this diff Show More