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
相關文章
相關標籤/搜索