RELNOTES: This allows the use of '.' in variables (e.g. "hparams.parse('a.b=1.0'...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 11 May 2018 18:04:33 +0000 (11:04 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 11 May 2018 18:10:59 +0000 (11:10 -0700)
commit1d6973d68b5d617e3a2dbf935643d0c0e4dcdac5
tree57a4bdf181f42b8cd0bb4f4394bcf00740e4ab91
parente1562e72c197ec830547a051ddfe0f720acb9f67
RELNOTES: This allows the use of '.' in variables (e.g. "hparams.parse('a.b=1.0')"), which would previously raise an error. This will correspond to an attribute name with an embedded '.' symbol (e.g. 'a.b'), which can only be accessed indirectly (e.g. through getattr and setattr).  To set this up the user will first need to explicitly add the variable to the hparam object (e.g. "hparams.add_hparam(name='a.b', value=0.0)").

NOTE: the use of '.' in variable names is now allowed, but it is not recommended.
PiperOrigin-RevId: 196278660
tensorflow/contrib/training/python/training/hparam.py
tensorflow/contrib/training/python/training/hparam_test.py