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