def variable_on_cpu(name, shape, initializer, trainable=True):
 var = tf.get_variable(name, shape, initializer=initializer, trainable=trainable)
 return var

def variable_on_cpu ( name , shape , initializer , trainable = True ) : var = tf . get_variable ( name , shape , initializer = initializer , trainable = trainable ) return var
helper to create a variable stored on cpu memory .