TF可初始化的Variable如何实现
Created by: drhades
TF的Variable可以在创建时直接初始化,如
tf.Variable(alpha * tf.random_normal([32]))
paddlepaddle如何实现,下面代码是否OK:
bcVar = fluid.layers.create_parameter([32], dtype='float32')
rdTmp = alpha * fluid.layers.gaussian_random([32], dtype='float32')
fluid.layers.assign(rdTmp, bcVar)