module 'tensorflow._api.v1.train' has no attribute 'SummaryWriter'及网页内容无显示

1、方法不对 writer = tf.train.SummaryWriter('log/', sess.graph) 修改成:html writer = tf.summary.FileWriter('logs/', sess.graph) 2、运行命令 tensorboard --logdir='logs/' 后可以正常打开网页但没有显示内容api 将路径改成绝对路径ui   参考:【1】Attr
相关文章
相关标签/搜索