Crates.io | tensorboard-rs |
lib.rs | tensorboard-rs |
version | 0.5.9 |
source | src |
created_at | 2020-05-24 12:55:25.426449 |
updated_at | 2022-03-28 14:06:50.922604 |
description | Write data for Tensorboard from Rust. |
homepage | https://github.com/pipehappy1/auto-diff |
repository | https://github.com/pipehappy1/auto-diff |
max_upload_size | |
id | 245210 |
size | 43,952 |
Write TensorBoard events in Rust.
scalar
, image
, histogram
. let mut writer = SummaryWriter::new(&("./logdir".to_string()));
for n_iter in 0..100 {
let mut map = HashMap::new();
map.insert("x1".to_string(), (n_iter as f32));
map.insert("x^2".to_string(), (n_iter as f32) * (n_iter as f32));
writer.add_scalars("data/scalar_group", &map, n_iter);
}
writer.flush();