MCPcopy Create free account
hub / github.com/apache/arrow / ToString

Method ToString

cpp/src/arrow/extension/fixed_shape_tensor.cc:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::string FixedShapeTensorType::ToString(bool show_metadata) const {
59 std::stringstream ss;
60 ss << "extension<" << this->extension_name()
61 << "[value_type=" << value_type_->ToString(show_metadata)
62 << ", shape=" << ::arrow::internal::PrintVector{shape_, ","};
63
64 if (!permutation_.empty()) {
65 ss << ", permutation=" << ::arrow::internal::PrintVector{permutation_, ","};
66 }
67 if (!dim_names_.empty()) {
68 ss << ", dim_names=[" << internal::JoinStrings(dim_names_, ",") << "]";
69 }
70 ss << "]>";
71 return ss.str();
72}
73
74std::string FixedShapeTensorType::Serialize() const {
75 rj::Document document;

Callers 3

DeserializeMethod · 0.45
FromTensorMethod · 0.45
ToTensorMethod · 0.45

Calls 4

JoinStringsFunction · 0.85
strMethod · 0.80
extension_nameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected