Variables多种表达

Variables:TF基础数据之一,常用于变量的训练。。。重要性刚学TF就知道了

1.tf.Variable() 

tf.Variable(initial_value=None, trainable=True, collections=None, validate_shape=True, caching_device=None, name=None, variable_def=None, dtype=None, expected_shape=None, import_scope=None)

  这种方法是最基本最简单的创建方式

tf.get_variable()

猜你喜欢

转载自www.cnblogs.com/wjy-lulu/p/9036089.html