#NEWLINE# def init_conv_w( shape ) : #NEWLINE# #INDENT# "\n    Initialize convolution layer's weights like torch's linear default\n    behaviour, called by _init_conv_weights\n    For more infos:\n    https://github.com/NVIDIA/DIGITS/blob/master/examples/weight-init/READ    ME.md\n    https://github.com/torch/nn/blob/master/SpatialConvolution.lua#L31\n    " #NEWLINE# input_n = np . prod ( shape [ 1 : ] ) #NEWLINE# std = ( 1.0 / np . sqrt ( input_n ) ) #NEWLINE# return np . random . normal ( 0 , std , shape )