diff options
author | Scott Zhu <scottzhu@google.com> | 2018-04-09 17:25:57 -0700 |
---|---|---|
committer | Scott Zhu <scottzhu@google.com> | 2018-04-09 17:25:57 -0700 |
commit | 7f2d9ad2dae2bd653820a8b4e3191d24ef5f1f12 (patch) | |
tree | 45badee3417d356b41f766eb81cb1c670d204cb3 /tensorflow/contrib/training | |
parent | 808d27bd5665a159ab1a1393897c215daecf2bcc (diff) | |
parent | 26e36ec2c9fb061e7349b2259bc69b2140d18819 (diff) |
Merge commit for internal changes
Diffstat (limited to 'tensorflow/contrib/training')
-rw-r--r-- | tensorflow/contrib/training/python/training/hparam.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tensorflow/contrib/training/python/training/hparam.py b/tensorflow/contrib/training/python/training/hparam.py index 95e051e3b5..185f70a86d 100644 --- a/tensorflow/contrib/training/python/training/hparam.py +++ b/tensorflow/contrib/training/python/training/hparam.py @@ -630,6 +630,9 @@ class HParams(object): def __str__(self): return str(sorted(self.values().items())) + def __repr__(self): + return '%s(%s)' % (type(self).__name__, self.__str__()) + @staticmethod def _get_kind_name(param_type, is_list): """Returns the field name given parameter type and is_list. |