Update MLIR users after replacing cl::opts with pass options
PiperOrigin-RevId: 305592544 Change-Id: Ifa32c79945a9e106a5720bc9132cbd17cd371b2a
This commit is contained in:
parent
2c47fddbb8
commit
5ba0711744
|
@ -1,4 +1,4 @@
|
||||||
// RUN: tf-opt %s -inline -mlir-disable-inline-simplify | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -inline="disable-simplify" | FileCheck %s --dump-input=fail
|
||||||
|
|
||||||
// Inline a function that contains only tfl ops.
|
// Inline a function that contains only tfl ops.
|
||||||
func @func_with_tfl_ops(%arg0 : tensor<2xi32>) -> tensor<2xi32> {
|
func @func_with_tfl_ops(%arg0 : tensor<2xi32>) -> tensor<2xi32> {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// RUN: tf-opt --tfl-legalize-tf-while %s -o - | FileCheck %s --dump-input-on-failure
|
// RUN: tf-opt --tfl-legalize-tf-while %s -o - | FileCheck %s --dump-input-on-failure
|
||||||
// RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline --mlir-disable-inline-simplify | FileCheck %s --dump-input-on-failure --check-prefix=INLINE
|
// RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline="disable-simplify" | FileCheck %s --dump-input-on-failure --check-prefix=INLINE
|
||||||
// RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline | FileCheck %s --dump-input-on-failure --check-prefix=CANON
|
// RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline | FileCheck %s --dump-input-on-failure --check-prefix=CANON
|
||||||
|
|
||||||
func @while_main(%arg0: tensor<?x256x256xf32>) -> (tensor<i32>, tensor<256x256xf32>, tensor<?x256x256xf32>) attributes {tf.entry_function = {inputs = "input", outputs = "Identity,Identity_1,Identity_2"}} {
|
func @while_main(%arg0: tensor<?x256x256xf32>) -> (tensor<i32>, tensor<256x256xf32>, tensor<?x256x256xf32>) attributes {tf.entry_function = {inputs = "input", outputs = "Identity,Identity_1,Identity_2"}} {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// RUN: tf-opt %s -inline -mlir-disable-inline-simplify | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -inline="disable-simplify" | FileCheck %s --dump-input=fail
|
||||||
|
|
||||||
// Test that simple TF operations can be inlined.
|
// Test that simple TF operations can be inlined.
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ class LhloFuseLinalg : public PassWrapper<LhloFuseLinalg, FunctionPass> {
|
||||||
LhloFuseLinalg() = default;
|
LhloFuseLinalg() = default;
|
||||||
LhloFuseLinalg(const LhloFuseLinalg&) {}
|
LhloFuseLinalg(const LhloFuseLinalg&) {}
|
||||||
LhloFuseLinalg(bool use_parallel_loops, llvm::ArrayRef<unsigned> tile_sizes) {
|
LhloFuseLinalg(bool use_parallel_loops, llvm::ArrayRef<unsigned> tile_sizes) {
|
||||||
tile_sizes_->assign(tile_sizes.begin(), tile_sizes.end());
|
tile_sizes_ = tile_sizes;
|
||||||
use_parallel_loops_.setValue(use_parallel_loops);
|
use_parallel_loops_.setValue(use_parallel_loops);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue