[Reland][7/N] Fix Wextra-semi warning (#140342)

Reland of #140225 to fix a change in FBCODE_CAFFE2

Pull Request resolved: https://github.com/pytorch/pytorch/pull/140342
Approved by: https://github.com/kit1980
This commit is contained in:
cyy
2024-11-12 18:55:29 +00:00
committed by PyTorch MergeBot
parent e4195f8060
commit 7624d625c0
27 changed files with 469 additions and 470 deletions

View File

@ -460,7 +460,7 @@ def gen_dispatcher_registrations(
"""\
TORCH_LIBRARY_IMPL(aten, $dispatch_key, m) {
$dispatch_registrations_body
};"""
}"""
)
static_init_dispatch_registrations = static_template.substitute(
dispatch_key=dispatch_key,