tensorboard
TensorBoard
¶
Bases: Trace
Output data for use in TensorBoard.
Note that if you plan to run a tensorboard server simultaneous to training, you may want to consider using the --reload_multifile=true flag until their multi-writer use case is finished: https://github.com/tensorflow/tensorboard/issues/1063
Parameters:
Name | Type | Description | Default |
---|---|---|---|
log_dir |
str
|
Path of the directory where the log files to be parsed by TensorBoard should be saved. |
'logs'
|
update_freq |
Union[None, int, str]
|
'batch', 'epoch', integer, or strings like '10s', '15e'. When using 'batch', writes the losses and metrics to TensorBoard after each batch. The same applies for 'epoch'. If using an integer, let's say 1000, the callback will write the metrics and losses to TensorBoard every 1000 samples. You can also use strings like '8s' to indicate every 8 steps or '5e' to indicate every 5 epochs. Note that writing too frequently to TensorBoard can slow down your training. You can use None to disable updating, but this will make the trace mostly useless. |
100
|
write_graph |
bool
|
Whether to visualize the graph in TensorBoard. The log file can become quite large when write_graph is set to True. |
True
|
write_images |
Union[None, str, List[str]]
|
If a string or list of strings is provided, the corresponding keys will be written to TensorBoard images. |
None
|
weight_histogram_freq |
Union[None, int, str]
|
Frequency (in epochs) at which to compute activation and weight histograms for the layers
of the model. Same argument format as |
None
|
paint_weights |
bool
|
If True the system will attempt to visualize model weights as an image. |
False
|
write_embeddings |
Union[None, str, List[str]]
|
If a string or list of strings is provided, the corresponding keys will be written to TensorBoard embeddings. |
None
|
embedding_labels |
Union[None, str, List[str]]
|
Keys corresponding to label information for the |
None
|
embedding_images |
Union[None, str, List[str]]
|
Keys corresponding to raw images to be associated with the |
None
|
Source code in fastestimator\fastestimator\trace\io\tensorboard.py
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
|