d56de8e17ea24fe71c4f51b583f132f897ea04d1,tensorflow/compiler/xla/experimental/xla_sharding/xla_sharding.py,,tile,#Any#Any#Any#Any#,276

Before Change


    assign_tuple_sharding: If the sharding type should be a tuple.
    use_sharding_op: If true, adds a sharding op to set the sharding.
  
  return Sharding.tile(tile_assignment).apply_to_tensor(
      tensor,
      assign_tuple_sharding=assign_tuple_sharding,
      use_sharding_op=use_sharding_op)


def split(tensor,
          split_dimension,

After Change


    assign_tuple_sharding: If the sharding type should be a tuple.
    use_sharding_op: If true, adds a sharding op to set the sharding.
  
  if use_sharding_op:
    tensor = tf2xla.sharding(tensor)
  Sharding.tile(tile_assignment).apply_to_tensor(
      tensor,
      assign_tuple_sharding=assign_tuple_sharding
  )
  return tensor


def split(tensor,
          split_dimension,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 9

Instances


Project Name: tensorflow/tensorflow
Commit Name: d56de8e17ea24fe71c4f51b583f132f897ea04d1
Time: 2021-01-22
Author: gardener@tensorflow.org
File Name: tensorflow/compiler/xla/experimental/xla_sharding/xla_sharding.py
Class Name:
Method Name: tile


Project Name: tensorflow/tensorflow
Commit Name: d56de8e17ea24fe71c4f51b583f132f897ea04d1
Time: 2021-01-22
Author: gardener@tensorflow.org
File Name: tensorflow/compiler/xla/experimental/xla_sharding/xla_sharding.py
Class Name:
Method Name: replicate


Project Name: tensorflow/tensorflow
Commit Name: d56de8e17ea24fe71c4f51b583f132f897ea04d1
Time: 2021-01-22
Author: gardener@tensorflow.org
File Name: tensorflow/compiler/xla/experimental/xla_sharding/xla_sharding.py
Class Name:
Method Name: assign_device


Project Name: tensorflow/tensorflow
Commit Name: d56de8e17ea24fe71c4f51b583f132f897ea04d1
Time: 2021-01-22
Author: gardener@tensorflow.org
File Name: tensorflow/compiler/xla/experimental/xla_sharding/xla_sharding.py
Class Name:
Method Name: mesh_split


Project Name: tensorflow/tensorflow
Commit Name: d56de8e17ea24fe71c4f51b583f132f897ea04d1
Time: 2021-01-22
Author: gardener@tensorflow.org
File Name: tensorflow/compiler/xla/experimental/xla_sharding/xla_sharding.py
Class Name:
Method Name: partial_tile