Remove default context for EagerGraphCombination.
Remove default context for EagerGraphCombination.

It will incorrectly generate an extra graph context in following example:

@combinations.generate(combinations.combine(mode=['eager']))
class TestClass(test.TestCase, parameterized.TestCase):

  @combinations.generate(combinations.combine(foo=[1, 2]))
  def test_foo(self, foo):
    self.assertTrue(context.executing_eagerly())

Note that the combinations.generate for test_foo will silently add a graph context to the test case, since the default value for EagerGraphCombination is graph. This will override the eager context from the test class, and cause the assertion to fail.

Similar error will also raise for following case:

@combinations.generate(combinations.combine(foo=[1, 2]))
class TestClass(test.TestCase, parameterized.TestCase):

  def test_foo(self, foo):
    self.assertTrue(context.executing_eagerly())

if __name__ == '__main__':
  ops.enable_eager_execution()
  test.main()

Note that ops.enable_eager_execution() should force all the test case to run under eager context, but the silently added graph context is overriding the context value.

PiperOrigin-RevId: 300409634
Change-Id: If379db35a980193a49b5d74910e67be13e9af30c

yongtang/tensorflow,yongtang/tensorflow,aldian/tensorflow,davidzchen/tensorflow,paolodedios/tensorflow,annarev/tensorflow,annarev/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,gunan/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,davidzchen/tensorflow,annarev/tensorflow,gunan/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,sarvex/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,aam-at/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,aldian/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,Intel-Corporation/tensorflow,aldian/tensorflow,petewarden/tensorflow,gunan/tensorflow,karllessard/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,davidzchen/tensorflow,yongtang/tensorflow,sarvex/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,sarvex/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,annarev/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,annarev/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,sarvex/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,davidzchen/tensorflow,annarev/tensorflow,aldian/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,yongtang/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,petewarden/tensorflow,gunan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,karllessard/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,aam-at/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,aldian/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,karllessard/tensorflow,aldian/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,annarev/tensorflow,Intel-tensorflow/tensorflow