mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[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:
committed by
PyTorch MergeBot
parent
d869ea11e0
commit
c4d1ff02f8
@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user