MCPcopy Create free account
hub / github.com/dmlc/dlpack / DLPackExchangeAPIHeader

Class DLPackExchangeAPIHeader

include/dlpack/dlpack.h:513–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511 * \sa DLPackExchangeAPI
512 */
513typedef struct DLPackExchangeAPIHeader {
514 /*!
515 * \brief The provided DLPack version the consumer must check major version
516 * compatibility before using this struct.
517 */
518 DLPackVersion version;
519 /*!
520 * \brief Optional pointer to an older DLPackExchangeAPI in the chain.
521 *
522 * It must be NULL if the framework does not support older versions.
523 * If the current major version is larger than the one supported by the
524 * consumer, the consumer may walk this to find an earlier supported version.
525 *
526 * \sa DLPackExchangeAPI
527 */
528 struct DLPackExchangeAPIHeader* prev_api;
529} DLPackExchangeAPIHeader;
530
531/*!
532 * \brief Framework-specific function pointers table for DLPack exchange.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected