| 56 | } |
| 57 | |
| 58 | std::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 | |
| 74 | std::string FixedShapeTensorType::Serialize() const { |
| 75 | rj::Document document; |
no test coverage detected