Skip to content

Commit

Permalink
[torch-mlir][test] cleanup trailing whitespace in mlir files (llvm#2806)
Browse files Browse the repository at this point in the history
  • Loading branch information
aartbik authored and zjgarvey committed Jan 29, 2024
1 parent 3d845cb commit ddd1263
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/Dialect/Torch/GlobalizeObjectGraph/submodules.mlir
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: torch-mlir-opt -torch-globalize-object-graph -split-input-file %s | FileCheck %s

// Check that linkage names consist of the dotted path from the root.
// Check that linkage names consist of the dotted path from the root.

// CHECK-LABEL: torch.global_slot.module_initializer {
// CHECK: %[[FLOAT:.*]] = torch.constant.float 4.200000e+01
Expand Down
2 changes: 1 addition & 1 deletion test/Dialect/Torch/canonicalize.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ func.func @torch.aten.floor$canonicalize(%arg0: !torch.vtensor<[?,?],si64>) -> !
}

// CHECK-LABEL: func.func @torch.aten.numel$canonicalize
// CHECK-SAME: %[[ARG:.*]]: !torch.vtensor<[3,4],f32>
// CHECK-SAME: %[[ARG:.*]]: !torch.vtensor<[3,4],f32>
// CHECK-NEXT: %int12 = torch.constant.int 12
// CHECK-NEXT: return %int12 : !torch.int
func.func @torch.aten.numel$canonicalize(%arg0: !torch.vtensor<[3,4],f32>) -> !torch.int {
Expand Down
2 changes: 1 addition & 1 deletion test/Dialect/Torch/match-quantized-customs-ops.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func.func @quantize_per_tensor(%arg0: !torch.vtensor<[1,3,8,8],f32>) -> !torch.v
%min = torch.constant.int -128
%max = torch.constant.int 127
%dtype = torch.constant.int 1

// CHECK-DAG: %[[SCALE:.+]] = torch.constant.float 5.000000e-01
// CHECK-DAG: %[[ZP:.+]] = torch.constant.int 17
// CHECK-DAG: %[[MIN:.+]] = torch.constant.int -128
Expand Down
2 changes: 1 addition & 1 deletion test/Dialect/Torch/simplify-shape-calculations.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func.func @abstractly_interpret_list_ops$mutation_in_child_region(%arg0: !torch.
// CHECK: } else {
// CHECK: torch.prim.If.yield %[[ARG1]] : !torch.list<int>
// CHECK: }
// .... and this one don't have the same object identity, but should!
// .... and this one don't have the same object identity, but should!
// CHECK: %[[VAL_8:.*]] = torch.prim.ListConstruct %[[INT3]], %[[INT3]] : (!torch.int, !torch.int) -> !torch.list<int>
// CHECK: %[[VAL_9:.*]] = torch.prim.If %[[ARG2]] -> (!torch.list<int>) {
// CHECK: torch.prim.If.yield %[[VAL_8]] : !torch.list<int>
Expand Down

0 comments on commit ddd1263

Please sign in to comment.