Skip to content

Commit 99a0d9a

Browse files
shunting314meta-codesync[bot]
authored andcommitted
log why fail to gen golden ref (#170843)
Summary: Sometimes when doing accuracy test with a large batch size, it fail due to the golden ref can not be generated. It would be helpful to log why we fail to generate the golden ref. In my case, it's due to OOM. X-link: pytorch/pytorch#170843 Approved by: https://github.com/malfet, https://github.com/Skylion007 Reviewed By: seemethere Differential Revision: D89589478 fbshipit-source-id: eba3f6611c105c4913b097ff704c697497b316c7
1 parent 1d96372 commit 99a0d9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

userbenchmark/dynamo/dynamobench/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,7 @@ def record_status(accuracy_status, dynamo_start_stats):
22162216
log.warning(
22172217
"fp64 golden ref were not generated for %s. Setting accuracy check to cosine",
22182218
name,
2219+
exc_info=True,
22192220
)
22202221
self.args.cosine = True
22212222
fp64_outputs = None

0 commit comments

Comments
 (0)