998b0e8f1c3ec165fc1ca7b6421c96b1c72ec297,tensorflow_transform/analyzers.py,Analyzer,__init__,#Analyzer#Any#Any#Any#Any#,116

Before Change


    with tf.name_scope(name) as scope:
      self._name = scope
      for dtype, shape, is_asset in output_dtype_shape_and_is_asset:
        output_tensor = tf.placeholder(dtype, shape)
        if is_asset and output_tensor.dtype != tf.string:
          raise ValueError(("Tensor {} cannot represent an asset, because it "
                            "is not a string.").format(output_tensor.name))
        self._output_infos.append(_AnalyzerOutputInfo(

After Change


    for index, tensor in enumerate(outputs):
      if not isinstance(tensor, tf.Tensor):
        raise ValueError(
            "In analyzer {}, the {}th output ({}) was not a Tensor".format(
                name, index, tensor))
    self._inputs = inputs
    self._outputs = outputs
    self._spec = spec
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: tensorflow/transform
Commit Name: 998b0e8f1c3ec165fc1ca7b6421c96b1c72ec297
Time: 2018-05-30
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/analyzers.py
Class Name: Analyzer
Method Name: __init__


Project Name: tensorflow/transform
Commit Name: 96e4af6e86e93da021c29a4273dcdfaeab8fdfcf
Time: 2017-08-07
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/analyzers.py
Class Name: Analyzer
Method Name: __init__


Project Name: tensorlayer/srgan
Commit Name: 87ad8f5eb43629954755893fcb2674e53f8dc982
Time: 2019-05-08
Author: dhsig552@163.com
File Name: main.py
Class Name:
Method Name: evaluate