MCPcopy Create free account
hub / github.com/NVIDIA/DALI / ReaderMetaToDict

Function ReaderMetaToDict

dali/python/backend_impl.cc:2306–2315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2304}
2305
2306py::dict ReaderMetaToDict(const ReaderMeta &meta) {
2307 py::dict d;
2308 d["epoch_size"] = meta.epoch_size;
2309 d["epoch_size_padded"] = meta.epoch_size_padded;
2310 d["number_of_shards"] = meta.number_of_shards;
2311 d["shard_id"] = meta.shard_id;
2312 d["pad_last_batch"] = meta.pad_last_batch;
2313 d["stick_to_shard"] = meta.stick_to_shard;
2314 return d;
2315}
2316
2317py::dict ExecutorMetaToDict(const ExecutorMetaMap &meta) {
2318 py::dict d;

Callers 2

ExposePipelineFunction · 0.85
ExposeOperatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected