bc0c3b6035aea0b25b827e46d4a67a1e3bc9078e,tensorflow_transform/analyzers.py,,vocabulary,#Any#Any#Any#Any#Any#Any#Any#Any#,766

Before Change


      raise ValueError(
          "frequency_threshold must be non-negative, but got: %r" %
          frequency_threshold)
    elif frequency_threshold <= 1:
      tf.logging.warn(
          "frequency_threshold %d <= 1 is a no-op, use None instead.",
          frequency_threshold)

  if isinstance(x, tf.SparseTensor):
    x = x.values

After Change


       none_sum, none_counts) = tf_utils.reduce_batch_vocabulary(
           x, vocab_ordering_type, weights)
      assert none_sum is None
      assert none_counts is None
      analyzer_inputs = [unique_inputs, sum_weights]
    else:
      vocab_ordering_type = tf_utils.VocabOrderingType.FREQUENCY
      (unique_inputs, none_weights, none_sum,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/transform
Commit Name: bc0c3b6035aea0b25b827e46d4a67a1e3bc9078e
Time: 2018-10-01
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/analyzers.py
Class Name:
Method Name: vocabulary


Project Name: pytorch/pytorch
Commit Name: d6452a1a0cbc308939f8c597c68a1f5f212dc8b8
Time: 2021-02-04
Author: iliacher@fb.com
File Name: torch/profiler/profiler.py
Class Name: profile
Method Name: __init__


Project Name: tensorflow/cleverhans
Commit Name: aaa078aa65d72767e33ecae2e98ec2848c8a0d8b
Time: 2018-10-10
Author: goodfellow@google.com
File Name: cleverhans/attacks_tf.py
Class Name:
Method Name: fgm