Home
last modified time | relevance | path

Searched refs:AssignDevice (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding_test.cc72 HloSharding sharding = HloSharding::AssignDevice(5); in TEST_F()
156 HloSharding::AssignDevice(0)); in TEST_F()
172 *proto.add_tuple_shardings() = HloSharding::AssignDevice(0).ToProto(); in TEST_F()
180 EXPECT_EQ(shape_tree.element({1, 0}), HloSharding::AssignDevice(0)); in TEST_F()
207 HloSharding sharding1 = HloSharding::AssignDevice(1); in TEST_F()
208 HloSharding sharding2 = HloSharding::AssignDevice(1); in TEST_F()
213 HloSharding sharding1 = HloSharding::AssignDevice(1); in TEST_F()
214 HloSharding sharding2 = HloSharding::AssignDevice(2); in TEST_F()
249 *shape_tree2.mutable_element({0}) = HloSharding::AssignDevice(0); in TEST_F()
259 *shape_tree1.mutable_element({0}) = HloSharding::AssignDevice(0); in TEST_F()
[all …]
Dhlo_domain_test.cc432 HloSharding::Tuple(new_tuple->shape(), {HloSharding::AssignDevice(1), in TEST_F()
433 HloSharding::AssignDevice(0)})); in TEST_F()
472 EXPECT_EQ(root->sharding(), HloSharding::AssignDevice(1)); in TEST_F()
527 EXPECT_EQ(HloSharding::Tuple(tpl->shape(), {HloSharding::AssignDevice(1), in TEST_F()
528 HloSharding::AssignDevice(0)}), in TEST_F()
665 EXPECT_EQ(HloSharding::Tuple(tuple0->shape(), {HloSharding::AssignDevice(1), in TEST_F()
666 HloSharding::AssignDevice(1), in TEST_F()
667 HloSharding::AssignDevice(0)}), in TEST_F()
671 EXPECT_EQ(HloSharding::Tuple(copy0->shape(), {HloSharding::AssignDevice(1), in TEST_F()
672 HloSharding::AssignDevice(0)}), in TEST_F()
[all …]
Dhlo_matchers_test.cc166 p1->set_sharding(HloSharding::AssignDevice(1)); in TEST_F()
175 tuple_shape, {HloSharding::Tile(assignment), HloSharding::AssignDevice(1), in TEST_F()
181 ::testing::Not(op::Sharding(HloSharding::AssignDevice(1)))); in TEST_F()
184 ::testing::Not(op::Sharding(HloSharding::AssignDevice(0)))); in TEST_F()
185 EXPECT_THAT(p1.get(), op::Sharding(HloSharding::AssignDevice(1))); in TEST_F()
191 EXPECT_THAT(Explain(p0.get(), op::Sharding(HloSharding::AssignDevice(1))), in TEST_F()
197 EXPECT_THAT(Explain(p1.get(), op::Sharding(HloSharding::AssignDevice(0))), in TEST_F()
Dbatchnorm_expander.cc278 ? HloSharding::AssignDevice(unique_device.value()) in HandleBatchNormTraining()
365 ? HloSharding::AssignDevice(unique_device.value()) in HandleBatchNormInference()
542 ? HloSharding::AssignDevice(unique_device.value()) in HandleBatchNormGrad()
Dhlo_sharding.h56 static HloSharding AssignDevice(int64 device_id,
Dhlo_sharding_util_test.cc39 HloSharding sharding = HloSharding::AssignDevice(7); in TEST()
Dhlo_sharding_metadata.cc253 instruction->shape(), HloSharding::AssignDevice(kUnassignedDevice)); in ApplyShardingFromUsers()
Dhlo_sharding_util.cc614 return HloSharding::AssignDevice(*hlo.sharding().tile_assignment().begin(), in GatherEffectiveOutputSharding()
732 return HloSharding::AssignDevice(*index_sharding.tile_assignment().begin(), in ScatterEffectiveIndexSharding()
777 return HloSharding::AssignDevice(*data_sharding.tile_assignment().begin(), in ScatterEffectiveDataSharding()
Dhlo_instruction_test.cc753 HloSharding sharding = HloSharding::AssignDevice(5); in TEST_F()
773 HloSharding sharding = HloSharding::AssignDevice(5); in TEST_F()
793 HloSharding sharding = HloSharding::AssignDevice(5); in TEST_F()
Dhlo_sharding.cc31 HloSharding HloSharding::AssignDevice(int64 device_id, in AssignDevice() function in xla::HloSharding
Dhlo_instruction.h1410 set_single_sharding(HloSharding::AssignDevice(device)); in set_device_sharding()
Dsharding_propagation.cc1197 return HloSharding::AssignDevice(*new_tile_assignment.begin(), in GetShardingFromUser()
/external/tensorflow/tensorflow/compiler/xla/client/
Dsharding_builder.h40 OpSharding AssignDevice(int device);
Dsharding_builder.cc33 OpSharding AssignDevice(int device) { in AssignDevice() function
Dxla_builder.cc1696 OpSharding sharding = sharding_builder::AssignDevice(0); in Infeed()
1714 sharding_builder::AssignDevice(0); in Infeed()
/external/tensorflow/tensorflow/core/common_runtime/
Dcolocation_graph.h88 Status AssignDevice(const Node& node);
Dcolocation_graph.cc467 Status Member::AssignDevice(const Node& node) { in AssignDevice() function in tensorflow::Member
1103 return root_member.AssignDevice(node); in LimitToAssignedDevice()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dsharding_util.cc80 auto sharding = xla::sharding_builder::AssignDevice(core); in ParseShardingFromDevice()
Dxla_compiler.cc1061 it == arg_shardings.end() ? xla::sharding_builder::AssignDevice(0) in BuildArguments()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dtpu_sharding_identification_pass.cc313 xla::sharding_builder::AssignDevice(0).SerializeAsString(); in IdentifyXlaShardingForTPUComputation()
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Dspmd_partitioner.cc1420 subsharding = HloSharding::AssignDevice(0); in Preprocess()
1426 return HloSharding::AssignDevice(0); in Preprocess()
2181 const HloSharding sharding = HloSharding::AssignDevice(device); in HandleSingleDevice()
3054 .Reshard(HloSharding::AssignDevice(0)) in HandleRng()
3059 clone->set_sharding(HloSharding::AssignDevice(0)); in HandleRng()
3092 rng->set_sharding(HloSharding::AssignDevice(0)); in HandleRng()
3757 hlo->set_sharding(HloSharding::AssignDevice(0)); in PreprocessSharding()
/external/tensorflow/tensorflow/core/tpu/kernels/xla/
Dhost_compute_ops.cc136 const auto device_sharding = xla::sharding_builder::AssignDevice(tpu_core_); in Compile()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_communication.cc216 ::xla::sharding_builder::AssignDevice(tpu_core).SerializeAsString(); in SetOpSharding()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_execute_test.cc794 builder.SetSharding(sharding_builder::AssignDevice(1)); in XLA_TEST_F()
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Ddistributed_tpu_rewrite_pass.cc1232 auto core_zero_sharding = xla::sharding_builder::AssignDevice(0); in ParseAndValidateSharding()
2064 xla::sharding_builder::AssignDevice(*assigned_core)); in AssignArgsAndRetvalsToCores()
2177 xla::sharding_builder::AssignDevice(*assigned_core)); in AssignArgsAndRetvalsToCores()

12