> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# クラス属性を wandb.Run.log() に渡すとどうなりますか？

クラス属性を `wandb.Run.log()` に渡すのは避けてください。ネットワーク call が実行される前に、属性が変更される可能性があります。メトリクスをクラス属性として保存する場合は、`wandb.Run.log()` の call 時点での属性の値とログされたメトリクスが一致するよう、ディープコピーを使用してください。

***

<Badge stroke shape="pill" color="orange" size="md">[Experiments](/ja/support/models/tags/experiments)</Badge>
