Home
last modified time | relevance | path

Searched refs:shard_dimension (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/python/tpu/
Dtpu_sharding.py42 if self.number_of_shards is None or self.shard_dimension is None:
46 (self.number_of_shards, self.shard_dimension))
123 def shard_dimension(self): member in ShardingPolicy
127 def set_shard_dimension(self, shard_dimension): argument
142 if self._shard_dimension != shard_dimension:
145 "use %d." % (shard_dimension, self._shard_dimension))
147 self._shard_dimension = tensor_shape.as_dimension(shard_dimension)
161 if other.shard_dimension is not None:
162 self.set_shard_dimension(other.shard_dimension)
306 str(shapes), self.number_of_shards, self.shard_dimension))
Dtpu_sharding_test.py36 self.assertEqual(p1.shard_dimension, tpu_sharding._DEFAULT_SHARD_DIMENSION)
42 self.assertEqual(p2.shard_dimension, 23)
70 self.assertEqual(p2.shard_dimension, 23)
75 self.assertEqual(p2.shard_dimension, 12)
79 self.assertEqual(p2.shard_dimension, 12)
Dtpu_infeed_test.py54 self.assertEqual([p.shard_dimension
Dtpu_feed.py324 return [policy.shard_dimension for policy in self._sharding_policies]
734 axis=policy.shard_dimension,