#NEWLINE# def init_affine_wb_th( shape ) : #NEWLINE# #INDENT# "\n    Initialize affine layer's weights and biases like torch's linear     default behaviour, called by _init_affine_weights\n    For more infos: https://github.com/torch/nn/blob/master/Linear.lua\n    " #NEWLINE# std = ( 1.0 / np . sqrt ( shape [ 0 ] ) ) #NEWLINE# w = np . random . uniform ( ( - std ) , std , shape ) #NEWLINE# b = np . random . uniform ( ( - std ) , std , shape [ 1 ] ) #NEWLINE# return ( w , b )