Tensorboard可以将模型训练的过程中的各种汇总数据展示出来,包括标量(Scalars)、图片(image)、音频(Audio)、计算图(Graphs)、数据分布(Distributions)、直方图(Histograms)和嵌入向量(Embeddings)。 from __future__ import absolute_importfrom __future__ import div
from torch.utils.tensorboard import SummaryWriter# writer的使用# 创建实例writer = SummaryWriter("logs")# 存储位置在logs# 使用如下的两种方法# writer.add_image()# 标量for i in range(100):writer.add_scalar("y = x", i, i)
问题描述: ERROR: tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 39.2.0 which is incompatible. 问题原因: setuptools 版本太低 解决方法:升级setuptools版本 pip install --upgrade set
#coding:utf-8'''a liner regression by tenosrflow.input dimension: 1, output dimension: 1.显示每个epoch的loss保存模型图,使用tensorboard'''import tensorflow as tfimport numpy as npimport matplotlib.pyplot a
mnist_with_summaries.py如下: # Copyright 2015 Google Inc. All Rights Reserved.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance