if global_step is None:
global_step = 0
// clear pbtxt?
save_path = os.path.join(self.file_writer.get_logdir(), str(global_step).zfill(5))
try:
os.makedirs(save_path)
except OSError:
After Change
// clear pbtxt?
// Maybe we should encode the tag so slashes don"t trip us up?
// I don"t think this will mess us up, but better safe than sorry.
subdir = "%s-%s" % (self._encode(tag), str(global_step).zfill(5))
save_path = os.path.join(self.file_writer.get_logdir(), subdir)
try:
os.makedirs(save_path)
except OSError: