[Lint] Update clang-format to 19.1.4 (#153889)

All changes other than the one to `tools/linter/adapters/s3_init_config.json` are generated by newer clang-format
Pull Request resolved: https://github.com/pytorch/pytorch/pull/153889
Approved by: https://github.com/cyyever, https://github.com/atalman
This commit is contained in:
Nikita Shulga
2025-05-19 15:36:11 -07:00
committed by PyTorch MergeBot
parent d869ea11e0
commit c4d1ff02f8
59 changed files with 550 additions and 522 deletions

View File

@ -127,9 +127,7 @@ TEST_F(ModulesTest, Conv2dSameStrided) {
[&] { Conv2d model_invalid(options.stride(2)); }(),
"padding='same' is not supported for strided convolutions");
ASSERT_THROWS_WITH(
[&] {
Conv2d model_invalid(options.stride({1, 2}));
}(),
[&] { Conv2d model_invalid(options.stride({1, 2})); }(),
"padding='same' is not supported for strided convolutions");
}
@ -181,9 +179,7 @@ TEST_F(ModulesTest, Conv3dSameStrided) {
[&] { Conv3d model_invalid(options.stride(2)); }(),
"padding='same' is not supported for strided convolutions");
ASSERT_THROWS_WITH(
[&] {
Conv3d model_invalid(options.stride({1, 2, 1}));
}(),
[&] { Conv3d model_invalid(options.stride({1, 2, 1})); }(),
"padding='same' is not supported for strided convolutions");
}