3
Ðñß^_  ã               @   sÀ  d Z d ZddlmZmZmZmZmZmZm	Z	 ddl
mZ ddlmZmZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZmZ dd
lmZmZ ddlm Z  ddl!m"Z" ddl#m$Z$m%Z%m&Z&m'Z'm(Z( ddl)m*Z* ddl+m,Z, ddl-T ddl.m/Z/ ddl0m1Z1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8m9Z9 ddl:m;Z; ddl<m=Z= ddl>m?Z?m@Z@ ddlAmAZA ddlBmCZCmDZD ddlET ddlFmGZG ddlHmIZImJZJmKZKmLZLmMZM ddlNmOZOmPZP dS )é    é   )ÚTanhÚSigmoidÚReLUÚ	LeakyReLUÚELUÚSELUÚBatchNormELU)ÚAveragePooling)ÚBatchNormalizationÚBatchNormReLUÚBatchNormLeakyReLUÚMeanOnlyBNLeakyReLU)ÚClassificationTrainValidate)ÚConvolution)ÚDeconvolution)ÚDenseToSparse)ÚDropoutÚBatchwiseDropout)ÚFullConvolutionÚTransposeConvolution)ÚIdentity)Ú
InputBatch)Ú
InputLayerÚOutputLayerÚBLInputLayerÚBLOutputLayerÚInputLayerInput)Ú
MaxPooling)ÚMetadata)Ú*)ÚNetworkInNetwork)Ú#PermutohedralSubmanifoldConvolutionÚpermutohedral_basis)ÚRandomizedStrideConvolution)ÚRandomizedStrideMaxPooling)Ú
SequentialÚCheckpointedSequential)ÚSparseConvNetTensor)ÚSparseToDense)ÚSparsifyÚSparsifyFCS)Úspectral_norm)ÚSubmanifoldConvolutionÚValidConvolution)Ú	UnPooling)Úappend_tensorsÚ	AddCoordsÚadd_feature_planesÚconcatenate_feature_planesÚcompare_sparse)ÚShapeContextÚMultiscaleShapeContextN)QZforward_pass_multiplyAdd_countZforward_pass_hidden_statesZactivationsr   r   r   r   r   r   r	   ZaveragePoolingr
   ZbatchNormalizationr   r   r   r   ZclassificationTrainValidater   Úconvolutionr   Zdeconvolutionr   ZdenseToSparser   Údropoutr   r   ZfullConvolutionr   r   Úidentityr   Z
inputBatchr   ZioLayersr   r   r   r   r   Z
maxPoolingr   Úmetadatar   ZnetworkArchitecturesZnetworkInNetworkr!   Z#permutohedralSubmanifoldConvolutionr"   r#   ZrandomizedStrideConvolutionr$   ZrandomizedStrideMaxPoolingr%   Z
sequentialr&   r'   ZsparseConvNetTensorr(   ZsparseToDenser)   Zsparsifyr*   r+   r,   ZsubmanifoldConvolutionr-   r.   ZtablesZ	unPoolingr/   Úutilsr0   r1   r2   r3   r4   ZshapeContextr5   r6   © r<   r<   ú5/home/yuhw/wc/SparseConvNet/sparseconvnet/__init__.pyÚ<module>   s<   $