8aa9b39c709e1eb42b6ac81aac39c0b2b451c670,mesh_tensorflow/layers.py,,dense,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,27

Before Change


  
  if variable_dtype is None:
    variable_dtype = mtf.VariableDType(master_dtype, slice_dtype, x.dtype)
  if variable_dtype.activation_dtype != x.dtype:
    raise ValueError("variable_dtype.activation_dtype must match x.dtype "
                     "variable_dtype=%s x=%s" % (variable_dtype, x))
  if expert_dims is None:
    expert_dims = []
  if reduced_dims is None:
    reduced_dims = x.shape.dims[-1:]

After Change


        w_shape,
        initializer=tf.random_normal_initializer(stddev=stddev),
        dtype=variable_dtype)
    w = mtf.cast(w, x.dtype)
    y = mtf.einsum([x, w], output_shape)
    if use_bias:
      b = mtf.get_variable(
          x.mesh,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/mesh
Commit Name: 8aa9b39c709e1eb42b6ac81aac39c0b2b451c670
Time: 2018-12-07
Author: noam@google.com
File Name: mesh_tensorflow/layers.py
Class Name:
Method Name: dense


Project Name: pantsbuild/pants
Commit Name: fcbcb3c73892ee31df710fcd6b48d06a3efdc143
Time: 2020-04-06
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/native/rules/targets.py
Class Name: ConanPackages
Method Name: compute_value


Project Name: pantsbuild/pants
Commit Name: fcbcb3c73892ee31df710fcd6b48d06a3efdc143
Time: 2020-04-06
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/native/rules/targets.py
Class Name: CtypesNativeLibrary
Method Name: compute_value


Project Name: tensorflow/transform
Commit Name: 30146171032ed79ec99ff002ef8f7065c70d8536
Time: 2018-06-18
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/analyzers.py
Class Name:
Method Name: mean