tvm
Namespaces | Functions
debug.h File Reference

Helpers for debugging at runtime. More...

#include <tvm/runtime/container/adt.h>
#include <tvm/runtime/ndarray.h>
#include <ostream>
#include <string>
Include dependency graph for debug.h:

Go to the source code of this file.

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 
 tvm::runtime
 

Functions

void tvm::runtime::AppendNDArray (std::ostream &os, const NDArray &nd_array, const DLDevice &host_device, bool show_content=true)
 Helpers to describe runtime objects in human-friendly form. For nd_arrays we show their shapes and dtypes, but also their contents if 'small' and on the host_device (mostly so that we can see dynamic shapes as they are computed). For adts we show the ADT fields. For objects we dispatch to one of the above as appropriate. More...
 
void tvm::runtime::AppendADT (std::ostream &os, const ADT &adt, const DLDevice &host_device, bool show_content=true)
 
void tvm::runtime::AppendRuntimeObject (std::ostream &os, const ObjectRef &object, const DLDevice &host_device, bool show_content=true)
 
std::string tvm::runtime::RuntimeObject2String (const ObjectRef &object, const DLDevice &host_device, bool show_content=true)
 

Detailed Description

Helpers for debugging at runtime.