Home
last modified time | relevance | path

Searched refs:UsesDevice (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding_metadata.cc189 if (rhs.UsesDevice(kUnassignedDevice)) { in AssignLeafSharding()
192 if (lhs->UsesDevice(kUnassignedDevice)) { in AssignLeafSharding()
363 if (instruction->sharding().UsesDevice(kUnassignedDevice)) { in ApplyDomainSharding()
Dhlo_sharding_test.cc60 EXPECT_TRUE(sharding.UsesDevice(0)); in TEST_F()
61 EXPECT_TRUE(sharding.UsesDevice(65535)); in TEST_F()
75 EXPECT_FALSE(sharding.UsesDevice(0)); in TEST_F()
76 EXPECT_TRUE(sharding.UsesDevice(5)); in TEST_F()
Dhlo_sharding.h159 bool UsesDevice(int64 device) const;
Dhlo_sharding.cc197 bool HloSharding::UsesDevice(int64 device) const { in UsesDevice() function in xla::HloSharding
200 return s.UsesDevice(device); in UsesDevice()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compile_op_support.cc173 if (element_sharding.UsesDevice(device)) { in GetPerDeviceShape()
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Dspmd_partitioner_util.cc195 if (sharding.UsesDevice(partition_id)) { in MakeNonPaddedShapeForGivenPartition()