Skip to content

Commit

Permalink
Change the order of comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Nov 20, 2024
1 parent fff4458 commit b6cac56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorboard/SummaryWriter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit b6cac56

Please sign in to comment.