(_xlabel, _ylabel, _title, _legend)
| 221 | |
| 222 | |
| 223 | def create_vis_plot(_xlabel, _ylabel, _title, _legend): |
| 224 | return viz.line( |
| 225 | X=torch.zeros((1,)).cpu(), |
| 226 | Y=torch.zeros((1, 3)).cpu(), |
| 227 | opts=dict( |
| 228 | xlabel=_xlabel, |
| 229 | ylabel=_ylabel, |
| 230 | title=_title, |
| 231 | legend=_legend |
| 232 | ) |
| 233 | ) |
| 234 | |
| 235 | |
| 236 | def update_vis_plot(iteration, loc, conf, window1, window2, update_type, |