Some questions from 1.3.0 to 2.0.0b4
Created by: ShaneTian
I am using VisualDL 1.3.0
now. I mainly use the following functions:
-
LogWriter.mode
. such aswith logwriter.mode("train") as writer
- Define before record. such as:
loss_scalar = writer.scalar("loss") loss_scalar.add_record(step, cur_loss)
-
histogram
. such as:histogram1 = writer.histogram("Relation-BiLinear-W", 100) histogram1.add_record(step, relation_BL_w_value.flatten())
They all work well in VisualDL 1.3.0
.
But, when I update it to 2.0.0b4
, I found some errors respectively:
AttributeError: 'LogWriter' object has no attribute 'mode'
- You don't need to define before recording. Just
writer.add_scalar()
- There are only three ways to visualize.