mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[AutoAccept][Codemod][FBSourceClangFormatLinter] Daily arc lint --take CLANGFORMAT
Reviewed By: zertosh Differential Revision: D34196056 fbshipit-source-id: c3abe952844d09f2754c16589bbfc76b8986b9ff (cherry picked from commit eedc480440f55538ba0204f6c593bfce084e60b7)
This commit is contained in:

committed by
PyTorch MergeBot
parent
c73cc92eff
commit
5a95ffbdc5
@ -116,8 +116,12 @@ struct SchemaParser {
|
||||
// overload with overload name as an empty string
|
||||
// and so shouldn't be used as an overload name
|
||||
// also disallow dunder attribute names to be overload names
|
||||
bool is_a_valid_overload_name = !((overload_name == "default") || (overload_name.rfind("__", 0) == 0));
|
||||
TORCH_CHECK(is_a_valid_overload_name, overload_name, " is not a legal overload name for aten operators");
|
||||
bool is_a_valid_overload_name =
|
||||
!((overload_name == "default") || (overload_name.rfind("__", 0) == 0));
|
||||
TORCH_CHECK(
|
||||
is_a_valid_overload_name,
|
||||
overload_name,
|
||||
" is not a legal overload name for aten operators");
|
||||
return {name, overload_name};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user