# skipLayerNormPlugin
**Table Of Contents**
- [Description](#description)
* [Structure](#structure)
- [Parameters](#parameters)
- [Additional resources](#additional-resources)
- [License](#license)
- [Changelog](#changelog)
- [Known issues](#known-issues)
## Description
Adds a residual tensor, applies layer normalization, i.e., transforms the mean and standard deviation to beta and gamma respectively.
Optionally can adds a bias vector before layer-normalization.
### Structure
The `skipLayerNormPlugin` takes two inputs; `input` and `skip`.
`input`
input is a tensor with shape `[S, B, E]` where `B` is the batch size and `E` is the hidden size.
`skip`
skip is a tensor with shape `[S, B, E]` where `B` is the batch size and `E` is the hidden size.
The purpose of this input is to introduce skip (aka. residual) connections to previously computed tensors.
The `skipLayerNormPlugin` generates the following output:
`output`
output is a tensor with shape `[S, B, E]` where `B` is the batch size.
## Parameters
`skipLayerNormPlugin` has plugin creator class `SkipLayerNormPluginDynamicCreator` and plugin class `CustomSkipLayerNormPluginDynamic`.
The parameters are defined below and consists of the following attributes:
| Type | Parameter | Version | Description
|----------|-----------------------------------------|------------|-------------------------------------------------------------------
|`int` |`type_id` | 1, 2 |Integer encoding the DataType (0: FP32, 1: FP16, 2: INT8)
|`int` |`ld` | 1 |The leading dimension of the input tensor, corresponding to the hidden size, denoted by `E` above.
|`Weights` |`beta` | 1, 2, 3 |The mean to normalize to. Shape: `[1, 1, E]`
|`Weights` |`gamma` | 1, 2, 3 |The standard deviation to normalize to. Shape: `[1, 1, E]`
|`Weights` |`bias` | 1, 2 |An optional bias vector to add before normalization. Shape: `[1, 1, E]`
## Additional resources
- [LayerNorm](https://arxiv.org/abs/1607.06450)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
TensorRT-Plugin实现之SkipLayerNormPlugin算子实现_cuda_TRT8.zip (63个子文件)
TensorRT-Plugin实现之SkipLayerNormPlugin算子实现_cuda_TRT8
skipLayerNormPlugin
skipLayerNormPlugin.cpp 35KB
skipLayerNormInt8InterleavedKernelHFace.cu 12KB
skipLayerNormInt8InterleavedKernelMTron.cu 14KB
skipLayerNormInt8InterleavedPlugin.cpp 18KB
skipLayerNormKernel.cu 10KB
skipLayerNormPlugin.h 8KB
skipLayerNormInt8InterleavedPlugin.h 7KB
README.md 2KB
CustomSkipLayerNormPluginDynamic_PluginConfig.yaml 3KB
common
bboxUtils.h 2KB
serialize.hpp 4KB
templates.h 2KB
CMakeLists.txt 969B
cudaDriverWrapper.h 4KB
plugin.cpp 1KB
vfcCommon.h 1KB
dimsHelpers.h 2KB
mrcnn_config.h 5KB
nmsUtils.h 1KB
cudaDriverWrapper.cpp 5KB
checkMacrosPlugin.cpp 5KB
nmsHelper.cpp 2KB
plugin.h 11KB
common.cuh 13KB
kernels
proposalKernel.cu 25KB
extractFgScores.cu 3KB
CMakeLists.txt 943B
maskRCNNKernels.cu 116KB
saturate.h 1KB
pillarScatterKernels.cu 4KB
kernel.h 15KB
voxelGeneratorKernels.cu 17KB
roiPooling.cu 14KB
detectionForward.cu 8KB
regionForward.cu 5KB
sortScoresPerImage.cu 5KB
decodeBbox3DKernels.cu 7KB
maskRCNNKernels.h 10KB
proposalsForward.cu 6KB
normalizeLayer.cu 10KB
reducedMathPlugin.h 3KB
sortScoresPerClass.cu 11KB
decodeBBoxes.cu 15KB
bboxDeltas2Proposals.cu 11KB
gatherTopDetections.cu 8KB
gridAnchorLayer.cu 5KB
rproiInferenceFused.cu 4KB
generateAnchors.cu 4KB
kernel.cpp 2KB
reorgForward.cu 4KB
allClassNMS.cu 15KB
nmsLayer.cu 16KB
priorBoxLayer.cu 8KB
lReLU.cu 2KB
cropAndResizeKernel.cu 5KB
common.cu 5KB
permuteData.cu 4KB
checkMacrosPlugin.h 15KB
bertCommon.h 17KB
cub_helper.h 1KB
reducedMathPlugin.cpp 3KB
vfcCommon.cpp 2KB
half.h 1KB
共 63 条
- 1
资源评论
极智视界
- 粉丝: 2w+
- 资源: 1600
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- AutoHotKey 2.0中文帮助文件
- 基于Docker-compose的Elasticsearch集群每个节点均是独立docker-compose配置而成源码.zip
- 目标检测-零售食品LOGO检测数据集-40000张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本
- 目标检测-零售食品LOGO检测数据集-30000张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本
- 目标检测-零售食品LOGO检测数据集-20000张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本
- 目标检测-零售食品LOGO检测数据集-10000张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本
- 基于GUI+MYSQL+JAVA图书管理系统文档说明+源码(高分大作业项目).zip
- 基于Qt使用C++实现图书管理系统源码+数据库(95分以上).zip
- 基于GUI+MYSQL+JAVA票务管理系统文档介绍+源码+数据库(高分大作业).zip
- Java项目-购物网站系统(java+Servlet+JSP+Mysql)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功