WandbCallback 中的 "save_graph" 关键字是什么意思?

What does "save_graph" keyword in WandbCallback mean?

我正在使用权重和偏差来跟踪我的深度学习模型。为了监控我在 .fit 中使用 WandbCallback 的所有内容。 在 WandbCallback documentation 中有关键字 save_graph,默认为 True。描述非常简短,我想知道保存的图表是什么以及它的用途是什么?保存图形是一项代价高昂的操作吗?为什么需要它? (比如它是否补充了其他东西,比如保存最好的模型?)

就是用来创建日志的wandb.Graph of the model. This class is typically used for saving and diplaying neural net models. It represents the graph as an array of nodes and edges. The nodes can have labels that can be visualized by wandb. Here's an example of the graph that it produces: https://wandb.ai/l2k2/keras-examples/runs/ieqy2e9h/model

这是在回调中执行此操作的代码。 https://github.com/wandb/client/blob/1609f82c84e2244ed8fe62c746099d2094bd746a/wandb/integration/keras/keras.py#L552