(s='%Y%m%d.%H%M%S', ts=None)
| 28 | return os.path.expanduser(os.path.expandvars(path)) |
| 29 | |
| 30 | def timestamp(s='%Y%m%d.%H%M%S', ts=None): |
| 31 | if not ts: ts = time.time() |
| 32 | st = datetime.datetime.fromtimestamp(ts).strftime(s) |
| 33 | return st |
| 34 | |
| 35 | def show_all_variables(): |
| 36 | model_vars = tf.trainable_variables() |