From b6cac56de5ac90cd90184c253819d5c64ec8179b Mon Sep 17 00:00:00 2001 From: Liu Liu Date: Wed, 20 Nov 2024 00:15:22 -0500 Subject: [PATCH] Change the order of comment. --- tensorboard/SummaryWriter.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorboard/SummaryWriter.swift b/tensorboard/SummaryWriter.swift index 27b501ac6e..0ad35ee45e 100644 --- a/tensorboard/SummaryWriter.swift +++ b/tensorboard/SummaryWriter.swift @@ -16,8 +16,8 @@ public struct SummaryWriter { /// Creates an instance with log located at `logDirectory`. public init(logDirectory: String, comment: String = "") { - // Properly construct the folder name. It should be runs/currentdatetimecomment/ - self.logDirectory = logDirectory + "/runs/\(Self.dateFormatter.string(from: Date()))\(comment)" + // Properly construct the folder name. It should be runs/commentcurrentdatetime/ + self.logDirectory = logDirectory + "/runs/\(comment)\(Self.dateFormatter.string(from: Date()))" eventLogger = try! EventLogger(logDirectory: self.logDirectory) }