add visualdl doc
@@ -82,6 +82,13 @@ def error(fmt, *args):
def scaler(name, value, step, writer):
+ """
+ This function will draw a scalar curve generated by the visualdl.
+ Usage: Install visualdl: pip3 install visualdl==2.0.0b4
+ and then:
+ visualdl --logdir ./scalar --host 0.0.0.0 --port 8830
+ to preview loss corve in real time.
+ """
writer.add_scalar(name, value, step)
