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

Method ToProto

tensorflow/compiler/xla/service/buffer_value.cc:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54LogicalBufferProto BufferValue::ToProto(const SizeFunction& size_fn) const {
55 LogicalBufferProto proto;
56 proto.set_id(id());
57 proto.set_size(size_fn(*this));
58 LogicalBufferProto::Location proto_location =
59 ToLocationProto(*instruction(), index());
60 proto.mutable_defined_at()->Swap(&proto_location);
61 if (has_color()) {
62 proto.set_color(color().value());
63 }
64 return proto;
65}
66
67} // namespace xla

Callers

nothing calls this directly

Calls 4

set_colorMethod · 0.80
set_sizeMethod · 0.45
SwapMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected