Home
last modified time | relevance | path

Searched refs:OpMetadata (Results 1 – 25 of 32) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding.h45 static HloSharding Replicate(absl::Span<const OpMetadata> metadata = {}) {
50 static HloSharding Manual(absl::Span<const OpMetadata> metadata = {}) {
57 absl::Span<const OpMetadata> metadata = {});
62 absl::Span<const OpMetadata> metadata = {}) {
73 absl::Span<const OpMetadata> metadata = {});
80 absl::Span<const OpMetadata> metadata = {});
85 absl::Span<const OpMetadata> metadata = {});
240 HloSharding WithMetadata(absl::Span<const OpMetadata> metadata,
288 std::vector<OpMetadata>& metadata() { return metadata_; } in metadata()
289 const std::vector<OpMetadata>& metadata() const { return metadata_; } in metadata()
[all …]
Dhlo_sharding_test.cc42 OpMetadata GetMetadata(const std::string& op_name) { in GetMetadata()
43 OpMetadata metadata; in GetMetadata()
48 std::vector<OpMetadata> SingleMetadata() { return {GetMetadata("a")}; } in SingleMetadata()
50 std::vector<OpMetadata> ListMetadata() { in ListMetadata()
271 std::tuple<std::vector<OpMetadata>, std::string>;
291 std::make_tuple(std::vector<OpMetadata>(), "{replicated}"),
317 std::make_tuple(std::vector<OpMetadata>(), "{maximal device=7}"),
345 std::make_tuple(std::vector<OpMetadata>(), "{devices=[2,1,2]2,3,5,7}"),
388 : public ::testing::TestWithParam<std::vector<OpMetadata>> {};
435 ::testing::Values(std::vector<OpMetadata>(),
Dsource_map_util.h29 Status InvalidParameterArgument(const OpMetadata& op_metadata, in InvalidParameterArgument()
55 const OpMetadata& metadata = param->metadata(); in InvalidParameterArgument()
Dlocal_service.cc80 absl::optional<const OpMetadata*> ParameterMetadata( in ParameterMetadata()
121 absl::optional<const OpMetadata*> metadata = in CompileExecutables()
128 const OpMetadata& m = *metadata.value(); in CompileExecutables()
Dhlo_op_metadata.h24 std::string OpMetadataToString(const OpMetadata& metadata);
Dhlo_sharding.cc32 absl::Span<const OpMetadata> metadata) { in AssignDevice()
37 absl::Span<const OpMetadata> metadata) { in Tile1D()
50 absl::Span<const OpMetadata> metadata) { in PartialTile()
69 absl::Span<const OpMetadata> metadata) { in PartialTile()
475 std::vector<OpMetadata> metadata(proto.metadata().begin(), in FromProto()
662 HloSharding HloSharding::WithMetadata(absl::Span<const OpMetadata> metadata, in WithMetadata()
Dhlo_op_metadata.cc26 std::string OpMetadataToString(const OpMetadata& metadata) { in OpMetadataToString()
Dwhile_util.h87 const OpMetadata& metadata);
Dgather_expander_test.cc134 OpMetadata metadata; in TEST_F()
Dhlo_computation.h109 MetadataBuilder(HloComputation* computation, const OpMetadata& metadata) in MetadataBuilder()
120 OpMetadata metadata_;
Dsharding_propagation_test.cc39 instruction->set_metadata(OpMetadata()); in ClearMetadata()
62 std::string OpMetadataListToString(absl::Span<const OpMetadata> metadata) { in OpMetadataListToString()
65 for (const OpMetadata& element : metadata) { in OpMetadataListToString()
75 explicit HloShardingMetadataMatcher(absl::Span<const OpMetadata> metadata) in HloShardingMetadataMatcher()
106 std::vector<OpMetadata> metadata_;
110 absl::Span<const OpMetadata> metadata) { in ShardingMetadata()
114 OpMetadata CreateMetadata(const std::string& op_name) { in CreateMetadata()
115 OpMetadata metadata; in CreateMetadata()
1660 absl::Span<const absl::Span<const OpMetadata>> in TEST_P()
2567 const OpMetadata& metadata) { in TEST_P()
Dwhile_util.cc243 const OpMetadata& metadata) { in MakeCountedLoop()
Dhlo_instruction.h1606 void set_metadata(const OpMetadata& metadata) { in set_metadata()
1620 const OpMetadata& metadata() const { return metadata_; } in metadata()
2137 OpMetadata metadata_;
Dhlo_sharding_util.cc176 std::vector<OpMetadata> merged_metadata(std::move(to_merge->metadata())); in MergeSharding()
178 const absl::flat_hash_set<OpMetadata, protobuf_util::ProtobufHashWrapper, in MergeSharding()
182 [&metadata_set](const OpMetadata& data) { in MergeSharding()
Dhlo_parser.cc410 bool ParseMetadata(OpMetadata* metadata);
412 tensorflow::protobuf::RepeatedPtrField<OpMetadata>* metadata);
1011 optional<OpMetadata> metadata; in ParseInstructionRhs()
3773 OpMetadata result; in ParseAttributeHelper()
3777 static_cast<optional<OpMetadata>*>(attr_out_ptr)->emplace(result); in ParseAttributeHelper()
4748 bool HloParserImpl::ParseMetadata(OpMetadata* metadata) { in ParseMetadata()
4789 tensorflow::protobuf::RepeatedPtrField<OpMetadata>* metadata) { in ParseSingleOrListMetadata()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dsharding_util.cc29 xla::OpMetadata CreateOpMetadata(const std::string& op_type, in CreateOpMetadata()
31 xla::OpMetadata metadata; in CreateOpMetadata()
59 absl::optional<xla::OpMetadata> metadata) { in ParseShardingFromDevice()
95 add_metadata ? absl::optional<xla::OpMetadata>( in ParseShardingFromDevice()
110 add_metadata ? absl::optional<xla::OpMetadata>( in ParseShardingFromDevice()
Dxla_compilation_device.cc90 static void AttachLocationToMetadata(xla::OpMetadata& metadata, in AttachLocationToMetadata()
107 xla::OpMetadata metadata; in Compute()
Dsharding_util.h39 absl::optional<xla::OpMetadata> metadata = absl::nullopt);
Dxla_compiler.cc182 xla::OpMetadata retval_metadata; in BuildComputation()
1047 xla::OpMetadata arg_metadata; in BuildArguments()
1088 xla::OpMetadata arg_metadata; in BuildArguments()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dhlo_metadata_test.cc40 OpMetadata metadata_;
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dcusolver_rewriter.cc52 const OpMetadata& metadata) { in CreateCholesky()
Dgpu_conv_rewriter_test.cc120 OpMetadata metadata; in TEST_F()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py162 class OpMetadata(object): class
177 return OpMetadata(
Dtypes.h388 struct type_caster<xla::OpMetadata> {
390 PYBIND11_TYPE_CASTER(xla::OpMetadata, _("xla::OpMetadata"));
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.h174 void SetOpMetadata(OpMetadata metadata) { metadata_ = std::move(metadata); } in SetOpMetadata()
179 OpMetadata SwapOpMetadata(OpMetadata metadata) { in SwapOpMetadata()
180 OpMetadata old_metadata = std::move(metadata_); in SwapOpMetadata()
186 void SetOneShotOpMetadata(OpMetadata metadata) { in SetOneShotOpMetadata()
1036 OpMetadata metadata_;
1039 absl::optional<OpMetadata> one_shot_metadata_;
1533 XlaScopedOpMetadataAssignment(xla::XlaBuilder* builder, OpMetadata metadata) in XlaScopedOpMetadataAssignment()
1542 OpMetadata saved_;

12