docstr: Dynamic bounds are tighter than those deduced by shape inference.
docstr_tok: ["Dynamic","bounds","are","tighter","than","those","deduced","by","shape","inference","."]
code: def testTighterProvidedBounds(self):
      """Dynamic bounds are tighter than those deduced by shape inference."""
  
      @def_function.function(jit_compile=True)
      def compiled_f(x):
          return test_ops_for_light_outside_compilation.test_dynamic_tf_with_bound(
              x, max_size=5
          )
  
      with context.device("/gpu:0"):
          z = random_ops.random_normal([10])
          hlo = compiled_f.experimental_get_compiler_ir(z)()
          self.assertFilecheck(
              hlo,
              r"""
            CHECK: f32[5]{0} custom-call(f32[10]{0} [[v:.*]]), custom_call_target="GenericTfCallbackGPU"
            """,
          )
  
imports: from tensorflow.compiler.mlir.python.mlir_wrapper import filecheck_wrapper
  from tensorflow.compiler.tf2xla import test_ops_for_light_outside_compilation
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import test
label_desc: Use image node_id 11 for calling the LightOutsideCompilationTest obj's underlying member method code with example usage: obj.testTighterProvidedBounds() and returns: test_ops_for_light_outside_compilation