tvm.container

Container data structures used in TVM DSL.

class tvm.container.Array

Array container of TVM.

You do not need to create Array explicitly. Normally python list and tuple will be converted automatically to Array during tvm function call. You may get Array in return values of TVM function call.

class tvm.container.EnvFunc

Environment function.

This is a global function object that can be serialized by its name.

class tvm.container.LoweredFunc

Represent a LoweredFunc in TVM.

class tvm.container.Map

Map container of TVM.

You do not need to create Map explicitly. Normally python dict will be converted automaticall to Map during tvm function call. You can use convert to create a dict[NodeBase-> NodeBase] into a Map

items()

Get the items from the map

class tvm.container.Range

Represent range in TVM.

You do not need to create Range explicitly. Python list and tuple will be converted automatically to Range in api functions.

class tvm.container.StrMap

A special map container that has str as key.

You can use convert to create a dict[str->NodeBase] into a Map.

items()

Get the items from the map