03ff0c8f1cbcb4869e3cce95395c66178c02f576,tensorflow_hub/native_module.py,,list_registered_stateful_ops_without_inputs,#,594

Before Change


  Returns:
    A set of strings.
  
  return set([
      name
      for name, op in op_def_registry.get_registered_ops().items()
      if op.is_stateful and not op.input_arg
  ])


def get_state_map(meta_graph, state_ops, unsupported_state_ops,

After Change


    A set of strings.
  
  used_ops = (node.op for node in graph_def.node)
  return {op for op in used_ops if is_registered_stateful_op_without_inputs(op)}


def get_state_map(meta_graph, state_ops, unsupported_state_ops,
                  get_tensor_by_name):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: tensorflow/hub
Commit Name: 03ff0c8f1cbcb4869e3cce95395c66178c02f576
Time: 2019-09-26
Author: no-reply@google.com
File Name: tensorflow_hub/native_module.py
Class Name:
Method Name: list_registered_stateful_ops_without_inputs


Project Name: comic/grand-challenge.org
Commit Name: c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3
Time: 2020-06-27
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/tests/cases_tests/test_tiff.py
Class Name:
Method Name: test_error_handling


Project Name: comic/grand-challenge.org
Commit Name: c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3
Time: 2020-06-27
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/tests/cases_tests/test_fallback.py
Class Name:
Method Name: test_image_builder_fallback_corrupt_file


Project Name: comic/grand-challenge.org
Commit Name: c7c47bbaf9c48c1919d3f7b928614d9f1300b7d3
Time: 2020-06-27
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: image_builder_dicom


Project Name: pgmpy/pgmpy
Commit Name: 7281b68353fa8f9263e071716ac5081df5168f59
Time: 2015-02-01
Author: ankurankan@gmail.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: _variable_elimination