38e9391dcb5e8991a1a663601ce78bf7f08df474,tensorflow_transform/graph_tools_test.py,GraphToolsTest,testGetDependentInputs,#GraphToolsTest#Any#Any#Any#Any#,551

Before Change


  )
  def testGetDependentInputs(self, create_graph_fn, feeds, fetches,
                             expected_dependent_inputs):
    tensors = create_graph_fn()
    got = graph_tools.get_dependent_inputs(tf.compat.v1.get_default_graph(),
                                           {x: tensors[x] for x in feeds},
                                           {y: tensors[y] for y in fetches})
    self.assertCountEqual(expected_dependent_inputs, got.keys())
    for input_name in expected_dependent_inputs:
      self.assertEqual(tensors[input_name], got[input_name])

After Change


  )
  def testGetDependentInputs(self, create_graph_fn, feeds, fetches,
                             expected_dependent_inputs):
    with tf.compat.v1.Graph().as_default() as graph:
      tensors = create_graph_fn()
      got = graph_tools.get_dependent_inputs(graph,
                                             {x: tensors[x] for x in feeds},
                                             {y: tensors[y] for y in fetches})
    self.assertCountEqual(expected_dependent_inputs, got.keys())
    for input_name in expected_dependent_inputs:
      self.assertEqual(tensors[input_name], got[input_name])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: tensorflow/transform
Commit Name: 38e9391dcb5e8991a1a663601ce78bf7f08df474
Time: 2019-10-10
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/graph_tools_test.py
Class Name: GraphToolsTest
Method Name: testGetDependentInputs


Project Name: tensorflow/transform
Commit Name: b329bc17b64424119fdab03defa19506a69ed800
Time: 2019-09-25
Author: zoy@google.com
File Name: tensorflow_transform/beam/analysis_graph_builder_test.py
Class Name: AnalysisGraphBuilderTest
Method Name: test_build


Project Name: tensorflow/transform
Commit Name: b329bc17b64424119fdab03defa19506a69ed800
Time: 2019-09-25
Author: zoy@google.com
File Name: tensorflow_transform/beam/cached_impl_test.py
Class Name: CachedImplTest
Method Name: test_optimize_traversal


Project Name: tensorflow/transform
Commit Name: 38e9391dcb5e8991a1a663601ce78bf7f08df474
Time: 2019-10-10
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/graph_tools_test.py
Class Name: GraphToolsTest
Method Name: testDetermineReadyTensorsAndTableInitializers