tensorboard-proto

Crates.iotensorboard-proto
lib.rstensorboard-proto
version0.5.7
sourcesrc
created_at2022-03-07 07:10:42.623695
updated_at2022-03-12 03:49:32.116649
descriptionprotobuf in tensorboard
homepagehttps://github.com/pipehappy1/auto-diff
repositoryhttps://github.com/pipehappy1/auto-diff
max_upload_size
id544869
size812,459
(pipehappy1)

documentation

https://docs.rs/tensorboard-rs

README

Write to tensorboard in Rust

Write TensorBoard events in Rust.

  • Can write scalar, image, histogram.

Example

  • Write multiple scalar in one plot.
	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();
Commit count: 562

cargo fmt