Tensorflow给tensor增加高斯白噪声
2019-10-12 本文已影响0人
LoveSkye
def gaussian_noise(input,std):
noise= tf.random_normal(shape=tf.shape(input),mean=0.0,stddev=std,dtype=tf.float32)
return input + noise
def gaussian_noise(input,std):
noise= tf.random_normal(shape=tf.shape(input),mean=0.0,stddev=std,dtype=tf.float32)
return input + noise