Remove --dump-input=fail flag passed into FileCheck in FileCheck tests.
FileCheck dumps the input by default now. PiperOrigin-RevId: 315748032 Change-Id: I83a9b7b68832034dff6058056ea2e467a9a49995
This commit is contained in:
parent
65a2d4656a
commit
3099f3a664
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -inline="disable-simplify" | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -inline="disable-simplify" | FileCheck %s
|
||||||
|
|
||||||
// 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,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -tf-annotate-parameter-replication | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -tf-annotate-parameter-replication | FileCheck %s
|
||||||
|
|
||||||
// Tests that an operand from outside the replicated region is annotated.
|
// Tests that an operand from outside the replicated region is annotated.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: tf-opt -tf-executor-break-up-islands %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-executor-break-up-islands %s | FileCheck %s
|
||||||
// RUN: tf-opt -tf-executor-break-up-islands -tf-executor-break-up-islands %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-executor-break-up-islands -tf-executor-break-up-islands %s | FileCheck %s
|
||||||
|
|
||||||
// All tests also test for idempotence.
|
// All tests also test for idempotence.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -tf-device-decompose-resource-ops | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -tf-device-decompose-resource-ops | FileCheck %s
|
||||||
|
|
||||||
// Tests that resources with subtypes are used if present.
|
// Tests that resources with subtypes are used if present.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s
|
||||||
|
|
||||||
// Test empty launch with no results is folded away.
|
// Test empty launch with no results is folded away.
|
||||||
// CHECK-LABEL: func @empty_launch_no_results
|
// CHECK-LABEL: func @empty_launch_no_results
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -tf-executor-graph-pruning %s | FileCheck %s --check-prefix=CONTROL --dump-input=fail
|
// RUN: tf-opt -tf-executor-graph-pruning %s | FileCheck %s --check-prefix=CONTROL
|
||||||
|
|
||||||
// CONTROL-LABEL: func @main
|
// CONTROL-LABEL: func @main
|
||||||
// CONTROL-NEXT: return
|
// CONTROL-NEXT: return
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// Test single graph with no outputs and one island is folded away.
|
// Test single graph with no outputs and one island is folded away.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-island-coarsening | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-island-coarsening | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// Test that islands linked by a control dependency are merged.
|
// Test that islands linked by a control dependency are merged.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s
|
||||||
|
|
||||||
// Test that a constant stays inside an island after canonicalization
|
// Test that a constant stays inside an island after canonicalization
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-tpu-v1-island-coarsening | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-tpu-v1-island-coarsening | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// Test that islands without the attribute are not merged.
|
// Test that islands without the attribute are not merged.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-tpu-v1-island-coarsening | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-tpu-v1-island-coarsening | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// Test that islands with a function call are merged if the call is to a function
|
// Test that islands with a function call are merged if the call is to a function
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-tpu-v1-island-inlining | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-tpu-v1-island-inlining | FileCheck %s
|
||||||
|
|
||||||
// Check that the nested module is inlined and erased.
|
// Check that the nested module is inlined and erased.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-tpu-v1-island-inlining | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-tpu-v1-island-inlining | FileCheck %s
|
||||||
|
|
||||||
// CHECK-NOT: tf.PartitionedCall
|
// CHECK-NOT: tf.PartitionedCall
|
||||||
// CHECK-NOT: module @_tpu_v1_compat_outlined
|
// CHECK-NOT: module @_tpu_v1_compat_outlined
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s
|
||||||
|
|
||||||
// CHECK: func @control_input
|
// CHECK: func @control_input
|
||||||
// CHECK-NOT: func @
|
// CHECK-NOT: func @
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// CHECK-LABEL: @func0
|
// CHECK-LABEL: @func0
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s
|
||||||
|
|
||||||
// CHECK: func @control_input
|
// CHECK: func @control_input
|
||||||
// CHECK-NOT: func @
|
// CHECK-NOT: func @
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s | tf-opt | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s | tf-opt | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @func_attr
|
// CHECK-LABEL: func @func_attr
|
||||||
// CHECK-SAME: tf._implements = #tf.func<@symbol_a, {attr0 = 1 : i32, attr1 = "random"}>
|
// CHECK-SAME: tf._implements = #tf.func<@symbol_a, {attr0 = 1 : i32, attr1 = "random"}>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: tf-opt -tf-saved-model-mark-func-visibility -split-input-file %s | FileCheck --check-prefix=SAVEDMODEL %s --dump-input=fail
|
// RUN: tf-opt -tf-saved-model-mark-func-visibility -split-input-file %s | FileCheck --check-prefix=SAVEDMODEL %s
|
||||||
// RUN: tf-opt -tf-mark-func-visibility -split-input-file -verify-diagnostics %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-mark-func-visibility -split-input-file -verify-diagnostics %s | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
module attributes {tf_saved_model.semantics} {
|
module attributes {tf_saved_model.semantics} {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-gpu-op-fusion | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-gpu-op-fusion | FileCheck %s
|
||||||
|
|
||||||
// Test the op-fusion pass specific to the GPU target.
|
// Test the op-fusion pass specific to the GPU target.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-executor-graph-pruning | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-executor-graph-pruning | FileCheck %s
|
||||||
|
|
||||||
// Two islands chained by data-flow contributing to the graph return are
|
// Two islands chained by data-flow contributing to the graph return are
|
||||||
// preserved.
|
// preserved.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s --mlir-print-debuginfo --print-after-all -tf-input-arrays=arg -tf-input-data-types=DT_INT32 -tf-input-shapes=8 -tf-output-arrays=arg -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s --mlir-print-debuginfo --print-after-all -tf-input-arrays=arg -tf-input-data-types=DT_INT32 -tf-input-shapes=8 -tf-output-arrays=arg -o - | FileCheck %s
|
||||||
|
|
||||||
node {
|
node {
|
||||||
name: "arg"
|
name: "arg"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -o - | FileCheck %s
|
||||||
|
|
||||||
# Verify arg devices are added as arg attributes.
|
# Verify arg devices are added as arg attributes.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=input -tf-input-data-types=DT_INT32 -tf-input-shapes=8 -tf-output-arrays=input -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=input -tf-input-data-types=DT_INT32 -tf-input-shapes=8 -tf-output-arrays=input -o - | FileCheck %s
|
||||||
|
|
||||||
node {
|
node {
|
||||||
name: "input"
|
name: "input"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=input -tf-input-data-types=DT_FLOAT -tf-output-arrays=output_node -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=input -tf-input-data-types=DT_FLOAT -tf-output-arrays=output_node -o - | FileCheck %s
|
||||||
|
|
||||||
node {
|
node {
|
||||||
name: "input"
|
name: "input"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -tf-control-output-arrays=var1_add,var2_add -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -tf-control-output-arrays=var1_add,var2_add -o - | FileCheck %s
|
||||||
# RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -tf-control-output-arrays=var1_add,var1_add -o - 2>&1 | FileCheck %s --check-prefix=UNIQUE --dump-input=fail
|
# RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -tf-control-output-arrays=var1_add,var1_add -o - 2>&1 | FileCheck %s --check-prefix=UNIQUE
|
||||||
# RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -tf-control-output-arrays=var3_add -o - 2>&1 | FileCheck %s --check-prefix=MISSING --dump-input=fail
|
# RUN: not tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -tf-control-output-arrays=var3_add -o - 2>&1 | FileCheck %s --check-prefix=MISSING
|
||||||
|
|
||||||
node {
|
node {
|
||||||
name: "arg0"
|
name: "arg0"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -o - | FileCheck %s
|
||||||
|
|
||||||
node {
|
node {
|
||||||
name: "arg"
|
name: "arg"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-graph-as-function -o - | FileCheck %s
|
||||||
|
|
||||||
# Verify main graph was converted to a function, args/rets are mapped correctly,
|
# Verify main graph was converted to a function, args/rets are mapped correctly,
|
||||||
# and ops in the main graph are retained. In addition, check if subsequent
|
# and ops in the main graph are retained. In addition, check if subsequent
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - | FileCheck %s
|
||||||
|
|
||||||
# Verify for functions with control return values, the island with only a
|
# Verify for functions with control return values, the island with only a
|
||||||
# consumed control return value has its control output added to the GraphOps
|
# consumed control return value has its control output added to the GraphOps
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - | FileCheck %s
|
||||||
|
|
||||||
# Verify for functions with control return values, the island with a consumed
|
# Verify for functions with control return values, the island with a consumed
|
||||||
# data output and a consumed control has both its outputs added to the GraphOps
|
# data output and a consumed control has both its outputs added to the GraphOps
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=z:1,z:2 -tf-input-shapes=':' -tf-output-arrays=z:2,z:1,a:0 -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=z:1,z:2 -tf-input-shapes=':' -tf-output-arrays=z:2,z:1,a:0 -o - | FileCheck %s
|
||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-input-arrays=z:1,z:2 -tf-input-shapes=':' -tf-output-arrays=z:2,z:1,a:0 -o - | FileCheck --check-prefix=PRUNE %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-input-arrays=z:1,z:2 -tf-input-shapes=':' -tf-output-arrays=z:2,z:1,a:0 -o - | FileCheck --check-prefix=PRUNE %s
|
||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-input-arrays=z:1,z:2 -tf-input-shapes=':' -tf-output-arrays=z:0,a:0 -o - | FileCheck --check-prefix=PRESERVE %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-input-arrays=z:1,z:2 -tf-input-shapes=':' -tf-output-arrays=z:0,a:0 -o - | FileCheck --check-prefix=PRESERVE %s
|
||||||
|
|
||||||
# Generated in Python via
|
# Generated in Python via
|
||||||
# ```
|
# ```
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-control-output-arrays=AssignAdd -o - | FileCheck %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-control-output-arrays=AssignAdd -o - | FileCheck %s
|
||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-control-output-arrays=AssignAdd -o - | FileCheck --check-prefix=PRUNE %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-control-output-arrays=AssignAdd -o - | FileCheck --check-prefix=PRUNE %s
|
||||||
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-control-output-arrays=Variable/Assign,AssignAdd -o - | FileCheck --check-prefix=PRESERVE %s --dump-input=fail
|
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-prune-unused-nodes -tf-control-output-arrays=Variable/Assign,AssignAdd -o - | FileCheck --check-prefix=PRESERVE %s
|
||||||
|
|
||||||
# Generated in Python via
|
# Generated in Python via
|
||||||
# ```
|
# ```
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -inline="disable-simplify" | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -inline="disable-simplify" | FileCheck %s
|
||||||
|
|
||||||
// Test that simple TF operations can be inlined.
|
// Test that simple TF operations can be inlined.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-launch-to-device-attribute | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-launch-to-device-attribute | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// Tests single TensorFlow op is hoisted out and has the correct device assigned
|
// Tests single TensorFlow op is hoisted out and has the correct device assigned
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -allow-unregistered-dialect -tf-materialize-passthrough-op %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -allow-unregistered-dialect -tf-materialize-passthrough-op %s | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// Check that the MlirPassthroughOp is eliminated and replaced by its attached
|
// Check that the MlirPassthroughOp is eliminated and replaced by its attached
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-mlir-translate -mlir-to-graphdef %s -tf-graph-as-function -o - | FileCheck %s --dump-input=fail
|
// RUN: tf-mlir-translate -mlir-to-graphdef %s -tf-graph-as-function -o - | FileCheck %s
|
||||||
|
|
||||||
// Verify arg attributes are exported as device assignment for arg nodes.
|
// Verify arg attributes are exported as device assignment for arg nodes.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s --dump-input=fail
|
// RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s
|
||||||
|
|
||||||
module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 29 : i32}} {
|
module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 29 : i32}} {
|
||||||
func @main() {
|
func @main() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-mlir-translate -mlir-to-graphdef %s -tf-graph-as-function -o - | FileCheck %s --dump-input=fail
|
// RUN: tf-mlir-translate -mlir-to-graphdef %s -tf-graph-as-function -o - | FileCheck %s
|
||||||
|
|
||||||
func @main(%arg0: tensor<*x!tf.resource>, %arg1: tensor<*x!tf.resource<tensor<3x3x1x32xf32>>>, %arg2: tensor<*xf32>, %arg3: tensor<2x4x6x8xi32>) -> (tensor<f32>, tensor<f32>)
|
func @main(%arg0: tensor<*x!tf.resource>, %arg1: tensor<*x!tf.resource<tensor<3x3x1x32xf32>>>, %arg2: tensor<*xf32>, %arg3: tensor<2x4x6x8xi32>) -> (tensor<f32>, tensor<f32>)
|
||||||
attributes {tf.entry_function = {inputs = "args_0,args_1,args_2,args_3", outputs = "rets_0_RetVal,rets_1_RetVal"}} {
|
attributes {tf.entry_function = {inputs = "args_0,args_1,args_2,args_3", outputs = "rets_0_RetVal,rets_1_RetVal"}} {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: not tf-mlir-translate -split-input-file -mlir-to-graphdef %s -o - 2>&1 | FileCheck %s --dump-input=fail
|
// RUN: not tf-mlir-translate -split-input-file -mlir-to-graphdef %s -o - 2>&1 | FileCheck %s
|
||||||
|
|
||||||
// Tests function with multiple blocks.
|
// Tests function with multiple blocks.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -tf-optimize %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-optimize %s | FileCheck %s
|
||||||
|
|
||||||
// Check passing an argument into DefinedByConv2D constraint does not crash.
|
// Check passing an argument into DefinedByConv2D constraint does not crash.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-parallel-execute-to-islands | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-parallel-execute-to-islands | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @check_regions_to_islands
|
// CHECK-LABEL: func @check_regions_to_islands
|
||||||
func @check_regions_to_islands() {
|
func @check_regions_to_islands() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -verify-diagnostics -tf-readonly-references-to-resources -split-input-file %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -verify-diagnostics -tf-readonly-references-to-resources -split-input-file %s | FileCheck %s
|
||||||
|
|
||||||
// Test case: Basic converting.
|
// Test case: Basic converting.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-replicate-invariant-op-hoisting | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-replicate-invariant-op-hoisting | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @replicate_arg_shape
|
// CHECK-LABEL: func @replicate_arg_shape
|
||||||
// CHECK-SAME: (%[[ARG_0:[a-z0-9]*]]: tensor<*xf32>, %[[ARG_1:[a-z0-9]*]]: tensor<*xf32>)
|
// CHECK-SAME: (%[[ARG_0:[a-z0-9]*]]: tensor<*xf32>, %[[ARG_1:[a-z0-9]*]]: tensor<*xf32>)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-replicate-to-island | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-replicate-to-island | FileCheck %s
|
||||||
|
|
||||||
// Tests per replica island has same control operands as island holding
|
// Tests per replica island has same control operands as island holding
|
||||||
// replicate.
|
// replicate.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -split-input-file -verify-diagnostics -tf-resource-device-inference %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -split-input-file -verify-diagnostics -tf-resource-device-inference %s | FileCheck %s
|
||||||
|
|
||||||
// Tests that the pass can correctly propagate device attributes inside the same
|
// Tests that the pass can correctly propagate device attributes inside the same
|
||||||
// function.
|
// function.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: tf-opt %s -tf-shape-inference=propagate-caller-callee-constants=false -verify-diagnostics | FileCheck %s -dump-input=fail
|
// RUN: tf-opt %s -tf-shape-inference=propagate-caller-callee-constants=false -verify-diagnostics | FileCheck %s
|
||||||
// RUN: tf-opt %s -tf-shape-inference=propagate-caller-callee-constants -verify-diagnostics | FileCheck %s -dump-input=fail
|
// RUN: tf-opt %s -tf-shape-inference=propagate-caller-callee-constants -verify-diagnostics | FileCheck %s
|
||||||
|
|
||||||
module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 130 : i32}} {
|
module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 130 : i32}} {
|
||||||
// CHECK-LABEL: func @main(%arg0: tensor<1xi32>, %arg1: tensor<1xi32>) -> tensor<1xi32>
|
// CHECK-LABEL: func @main(%arg0: tensor<1xi32>, %arg1: tensor<1xi32>) -> tensor<1xi32>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -split-input-file -tf-test-side-effect-analysis -verify-diagnostics %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -split-input-file -tf-test-side-effect-analysis -verify-diagnostics %s | FileCheck %s
|
||||||
|
|
||||||
// Tests that the pass tracks control dependencies for reads/writes on the same
|
// Tests that the pass tracks control dependencies for reads/writes on the same
|
||||||
// resource.
|
// resource.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-device-constant-sinking | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-device-constant-sinking | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @sink_const
|
// CHECK-LABEL: func @sink_const
|
||||||
func @sink_const(%arg0 : tensor<16xf32>) -> (tensor<16xf32>, tensor<f32>) {
|
func @sink_const(%arg0 : tensor<16xf32>) -> (tensor<16xf32>, tensor<f32>) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -tf-functional-to-executor-conversion %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-functional-to-executor-conversion %s | FileCheck %s
|
||||||
|
|
||||||
func @multiple_return(%arg0 : tensor<*xi32>, %arg1 : tensor<i32>) -> (tensor<*xi32>, tensor<*xi32>) {
|
func @multiple_return(%arg0 : tensor<*xi32>, %arg1 : tensor<i32>) -> (tensor<*xi32>, tensor<*xi32>) {
|
||||||
%1 = "tf.Add"(%arg0, %arg1) {} : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
|
%1 = "tf.Add"(%arg0, %arg1) {} : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -verify-diagnostics | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -verify-diagnostics | FileCheck %s
|
||||||
|
|
||||||
// Tests for TensorFlow ops with custom verifiers.
|
// Tests for TensorFlow ops with custom verifiers.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s | tf-opt | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s | tf-opt | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @return_no_operands
|
// CHECK-LABEL: func @return_no_operands
|
||||||
func @return_no_operands() {
|
func @return_no_operands() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s | tf-opt | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s | tf-opt | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @control_type() -> !tf_executor.control
|
// CHECK-LABEL: func @control_type() -> !tf_executor.control
|
||||||
func @control_type() -> !tf_executor.control
|
func @control_type() -> !tf_executor.control
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -mlir-print-debuginfo | tf-opt -mlir-print-debuginfo -mlir-print-op-generic | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -mlir-print-debuginfo | tf-opt -mlir-print-debuginfo -mlir-print-op-generic | FileCheck %s
|
||||||
|
|
||||||
// This file should be written in the generic form with debug locations.
|
// This file should be written in the generic form with debug locations.
|
||||||
// (that is, as if printed with `-mlir-print-debuginfo -mlir-print-op-generic`).
|
// (that is, as if printed with `-mlir-print-debuginfo -mlir-print-op-generic`).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -tf-saved-model-mark-func-visibility -symbol-dce -split-input-file %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-saved-model-mark-func-visibility -symbol-dce -split-input-file %s | FileCheck %s
|
||||||
|
|
||||||
module attributes {tf_saved_model.semantics} {
|
module attributes {tf_saved_model.semantics} {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -verify-diagnostics -tf-saved-model-freeze-global-tensors -split-input-file %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -verify-diagnostics -tf-saved-model-freeze-global-tensors -split-input-file %s | FileCheck %s
|
||||||
|
|
||||||
module attributes {tf_saved_model.semantics} {
|
module attributes {tf_saved_model.semantics} {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s | tf-opt | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s | tf-opt | FileCheck %s
|
||||||
|
|
||||||
module attributes {tf_saved_model.semantics} {
|
module attributes {tf_saved_model.semantics} {
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -tf-saved-model-optimize-global-tensors -split-input-file %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-saved-model-optimize-global-tensors -split-input-file %s | FileCheck %s
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Freezing.
|
// Freezing.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -tf-saved-model-optimize-global-tensors -split-input-file %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -tf-saved-model-optimize-global-tensors -split-input-file %s | FileCheck %s
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Immutability.
|
// Immutability.
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -tf-tpu-dynamic-layout-pass | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -tf-tpu-dynamic-layout-pass | FileCheck %s
|
||||||
|
|
||||||
// Tests that the pass can transform non-replicated execution.
|
// Tests that the pass can transform non-replicated execution.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt -split-input-file -tf-tpu-merge-variables-with-execute %s | FileCheck %s --dump-input=fail
|
// RUN: tf-opt -split-input-file -tf-tpu-merge-variables-with-execute %s | FileCheck %s
|
||||||
|
|
||||||
// Tests that the pass merges only variable reads/writes on the same device.
|
// Tests that the pass merges only variable reads/writes on the same device.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -tf-tpu-variable-runtime-reformatting| FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -tf-tpu-variable-runtime-reformatting| FileCheck %s
|
||||||
|
|
||||||
// Tests that the pass can correctly transform a training loop with 2 replicas.
|
// Tests that the pass can correctly transform a training loop with 2 replicas.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -tf-tpu-bridge-v1 | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -tf-tpu-bridge-v1 | FileCheck %s
|
||||||
|
|
||||||
module attributes {tf.devices = ["/job:localhost/replica:0/task:0/device:CPU:0", "/job:localhost/replica:0/task:0/device:TPU:0", "/job:localhost/replica:0/task:0/device:TPU:1", "/job:localhost/replica:0/task:0/device:TPU_SYSTEM:0"], tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 296 : i32}} {
|
module attributes {tf.devices = ["/job:localhost/replica:0/task:0/device:CPU:0", "/job:localhost/replica:0/task:0/device:TPU:0", "/job:localhost/replica:0/task:0/device:TPU:1", "/job:localhost/replica:0/task:0/device:TPU_SYSTEM:0"], tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 296 : i32}} {
|
||||||
func @main() {
|
func @main() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-cluster-formation | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-cluster-formation | FileCheck %s
|
||||||
|
|
||||||
|
|
||||||
// Test ops in cluster only have `_tpu_replicate` and `device` attributes
|
// Test ops in cluster only have `_tpu_replicate` and `device` attributes
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-dynamic-padding | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-dynamic-padding | FileCheck %s
|
||||||
|
|
||||||
// Test single argument with padding map lifted to associated encapsulated
|
// Test single argument with padding map lifted to associated encapsulated
|
||||||
// function.
|
// function.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-rewrite -tpu_compile_metadata_debug | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-rewrite -tpu_compile_metadata_debug | FileCheck %s
|
||||||
|
|
||||||
// Tests module with missing `tf.versions` attribute.
|
// Tests module with missing `tf.versions` attribute.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-sharding-identification | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-sharding-identification | FileCheck %s
|
||||||
|
|
||||||
// Tests empty cluster func. Empty input/output sharding configuration
|
// Tests empty cluster func. Empty input/output sharding configuration
|
||||||
// attributes must be added.
|
// attributes must be added.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: tf-opt %s -split-input-file -tf-tpu-space-to-depth-pass | FileCheck %s --dump-input=fail
|
// RUN: tf-opt %s -split-input-file -tf-tpu-space-to-depth-pass | FileCheck %s
|
||||||
|
|
||||||
// Tests for space to depth host and device transform.
|
// Tests for space to depth host and device transform.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt -test-xla-infer-shaped-type-methods -allow-unregistered-dialect -split-input-file -verify-diagnostics %s -o - | FileCheck --dump-input=fail %s
|
// RUN: xla-opt -test-xla-infer-shaped-type-methods -allow-unregistered-dialect -split-input-file -verify-diagnostics %s -o - | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: @broadcast_add
|
// CHECK-LABEL: @broadcast_add
|
||||||
// Note that all broadcast_ops are expanded from the same template, so
|
// Note that all broadcast_ops are expanded from the same template, so
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt -test-xla-chlo-legalize-to-hlo -split-input-file -verify-diagnostics %s -o - | FileCheck --dump-input=fail %s
|
// RUN: xla-opt -test-xla-chlo-legalize-to-hlo -split-input-file -verify-diagnostics %s -o - | FileCheck %s
|
||||||
|
|
||||||
// Check the non-broadcast case for each registered op, then just check a
|
// Check the non-broadcast case for each registered op, then just check a
|
||||||
// representative op for detailed broadcast semantics.
|
// representative op for detailed broadcast semantics.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt -split-input-file -xla-hlo-to-lhlo-with-xla %s | FileCheck --enable-var-scope --dump-input=fail %s
|
// RUN: xla-opt -split-input-file -xla-hlo-to-lhlo-with-xla %s | FileCheck --enable-var-scope %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @main
|
// CHECK-LABEL: func @main
|
||||||
// CHECK-SAME: %[[ARG0:.*]]: memref<2x2xf32> {xla_lhlo.params = 0
|
// CHECK-SAME: %[[ARG0:.*]]: memref<2x2xf32> {xla_lhlo.params = 0
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt -xla-hlo-to-lhlo-with-xla %s | FileCheck --enable-var-scope --dump-input=fail %s
|
// RUN: xla-opt -xla-hlo-to-lhlo-with-xla %s | FileCheck --enable-var-scope %s
|
||||||
|
|
||||||
// Current allocation will lead to one buffer argument for the "value" and
|
// Current allocation will lead to one buffer argument for the "value" and
|
||||||
// another one for the output, an no returned values.
|
// another one for the output, an no returned values.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt %s -inline | FileCheck %s --dump-input=fail
|
// RUN: xla-opt %s -inline | FileCheck %s
|
||||||
|
|
||||||
// Test case: Basic test of inlining into xla_hlo.while.
|
// Test case: Basic test of inlining into xla_hlo.while.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt %s -lhlo-legalize-to-gpu -split-input-file | FileCheck %s --dump-input=fail
|
// RUN: xla-opt %s -lhlo-legalize-to-gpu -split-input-file | FileCheck %s
|
||||||
|
|
||||||
func @reduce(%arg: memref<100x10xf32>,
|
func @reduce(%arg: memref<100x10xf32>,
|
||||||
%init: memref<f32>,
|
%init: memref<f32>,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt -test-xla-materialize-broadcasts -split-input-file %s -o - | FileCheck --dump-input=fail %s
|
// RUN: xla-opt -test-xla-materialize-broadcasts -split-input-file %s -o - | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: @clampBroadcast
|
// CHECK-LABEL: @clampBroadcast
|
||||||
// CHECK-SAME: (%[[MIN:.+]]: tensor<f32>, %[[VAL:.+]]: tensor<4xf32>, %[[MAX:.+]]: tensor<f32>)
|
// CHECK-SAME: (%[[MIN:.+]]: tensor<f32>, %[[VAL:.+]]: tensor<4xf32>, %[[MAX:.+]]: tensor<f32>)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt %s -xla-hlo-sink-constants-to-control-flow | FileCheck %s --dump-input=fail
|
// RUN: xla-opt %s -xla-hlo-sink-constants-to-control-flow | FileCheck %s
|
||||||
|
|
||||||
// Tests sinking constants to a while loop.
|
// Tests sinking constants to a while loop.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// RUN: tf-mlir-translate -split-input-file -mlir-hlo-to-hlo %s | FileCheck %s --dump-input=fail
|
// RUN: tf-mlir-translate -split-input-file -mlir-hlo-to-hlo %s | FileCheck %s
|
||||||
// RUN: tf-mlir-translate -split-input-file -mlir-hlo-to-hlo -emit-use-tuple-args %s | FileCheck %s --check-prefix=TUPLE --dump-input=fail
|
// RUN: tf-mlir-translate -split-input-file -mlir-hlo-to-hlo -emit-use-tuple-args %s | FileCheck %s --check-prefix=TUPLE
|
||||||
|
|
||||||
// Test entry function with no dynamic parameter bindings.
|
// Test entry function with no dynamic parameter bindings.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt %s -split-input-file -pass-pipeline='func(canonicalize)' | FileCheck %s --dump-input=fail
|
// RUN: xla-opt %s -split-input-file -pass-pipeline='func(canonicalize)' | FileCheck %s
|
||||||
|
|
||||||
// CHECK-LABEL: func @remove_noop
|
// CHECK-LABEL: func @remove_noop
|
||||||
// CHECK-SAME: [[ARG:%[a-zA-Z0-9]+]]
|
// CHECK-SAME: [[ARG:%[a-zA-Z0-9]+]]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt -split-input-file -test-xla-unfuse-batch-norm -verify-diagnostics %s | FileCheck --enable-var-scope --dump-input=fail %s
|
// RUN: xla-opt -split-input-file -test-xla-unfuse-batch-norm -verify-diagnostics %s | FileCheck --enable-var-scope %s
|
||||||
|
|
||||||
// CHECK-LABEL: @batchNormInference_2D_inner_features
|
// CHECK-LABEL: @batchNormInference_2D_inner_features
|
||||||
// CHECK-SAME: %[[X:[^:[:space:]]+]]
|
// CHECK-SAME: %[[X:[^:[:space:]]+]]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// RUN: xla-opt -transform-unranked-hlo -split-input-file %s | FileCheck --dump-input=fail %s
|
// RUN: xla-opt -transform-unranked-hlo -split-input-file %s | FileCheck %s
|
||||||
|
|
||||||
// Check the validity of expected IR.
|
// Check the validity of expected IR.
|
||||||
// CHECK-LABEL: @sqr_transform_result
|
// CHECK-LABEL: @sqr_transform_result
|
||||||
|
Loading…
Reference in New Issue
Block a user