Skip to content

Commit

Permalink
Skip uploading benchmark records when there is no model name (#141145)
Browse files Browse the repository at this point in the history
Summary:
A small fix I just realize after pytorch/pytorch#141087.

X-link: pytorch/pytorch#141145
Approved by: https://github.com/malfet

Reviewed By: izaitsevfb

Differential Revision: D66262943

Pulled By: huydhn

fbshipit-source-id: 4ccec00d23bac753fbba3ad1a39de1569efd11f8
  • Loading branch information
huydhn authored and facebook-github-bot committed Nov 20, 2024
1 parent 7fcc8bc commit 598f5f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userbenchmark/dynamo/dynamobench/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ def output_json(filename, headers, row):
if header in ("dev", "name", "batch_size"):
continue

# Make sure that the record is valid
if not current_name:
continue

record = {
"benchmark": {
"name": "TorchInductor",
Expand Down

0 comments on commit 598f5f9

Please sign in to comment.