54e07bdb2ba299fd6f364289510612f2fe6af8ff,tensorflow_transform/graph_tools_test.py,GraphToolsTest,testDetermineReadyTensorsAndTableInitializers,#GraphToolsTest#Any#Any#Any#Any#Any#,141

Before Change


    feeds = [tensors[name] for name in feeds]
    replaced_tensors_ready = {tensors[name]: ready
                              for name, ready in replaced_tensors_ready.items()}
    fetches = [tensors[name] for name in should_be_ready]
    expected_ready_tensors = [
        tensors[name] for name in should_be_ready if should_be_ready[name]]
    ready_table_initializers, ready_tensors = (
        graph_tools.determine_ready_tensors_and_table_initializers(

After Change


    self.assertEqual(len(graph_analyzer.ready_table_initializers),
                     num_ready_table_initializers)

    for name, ready in should_be_ready.items():
      tensor = tensors[name]
      self.assertEqual(graph_analyzer.ready_to_run(tensor), ready)

  @test_case.parameters(
      (_create_graph_with_y_function_of_x_and_table,
       [], {"x": False},
       "placeholders will not be fed during table initialization"),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: tensorflow/transform
Commit Name: 54e07bdb2ba299fd6f364289510612f2fe6af8ff
Time: 2018-11-28
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/graph_tools_test.py
Class Name: GraphToolsTest
Method Name: testDetermineReadyTensorsAndTableInitializers


Project Name: senarvi/theanolm
Commit Name: eb8b70c825ef3e02818cbfa95c0f8a9ec4184275
Time: 2015-12-25
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Network
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 0b03c97748a27d26f5284ce1c88ed1b41316ede6
Time: 2016-11-17
Author: wangpeiyu@gmail.com
File Name: src/python/pants/backend/jvm/zinc/zinc_analysis_parser.py
Class Name: ZincAnalysisParser
Method Name: parse_deps