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

Function VerifySparseTensorIndex

cpp/src/generated/SparseTensor_generated.h:890–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890inline bool VerifySparseTensorIndex(::flatbuffers::Verifier &verifier, const void *obj, SparseTensorIndex type) {
891 switch (type) {
892 case SparseTensorIndex_NONE: {
893 return true;
894 }
895 case SparseTensorIndex_SparseTensorIndexCOO: {
896 auto ptr = reinterpret_cast<const org::apache::arrow::flatbuf::SparseTensorIndexCOO *>(obj);
897 return verifier.VerifyTable(ptr);
898 }
899 case SparseTensorIndex_SparseMatrixIndexCSX: {
900 auto ptr = reinterpret_cast<const org::apache::arrow::flatbuf::SparseMatrixIndexCSX *>(obj);
901 return verifier.VerifyTable(ptr);
902 }
903 case SparseTensorIndex_SparseTensorIndexCSF: {
904 auto ptr = reinterpret_cast<const org::apache::arrow::flatbuf::SparseTensorIndexCSF *>(obj);
905 return verifier.VerifyTable(ptr);
906 }
907 default: return true;
908 }
909}
910
911inline bool VerifySparseTensorIndexVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<uint8_t> *types) {
912 if (!values || !types) return !values && !types;

Callers 2

VerifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected