【发布时间】:2021-01-19 15:24:58
【问题描述】:
我收到了这条消息:
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
如何在 TensorFlow 2.3 中做到这一点?
在过去的几天里,这被证明是一个令人惊讶的令人沮丧的问题。似乎没有关于如何在 TF2 中执行此操作的有效示例。
【问题讨论】:
-
@rvinas 我很遗憾目前无法测试它,但我记得看过那个链接。它没有为我解决问题。 Iirc 因为它是针对 TF1 的,并且不兼容或转换为 TF2。很想被证明是错误的。
-
有关于这个问题的消息吗?使用 tf1.compat 时,我仍然使用
TypeError: Invalid keyword argument(s) in 'compile': {'run_metadata', 'options'},我不知道如何处理其他建议的答案...