pub struct SummaryWriter<W> { /* private fields */ }
Expand description
TensorBoard summary writer.
Implementations§
Source§impl SummaryWriter<BufWriter<File>>
impl SummaryWriter<BufWriter<File>>
Sourcepub fn from_prefix(path: impl Into<PathBuf>) -> Result<Self>
pub fn from_prefix(path: impl Into<PathBuf>) -> Result<Self>
Construct a writer from a path prefix.
For instance, a path such as tensorboard/bert/opt
will create
the directory tensorboard/bert
if it does not exist. Within that
directory, it will write to the file
opt.out.tfevents.<timestamp>.<hostname>
.
Auto Trait Implementations§
impl<W> Freeze for SummaryWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for SummaryWriter<W>where
W: RefUnwindSafe,
impl<W> Send for SummaryWriter<W>where
W: Send,
impl<W> Sync for SummaryWriter<W>where
W: Sync,
impl<W> Unpin for SummaryWriter<W>where
W: Unpin,
impl<W> UnwindSafe for SummaryWriter<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more