/usr/local/lib64/python3.6/site-packages/caffe2/python/layers/__pycache__
NameSizeModeActions
adaptive_weight.cpython-36.pyc52870644editdlrm
add_bias.cpython-36.pyc14790644editdlrm
arc_cosine_feature_map.cpython-36.pyc54270644editdlrm
batch_huber_loss.cpython-36.pyc23280644editdlrm
batch_lr_loss.cpython-36.pyc55650644editdlrm
batch_mse_loss.cpython-36.pyc18390644editdlrm
batch_normalization.cpython-36.pyc27790644editdlrm
batch_sigmoid_cross_entropy_loss.cpython-36.pyc15420644editdlrm
batch_softmax_loss.cpython-36.pyc28770644editdlrm
blob_weighted_sum.cpython-36.pyc24200644editdlrm
bpr_loss.cpython-36.pyc14050644editdlrm
bucket_weighted.cpython-36.pyc20790644editdlrm
build_index.cpython-36.pyc20680644editdlrm
concat.cpython-36.pyc40630644editdlrm
constant_weight.cpython-36.pyc16870644editdlrm
conv.cpython-36.pyc32440644editdlrm
dropout.cpython-36.pyc17270644editdlrm
fc.cpython-36.pyc61590644editdlrm
fc_without_bias.cpython-36.pyc18910644editdlrm
fc_with_bootstrap.cpython-36.pyc86530644editdlrm
feature_sparse_to_dense.cpython-36.pyc45710644editdlrm
functional.cpython-36.pyc29350644editdlrm
gather_record.cpython-36.pyc28860644editdlrm
homotopy_weight.cpython-36.pyc31370644editdlrm
label_smooth.cpython-36.pyc26460644editdlrm
last_n_window_collector.cpython-36.pyc17790644editdlrm
layers.cpython-36.pyc137220644editdlrm
layer_normalization.cpython-36.pyc31280644editdlrm
margin_rank_loss.cpython-36.pyc18080644editdlrm
merge_id_lists.cpython-36.pyc19840644editdlrm
pairwise_similarity.cpython-36.pyc23650644editdlrm
position_weighted.cpython-36.pyc19850644editdlrm
random_fourier_features.cpython-36.pyc25500644editdlrm
reservoir_sampling.cpython-36.pyc20150644editdlrm
sampling_train.cpython-36.pyc20730644editdlrm
sampling_trainable_mixin.cpython-36.pyc18730644editdlrm
select_record_by_context.cpython-36.pyc25680644editdlrm
semi_random_features.cpython-36.pyc45570644editdlrm
sparse_dropout_with_replacement.cpython-36.pyc23790644editdlrm
sparse_feature_hash.cpython-36.pyc28900644editdlrm
sparse_itemwise_dropout_with_replacement.cpython-36.pyc24470644editdlrm
sparse_lookup.cpython-36.pyc125140644editdlrm
split.cpython-36.pyc19240644editdlrm
tags.cpython-36.pyc27840644editdlrm
uniform_sampling.cpython-36.pyc21020644editdlrm
__init__.cpython-36.pyc10480644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/caffe2/python/layers/__pycache__/conv.cpython-36.pyc (3244B)
3 Eg@s4ddlmZddlmZddlZGdddeZdS))schema) ModelLayerNc s*eZdZdZd fdd ZddZZS) Conva Convolutional layer Input: - input_record: at least has the shape info of C (num_channels) - output_dim: number of convolutional filters - kernel_h, kernel_w: kernel size for h and w - stride_h, stride_w: stride for h and w - pad_b, pad_l, pad_r, pad_t: padding sizes, if stride == 1, 'None' value will do auto padding - order: either 'NHWC' or 'NCHW' NNHWCconvc stt|j|||f|t|tjs,td|jj}|dkrHt|t sPtd|dkrbt|t sjtd||_ ||_ |dkrt|t std|dkrt|t std||_ ||_ |dkr| dkrt |ddn| } |dkrt |ddn|}n$| dkrdn| } |dkrdn|}|dkrd| dkr@t |ddn| } | dkr^t |ddn| } n$| dkrrdn| } | dkrdn| } | dkrt| t std |dkrt|t std | dkrt| t std | dkrt| t std | |_||_| |_| |_| dks*td| |_| d krP|d}||||g}n| dkrn|d}||||g}|dkstd| r| ndif} |r|n dddif}|jd|| |d|_|jd|g||d|_tjtj|ff|jd|_dS)NzIncorrect input typerz#kernel_h should be positive integerz#kernel_w should be positive integerz#stride_h should be positive integerz#stride_w should be positive integerzpad_t should be int >= 0zpad_b should be int >= 0zpad_r should be int >= 0zpad_l should be int >= 0rNCHWz$order should either 'NHWC' or 'NCHW'z>Number of input channels in conv parameters should be positiveZ XavierFillZ ConstantFillvaluegZ conv_kernel) param_nameshape initializerZ optimizerZ conv_biasoutput)rr )superr__init__ isinstancerZScalarAssertionErrorZ field_typer intkernel_hkernel_wstride_hstride_wpad_tpad_bpad_rpad_lorderZ create_paramkernelbiasnpZfloat32Zget_next_blob_reference output_schema)selfmodel input_recordZ output_dimrrrrrrrrrZ kernel_initZ bias_initZ kernel_optimZ bias_optimnamekwargsZ input_dimsZinput_cZ kernel_shape) __class__E/usr/local/lib64/python3.6/site-packages/caffe2/python/layers/conv.pyrsx             z Conv.__init__c CsN|j|jj|j|jg|jj|j|j|j|j |j |j |j |j |jd dS)N) rrrrrrrrr)rr$Z field_blobsrrr!rrrrrrrrr)r"netr(r(r)add_opszsz Conv.add_ops) NNNNrNNNNr)__name__ __module__ __qualname____doc__rr+ __classcell__r(r()r'r)rs  Zr)Z caffe2.pythonrZcaffe2.python.layers.layersrZnumpyr rr(r(r(r)s