You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: pytorch#35115
This commit runs the newly added tools/clang_format.py on the JIT
codebase and includes all of the formatting changes thus produced.
Testing:
Ran the script, CI.
Test Plan: Imported from OSS
Reviewed By: eellison
Differential Revision: D20568523
Pulled By: SplitInfinity
fbshipit-source-id: e09bdb982ccf090eecfb7c7b461b8d0681eef82b
// Registration time is okay, but throw exception when fetch from registration.
1183
+
// Registration time is okay, but throw exception when fetch from
1184
+
// registration.
1183
1185
expectThrows<c10::Error>(
1184
-
[&graph] {
1185
-
AliasDb aliasDb(graph);
1186
-
},
1186
+
[&graph] { AliasDb aliasDb(graph); },
1187
1187
"Tried to register operator foo::rand3(Tensor(a) arg1) -> (Tensor(b)) with aliasing information in the schema but without AliasAnalysisKind::FROM_SCHEMA");
// Registration time is okay, but throw exception when fetch from registration.
1202
+
// Registration time is okay, but throw exception when fetch from
1203
+
// registration.
1203
1204
expectThrows<c10::Error>(
1204
-
[&graph] {
1205
-
AliasDb aliasDb(graph);
1206
-
},
1205
+
[&graph] { AliasDb aliasDb(graph); },
1207
1206
"Tried to register operator foo::rand4(Tensor(a) arg1) -> (Tensor(a)) with aliasing information in the schema but without AliasAnalysisKind::FROM_SCHEMA");
// Registration time is okay, but throw exception when fetch from registration.
1310
+
// Registration time is okay, but throw exception when fetch from
1311
+
// registration.
1313
1312
expectThrows<c10::Error>(
1314
-
[&graph] {
1315
-
AliasDb aliasDb(graph);
1316
-
},
1313
+
[&graph] { AliasDb aliasDb(graph); },
1317
1314
"Tried to register operator foo::rand11(Tensor(a) arg1) -> (Tensor(a)) with aliasing information in the schema but without AliasAnalysisKind::FROM_SCHEMA");
1318
1315
}
1319
1316
{
1320
1317
auto registry = torch::RegisterOperators().op(
1321
1318
"foo::rand12(Tensor(a) arg1) -> Tensor(b)",
1322
1319
torch::RegisterOperators::options()
1323
-
.catchAllKernel(
1324
-
[](at::Tensor t) -> at::Tensor { return t * 2; })
1320
+
.catchAllKernel([](at::Tensor t) -> at::Tensor { return t * 2; })
// Registration time is okay, but throw exception when fetch from registration.
1327
+
// Registration time is okay, but throw exception when fetch from
1328
+
// registration.
1332
1329
expectThrows<c10::Error>(
1333
-
[&graph] {
1334
-
AliasDb aliasDb(graph);
1335
-
},
1330
+
[&graph] { AliasDb aliasDb(graph); },
1336
1331
"Tried to register operator foo::rand12(Tensor(a) arg1) -> (Tensor(b)) with aliasing information in the schema but without AliasAnalysisKind::FROM_SCHEMA");
0 commit comments