美国高通 Snapdragon Neural Processing Engine SDK (SNPE) 系列 (2):支持的网络层

Layer TypeDescriptionCaffe EquivalentTensorFlow EquivalentCPUGPUDSP
Batch normalization (+ Scaling)Batch normalization followed by scaling operation. Batch norm operation can be performed by itself or in combination with scaling.Maps to the combination of batch_norm_layer followed immediately by scale_layer.
batch_norm_layer.cpp
scale_layer.cpp
batch_normalization
Color space conversionConverts input image color format (encoding type) into SNPE native color space. Color space conversion parameters are provided as an option to the model converter tool.There is no such Caffe layer by itself. This functionality is technically part of the Caffe data provider.
data_layer.cpp
n/a
ConcatenationThis layer concatenates multiple inputs into a single output.concat_layer.cppconcat
ConvolutionComputes dot products between the entries of the filter and the input at any position.conv_layer.cppconv2d
CropCrops one layer to the dimensions of a reference layer.crop_layer.cpp 
CrossMap Response NormalizationThis is an option within LRN layer.lrn_layer.cpp 
DeconvolutionPerforms deconvolution operation.deconv_layer.cppconv2d_transpose
DropoutLayer is used for training only. Converters remove this layer from DLC creation.dropout_layer.cppdropoutn/an/an/a
ElementwiseSupports SUM, PROD, and MAX mode with coefficients.eltwise_layer.cppadd
mul
maximum
FlattenFlatten an input to a layerflatten_layer.cppn/a
Fully connectedSimilar to convolution, but with connections to full input region, i.e., with filter size being exactly the size of the input volume.inner_product_layer.cppdense
InputThis is an input layer to the network.input_layer.cppinput
Local Response Normalization (LRN)Performs a lateral inhibition by normalizing over local input regions.lrn_layer.cpp 
Mean SubtractionPerforms image mean subtraction on the input.mean subtractionn/a
OutputThere is no explicit output layer as the results from any layer in the network can be specified as an output when loading a network.n/an/an/an/an/a
PoolingPooling operation down samples the input volume spatially. Both average and max pooling are supported.pooling_layer.cppaverage_pooling2d
max_pooling2d
Preluactivation function: prelu [ i.e., y = max(0, x) + a*min(0,x) ]prelu_layer.cppPReLU
Reluactivation function: relu [ i.e., y = max(0,x) ]relu_layer.cpprelu
ReshapeChange dimensions of the input to a layerreshape_layer.cppreshape
Sigmoidactivation function: sigmoid [ i.e., y = 1/(1 + exp(-x) ]sigmoid_layer.cppsigmoid
Tanhactivation function: tanh [ i.e., y = tanh(x) ]tanh_layer.cpptanh
ScaleInput image scaling, maintains aspect ratio. This function is primarily intended for images, but technically any 2D input data can be processed if it makes sense. Scaling parameters are provided as an option to the model converter tool.There is no such Caffe layer by itself. This functionality is technically part of the Caffe data provider.
data_layer.cpp
n/a
SilenceSilence is handled and removed from the model during conversion, similar to Dropout.silence_layer.cpp n/an/an/a
SliceSlices an input layer into multiple output layers.slice_layer.cppsplit
SoftmaxSupports 1D and 2D modes.softmax_layer.cppsoftmax
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值