Skip to content

Commit c08a2a8

Browse files
htyufacebook-github-bot
authored andcommitted
Fix a missing attribute issue with FP8 rowwise gemm (#52)
Summary: Pull Request resolved: #52 Reviewed By: xuzhao9 Differential Revision: D65950130 Pulled By: htyu fbshipit-source-id: 43ba93eab73cd05a55ce05d5c605de23d688c73f
1 parent f48ad1e commit c08a2a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tritonbench/operators/fp8_gemm_rowwise/operator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(
117117
super().__init__(tb_args, extra_args)
118118
self.use_cuda_graphs = True
119119
addmm_args = parse_args(self.extra_args)
120-
if tb_args.production_shapes:
120+
if hasattr(tb_args, "production_shapes") and tb_args.production_shapes:
121121
self.shapes = get_production_shapes(self.name, "fp8_gemm")
122122
elif addmm_args.m and addmm_args.n and addmm_args.k:
123123
self.shapes = [(addmm_args.m, addmm_args.n, addmm_args.k)]

0 commit comments

Comments
 (0)