Home
last modified time | relevance | path

Searched refs:get_sharded_shape (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/python/tpu/
Dtpu_sharding_test.py95 self.assertEqual(p.get_sharded_shape([4, 9]), [4, 3])
100 _ = p.get_sharded_shape([4, 9], shard_index=4)
102 _ = p.get_sharded_shape([4, 9], shard_index=-1)
104 _ = p.get_sharded_shape("not_a_shape")
106 _ = p.get_sharded_shape(tensor_shape.TensorShape(None))
108 _ = p.get_sharded_shape([4, 10], shard_index=-1)
144 self.assertEqual(p.get_sharded_shape([]), [])
Dtpu_feed.py221 _ = policy.get_sharded_shape(shape)
501 policy.get_unpartitioned_shape(policy.get_sharded_shape(shape))
808 policy.get_sharded_shape(shape)
Dtpu_sharding.py192 def get_sharded_shape(self, shape, shard_index=None): member in ShardingPolicy