Skip to content

Commit 12f39ac

Browse files
committed
chore: apply linting
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent ec2e2bf commit 12f39ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/compiler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ torch::jit::Module CompileGraph(const torch::jit::Module& mod, CompileSpec cfg)
426426
auto outputIsCollection = conversion::OutputIsCollection(g->block());
427427
if (cfg.partition_info.enabled &&
428428
(cfg.lower_info.forced_fallback_modules.size() == 0 &&
429-
cfg.partition_info.forced_fallback_operators.size() == 0 && isBlockConvertible) && !outputIsCollection) {
429+
cfg.partition_info.forced_fallback_operators.size() == 0 && isBlockConvertible) &&
430+
!outputIsCollection) {
430431
LOG_INFO("Skipping partitioning since model is fully supported");
431432
}
432433

tests/core/conversion/converters/test_select.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ TEST(Converters, ScatterValueConvertsCorrectly) {
865865
%5 : NoneType = prim::Constant()
866866
%6 : bool = prim::Constant[value=0]()
867867
%7 : int = prim::Constant[value=4]()
868-
%index : Tensor = aten::to(%index.1, %7, %6, %6, %5)
868+
%index : Tensor = aten::to(%index.1, %7, %6, %6, %5)
869869
%10 : Tensor = aten::scatter(%data, %dim, %index, %value)
870870
return (%10))IR";
871871

@@ -900,7 +900,7 @@ TEST(Converters, ScatterSrcConvertsCorrectly) {
900900
%5 : NoneType = prim::Constant()
901901
%6 : bool = prim::Constant[value=0]()
902902
%7 : int = prim::Constant[value=4]()
903-
%index : Tensor = aten::to(%index.1, %7, %6, %6, %5)
903+
%index : Tensor = aten::to(%index.1, %7, %6, %6, %5)
904904
%10 : Tensor = aten::scatter(%data, %dim, %index, %src)
905905
return (%10))IR";
906906

0 commit comments

Comments
 (0)