MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Tuple

Function Tuple

tensorflow/compiler/xla/client/sharding_builder.cc:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66OpSharding Tuple(const ShapeTree<OpSharding>& shardings) {
67 OpSharding result;
68 result.set_type(OpSharding::TUPLE);
69 for (const auto& index_to_sharding : shardings.leaves()) {
70 *result.add_tuple_shardings() = index_to_sharding.second;
71 }
72 return result;
73}
74
75} // namespace sharding_builder
76} // namespace xla

Callers

nothing calls this directly

Calls 1

leavesMethod · 0.80

Tested by

no test coverage detected