MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / OpSharding

Class OpSharding

tensorflow/compiler/xla/python/xla_client.py:1843–1854  ·  view source on GitHub ↗

Python representation of a xla.OpSharding protobuf.

Source from the content-addressed store, hash-verified

1841
1842
1843class OpSharding(object):
1844 """Python representation of a xla.OpSharding protobuf."""
1845 __slots__ = ('type', 'tile_assignment_dimensions', 'tile_assignment_devices',
1846 'tuple_shardings')
1847
1848 Type = _xla.OpSharding_Type
1849
1850 def __init__(self):
1851 self.type = self.Type.REPLICATED
1852 self.tile_assignment_dimensions = []
1853 self.tile_assignment_devices = []
1854 self.tuple_shardings = []
1855
1856
1857class PrecisionConfig(object):

Callers 1

OutfeedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected