MCPcopy Create free account
hub / github.com/apache/tvm-ffi / DecodeSequenceData

Method DecodeSequenceData

src/ffi/extra/serialization.cc:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345 template <typename SeqType>
346 SeqType DecodeSequenceData(const json::Array& data) {
347 SeqType sequence;
348 sequence.reserve(static_cast<int64_t>(data.size()));
349 for (const auto& elem : data) {
350 sequence.push_back(GetOrDecodeNode(elem.cast<int64_t>()));
351 }
352 return sequence;
353 }
354
355 template <typename MapType>
356 MapType DecodeMapLikeData(const json::Array& data) {

Callers

nothing calls this directly

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected