54a242de6e148d0836c4a58308b07bbe79c274b6,tensorflow_hub/native_module.py,_ModuleImpl,create_apply_graph,#_ModuleImpl#Any#Any#Any#,472

Before Change


      // infeeds which no longer exist.
      meta_graph_lib.prune_feed_map(meta_graph, infeed_map)
    elif apply_graph.building_function:
      raise NotImplementedError(
          "Using TF-Hub module within a TensorFlow defined function "
          "is currently not supported.")

    // As state ops in the apply graph are unused, replace them with Placeholders
    // so that in a heirarchical instantiation, apply_graph state ops are
    // ignored.

After Change


      //
      // E.g. it could work with "tf.compat.v1.wrap_function", but it will not
      // work with defun, Dataset.map_fn, etc...
      logging.warning("Using `hub.Module` while building a function: %s. This "
                      "can lead to errors if the function is not pruned.",
                      apply_graph.name)

    // As state ops in the apply graph are unused, replace them with Placeholders
    // so that in a heirarchical instantiation, apply_graph state ops are
    // ignored.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tensorflow/hub
Commit Name: 54a242de6e148d0836c4a58308b07bbe79c274b6
Time: 2019-05-02
Author: no-reply@google.com
File Name: tensorflow_hub/native_module.py
Class Name: _ModuleImpl
Method Name: create_apply_graph


Project Name: cornellius-gp/gpytorch
Commit Name: e7c110452e1ffa84cdaccf214a1204ebd1a01bbb
Time: 2018-07-19
Author: balandat@fb.com
File Name: gpytorch/kernels/index_kernel.py
Class Name: IndexKernel
Method Name: __init__


Project Name: mil-tokyo/webdnn
Commit Name: 5cf0a414aa1f7c17fdc0eced712de551c335a25c
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/math.py
Class Name:
Method Name: _convert_log1p


Project Name: mil-tokyo/webdnn
Commit Name: 695b173af1e0db468515447b459b59a6a9a626e5
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/math.py
Class Name:
Method Name: _convert_expm1